Repository navigation
[XPU] Detect per-commit XPU tests dynamically in CI path filter - #41225
Closed
arathi-hlab wants to merge 2 commits into
Closed
arathi-hlab wants to merge 2 commits into
arathi-hlab wants to merge 2 commits into
Conversation
arathi-hlab
requested review from
Fridge003,
HaiShaw,
Kangyan-Zhou,
bingxche,
ispobock and
merrymercy
as code owners
September 25, 2026 06:34
1 of 2 tasks
Collaborator
Author
|
Closing as duplicate of #41075, which has the identical diff and existing review history. Please continue review there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The
main_packagepath filter inpr-test-xpu.ymlrelies on a hand-kept list oftest/registered/files. Newregister_xpu_citests that aren't added to it (e.g.test_ngram_corpus.pyfrom #31362) don't trigger XPU CI when changed.Split out of #41075 (part 2/2). Part 1 (disable
test_ngram_corpus+ extend the explicit list) is #41224. The two PRs are independent.Modifications
check-changesnow lists changedtest/registered/**/*.pyfiles (dorny/paths-filterwithlist-files: json).scripts/ci/xpu/detect_xpu_test_changes.pyparses them withci_register.ut_parse_one_file(the parserrun_suite.pyuses) and outputstrueif any has a non-nightlyregister_xpu_ci. Unparseable files also returntruesorun_suitesurfaces the error. Stdlib-only; runs onubuntu-latest.main_package/changes_exist, so future XPU tests trigger XPU CI even if nobody updates the list.Verification
Against the current tree, the script flags exactly the 42 files
run_suite.pyselects forstage-a-test-1-gpu-xpu,stage-b-test-1-gpu-xpu(39 enabled + 3 disabled), and nothing else. CUDA/AMD-only and nightly-only XPU files returnfalse.CI States
Latest PR Test (Base): ✅ Run #36145538875
Latest PR Test (Extra): ❌ Run #36145538144
Latest PR Test (AMD ROCm 10): ❌ Run #36145538730