Skip to content

[ExecuTorch][WebGPU] Repair stacked merge artifacts - #21669

Merged
JCNTH merged 1 commit into
mainfrom
fix/webgpu-merge-resolution-corruption
Aug 7, 2026
Merged

JCNTH merged 1 commit into
mainfrom
fix/webgpu-merge-resolution-corruption

Conversation

@JCNTH

@JCNTH JCNTH commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The squash merge for #21646 duplicated the fp16 upload and BOOL conversion paths and dropped three native route tests. Restore the source that matches the reviewed fbsource stack, including compile-gating timestamp profiling.

Test Plan: exact tree comparison against the reconstructed 21-diff stack; git diff --check; GitHub CI.

Co-authored-with: OpenAI Codex.

The squash merge for #21646 duplicated the fp16 upload and BOOL conversion paths and dropped three native route tests. Restore the source that matches the reviewed fbsource stack, including compile-gating timestamp profiling.

Test Plan: exact tree comparison against the reconstructed 21-diff stack; git diff --check; GitHub CI.

Co-authored-with: OpenAI Codex.
Signed-off-by: Julian Ng-Thow-Hing <juliannth@meta.com>
Copilot AI lite review requested due to automatic review settings August 7, 2026 18:35
@pytorch-bot

pytorch-bot Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21669

Note: Links to docs will display an error until the docs builds have been completed.

❌ 50 New Failures, 87 Pending, 4 Unrelated Failures, 1 Unclassified Failure

As of commit 1893397 with merge base ceca90f (image):

NEW FAILURES - The following jobs have failed:

UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:

  • Labeler / label (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    ##[error]HttpError: API rate limit exceeded for installation. If you reach out to GitHub Support for help, please include the request ID 9808:3333B:69BF4B:6B709C:6A762595 and timestamp 2026-08-07 18:36:05 UTC. For more on scraping GitHub and how it may affect your rights, please review our Terms of Service (https://docs.github.com/en/site-policy/github-terms/github-terms-of-service)

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR repairs merge artifacts in the WebGPU backend by removing duplicated runtime paths and restoring missing native route/registry tests, aligning the tree with the reviewed fbsource stack (including compile-gated timestamp profiling).

Changes:

  • Restore three native tests covering shader registry lookup, q4 route signaling behavior, and conv1d route selection.
  • Remove duplicated bool→float conversion implementation in to_copy.
  • Repair WebGPU profiling compile-gating so timestamp-query helpers are only compiled when WGPU_BACKEND_ENABLE_PROFILING is enabled.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
backends/webgpu/test/native/test_compute_dispatch.cpp Restores coverage for shader registry, q4 route signals/topology, and conv1d route selection.
backends/webgpu/runtime/WebGPUGraph.cpp Fixes preprocessor scoping for timestamp-query profiling helpers (compile-gated).
backends/webgpu/runtime/ops/to_copy/ToCopy.cpp Removes duplicated bool→float conversion path to avoid merge-artifact duplication.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JCNTH
JCNTH merged commit d863a27 into main Aug 7, 2026
132 of 189 checks passed
@JCNTH
JCNTH deleted the fix/webgpu-merge-resolution-corruption branch August 7, 2026 19:14

This branch was previously deployed

1 inactive deployment
cadence — 18933978 Deployed Aug 7, 2026 by JCNTH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants