Skip to content

Run XPU CI on changes to Kineto's XPU plugin - #198154

Closed
aostrowski-hbn wants to merge 1 commit into
pytorch:mainfrom
aostrowski-hbn:patch-1
Closed

aostrowski-hbn wants to merge 1 commit into
pytorch:mainfrom
aostrowski-hbn:patch-1

Conversation

@aostrowski-hbn

Copy link
Copy Markdown
Contributor

A PyTorch PR that only bumps third_party/kineto gets no XPU CI signal at all, so XPU changes that are green in Kineto's own CI can break pytorch/pytorch main. This already happened: pytorch/pytorch#196015 landed without the ciflow/xpu label and broke two build jobs on main:

  • linux-jammy-xpu-n-1-py3.10 / build
  • win-vs2022-xpu-n-1-py3 / build

The root cause of this breakage was ours (pytorch/kineto#1555) and it was fixed later on, but it showed that we're missing a safety net. This commit adds this net.

A similar gating mechanism already exists for third_party/fbgemm: it's already a plain gitlink path in the ciflow/b200, ciflow/h100 and ciflow/rocm-mi300 rules, and pytorch/pytorch#180694 (a diff consisting of nothing but that gitlink) had pytorch-bot[bot] apply all three labels, which produced real tag-triggered CI runs.

@aostrowski-hbn
aostrowski-hbn requested a review from a team as a code owner September 22, 2026 07:33
@pytorch-bot

pytorch-bot Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ You can merge normally! (7 Unrelated Failures)

As of commit c8f8500 with merge base 7d23983 (image):

NEW FAILURES SUPPRESSED BY AI (non-blocking) - The following jobs failed, but the AI CI Advisor judged the failures not to be evidence against this change:

  • pull / linux-jammy-aarch64-py3.11-clang21 / build (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    /__w/pytorch/pytorch/aten/src/ATen/native/quantized/cpu/qembeddingbag.cpp:222:20: error: function 'embedding_neon_kernel' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]

    AI verdict: AI verdict: not related

    The suspect only adds a path glob to .github/labeler.yml. The build error is a clang -Wunneeded-internal-declaration in qembeddingbag.cpp, and that was already fixed on trunk by ada3fee (AArch64: Enable clang build for PR's #198642). That commit landed after the PR's stale merge base 7d23983, so the PR built the unfixed source.

    Full reasoning on HUD →

  • xpu / linux-noble-xpu-n-py3.11 / test (default, 10, 12, linux.idc.xpu) (gh)
    test/inductor/test_torchinductor_opinfo_properties.py::TestOpInfoPropertiesXPU::test_batch_invariance_nn_functional_linear_backend_inductor_numerics_xpu_bfloat16

    AI verdict: AI verdict: not related

    The suspect commit only adds one path glob to .github/labeler.yml, which decides which PRs get the ciflow/xpu label. It cannot change test numerics. The same family of test_batch_invariance_nn_functional_linear failures was already present before the suspect: on the merge base and on trunk commit f15b476, which failed the exact same test in a different shard.

    Full reasoning on HUD →

  • xpu / linux-noble-xpu-n-py3.11 / test (default, 12, 12, linux.idc.xpu) (gh)
    test/inductor/test_torchinductor_opinfo_properties.py::TestOpInfoPropertiesXPU::test_batch_invariance_nn_functional_linear_backend_inductor_numerics_xpu_float32

    AI verdict: AI verdict: not related

    The suspect commit adds one line to .github/labeler.yml, a glob that adds the ciflow/xpu label for Kineto xpupti paths. It does not touch any runtime or test code. The same XPU test_batch_invariance_nn_functional_linear failure was already happening on the merge base and on trunk before the suspect, including this exact float32/inductor_numerics variant on trunk f15b476.

    Full reasoning on HUD →

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following jobs failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Sep 22, 2026
@chuanqi129 chuanqi129 added the ciflow/xpu Run XPU CI tasks label Sep 22, 2026
@aostrowski-hbn
aostrowski-hbn marked this pull request as draft September 22, 2026 07:41
@pytorch-bot

pytorch-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@aostrowski-hbn

Copy link
Copy Markdown
Contributor Author

@chuanqi129 please review

@aostrowski-hbn
aostrowski-hbn marked this pull request as ready for review October 13, 2026 14:49
@github-actions github-actions Bot added bot-triaged This is a label only to be used by the auto triage bot triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Oct 13, 2026
@aostrowski-hbn

Copy link
Copy Markdown
Contributor Author

@ryanzhang22 @scotts @atalman please merge

@ryanzhang22

Copy link
Copy Markdown
Contributor

This lgtm, tagging @izaitsevfb as dev infra oncall just in case he has any concerns.

@ryanzhang22

Copy link
Copy Markdown
Contributor

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 14, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 5 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@ryanzhang22

Copy link
Copy Markdown
Contributor

@pytorchbot rebase

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Rebase failed due to Command git -C /home/runner/work/pytorch/pytorch rebase --onto refs/remotes/origin/viable/strict 0c402d222724d155cb6b2425a523738c3bb3c9e1 pull/198154/head returned non-zero exit code 1

Rebasing (1/4)
Rebasing (2/4)
Auto-merging third_party/kineto/.gitignore
CONFLICT (add/add): Merge conflict in third_party/kineto/.gitignore
Auto-merging third_party/kineto/README.md
CONFLICT (add/add): Merge conflict in third_party/kineto/README.md
Auto-merging third_party/kineto/libkineto/CMakeLists.txt
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/CMakeLists.txt
Auto-merging third_party/kineto/libkineto/README.md
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/README.md
Auto-merging third_party/kineto/libkineto/include/AbstractConfig.h
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/include/AbstractConfig.h
Auto-merging third_party/kineto/libkineto/include/ActivityProfilerInterface.h
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/include/ActivityProfilerInterface.h
Auto-merging third_party/kineto/libkineto/include/Config.h
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/include/Config.h
Auto-merging third_party/kineto/libkineto/include/IActivityProfiler.h
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/include/IActivityProfiler.h
Auto-merging third_party/kineto/libkineto/include/MetadataFieldCatalog.h
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/include/MetadataFieldCatalog.h
Auto-merging third_party/kineto/libkineto/include/libkineto.h
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/include/libkineto.h
Auto-merging third_party/kineto/libkineto/src/ConfigLoader.cpp
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/src/ConfigLoader.cpp
Auto-merging third_party/kineto/libkineto/src/CuptiActivityApi.h
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/src/CuptiActivityApi.h
Auto-merging third_party/kineto/libkineto/src/CuptiCallbackApi.cpp
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/src/CuptiCallbackApi.cpp
Auto-merging third_party/kineto/libkineto/src/GenericActivityProfiler.cpp
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/src/GenericActivityProfiler.cpp
Auto-merging third_party/kineto/libkineto/src/GenericActivityProfiler.h
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/src/GenericActivityProfiler.h
Auto-merging third_party/kineto/libkineto/src/output_json.cpp
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/src/output_json.cpp
Auto-merging third_party/kineto/libkineto/src/plugin/xpupti/FindSYCLToolkit.cmake
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/src/plugin/xpupti/FindSYCLToolkit.cmake
Auto-merging third_party/kineto/libkineto/stress_test/tensor_cache.cu
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/stress_test/tensor_cache.cu
Auto-merging third_party/kineto/libkineto/test/CMakeLists.txt
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/test/CMakeLists.txt
Auto-merging third_party/kineto/libkineto/test/CuptiCallbackApiTest.cpp
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/test/CuptiCallbackApiTest.cpp
Auto-merging third_party/kineto/libkineto/test/RocmActivityProfilerTest.cpp
CONFLICT (add/add): Merge conflict in third_party/kineto/libkineto/test/RocmActivityProfilerTest.cpp
error: could not apply d0b2c02da49... Upstreaming Kineto into Pytorch
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Could not apply d0b2c02da49... # Upstreaming Kineto into Pytorch

Raised by https://github.com/pytorch/pytorch/actions/runs/38615172144

@ryanzhang22

Copy link
Copy Markdown
Contributor

@aostrowski-hbn can we either recreate this PR from latest master or squash the commits down? There were some CI permissions changes that we need to rebase past but the rebase is failing because one of the commits is the Kineto upstreaming PR.

A PR that changes only Kineto gets no XPU CI signal, so a change that
breaks the XPU build can land unnoticed, as pytorch#196015 did. Request
ciflow/xpu for the xpupti sources and tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@aostrowski-hbn aostrowski-hbn changed the title Run XPU CI on Kineto bumps Run XPU CI on changes to Kineto's XPU plugin Oct 16, 2026
@aostrowski-hbn

Copy link
Copy Markdown
Contributor Author

@pytorchmergebot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@aostrowski-hbn
aostrowski-hbn deleted the patch-1 branch October 16, 2026 12:16
majing921201 pushed a commit to majing921201/pytorch that referenced this pull request Nov 16, 2026
A PyTorch PR that only bumps third_party/kineto gets no XPU CI signal at all, so XPU changes that are green in Kineto's own CI can break pytorch/pytorch main. This already happened: [pytorch#196015](pytorch#196015) landed without the `ciflow/xpu` label and broke two build jobs on main:

- linux-jammy-xpu-n-1-py3.10 / build
- win-vs2022-xpu-n-1-py3 / build

The root cause of this breakage was ours ([pytorch/kineto#1555](pytorch/kineto#1555)) and it was fixed later on, but it showed that we're missing a safety net. This commit adds this net.

A similar gating mechanism already exists for `third_party/fbgemm`: it's already a plain gitlink path in the `ciflow/b200`, `ciflow/h100` and `ciflow/rocm-mi300` rules, and [pytorch#180694](pytorch#180694) (a diff consisting of nothing but that gitlink) had pytorch-bot[bot] apply all three labels, which produced real tag-triggered CI runs.
Pull Request resolved: pytorch#198154
Approved by: https://github.com/chuanqi129, https://github.com/ryanzhang22

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot-triaged This is a label only to be used by the auto triage bot ciflow/trunk Trigger trunk jobs on your pull request ciflow/xpu Run XPU CI tasks Merged open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants