Repository navigation
ci: route PR CI by test group, down to the test step - #970
Merged
Merged
Conversation
- a tools/ file counts only if PR CI runs, builds or imports it, found by scanning the CI entry files; any other tools/ file starts no GPU lane - lint and style configs start no GPU lane - tests/cpp/jit and tools/jit_v2 run the cco lane; RAS runs the IO lanes; KIWI and the EP v1 tuning tables, tests and examples run mori (+ MI300X) - the scope job checks out the files the scan reads Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
|
GPU CI for
Test groups (the steps that run in those jobs): ep, kiwi, ccl, io, ras, shmem, umbp, cco, epv2, fused, build. Lanes follow the changed files. Adding |
- ci_scope.py maps each changed file to test groups (ep, kiwi, ccl, io, ras, shmem, umbp, cco, epv2, fused, build); the lanes follow the groups - Jobs and test steps in ci.yml and ci_cco.yml run only for their groups; ci_cco.yml takes the group list - Files that tests read at run time count for those tests: the modules test_umbp_lazy_load imports, examples/umbp/multi_backend_policy.json, cco_example_common.py - The routing comment lists the jobs that run and the test groups - ci:mi300x alone runs the MI300X jobs with all their groups, not the MI355X lane Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- KIWI steps run only in the MI300X jobs (build_ops_kiwi), so the kiwi group no longer starts the MI355X intranode and internode jobs - A KIWI-only change runs the MI300X jobs and the MI355X build job, which compile-checks KIWI Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Nov 10, 2026
QizhouZhang97
added a commit
that referenced
this pull request
Nov 10, 2026
- cco-fused-test stays on MI355X-AINIC: after #948 and #970 PIT-G17 is as busy, and the speedup alone shortens PR waits more than the move does - tp8-blockscale runs on every PR again: TP8 is the only blockscale shape wo_b has fitted plans for - test_a2a_gemm keeps acquire="none", the README's variant, on PRs; "inv", the op's default that test_a2a_gemm_op.py runs, moves to ci:full - the steps that pick GEMM+AR / GEMM+AG tests by mark share one file list, so a mark alone decides which step runs a test - pytest-xdist is installed by docker/Dockerfile.dev, not at run time Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Nov 10, 2026
Open
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.
Part of #947; follows #948.
#948 picks whole lanes from the changed files, and any path it does not recognize runs every lane. This PR routes PR CI by test group: each changed file maps to the groups whose tests depend on it. A job runs only if one of its groups is selected, and inside a job a test step runs only if its own group is selected.
Test groups
epkiwiccliorasshmemumbpccoepv2fusedbuildJobs and the groups that start them:
ep,ccl,io,ras,shmemepep,ccl,ioep,kiwi,ccl,io,ras,shmemep,kiwi,ccl,ioumbpcco,epv2epv2fusedfusedaloneIn the jobs that serve several groups, each test step has
if: contains(fromJSON(...groups), '<group>'). Setup and cleanup steps always run.The lanes are derived from the groups:
mori(MI355X) is any ofep,ccl,io,ras,shmem;ccoisccoorepv2.mi300xis any of those orkiwi, and as before only when the change touchesMI300X_PATHS.ci:mi300xwith none of the MI300X groups selected runs the MI300X jobs with all their groups and leaves the MI355X jobs off.The scope outputs the groups as a JSON list (
groups) and abuildflag.ci_cco.ymltakesgroupsinstead of thecco/fusedbooleans. The routing comment lists the jobs that run in each lane and the selected groups.How a file maps to groups
The rules in
ci_scope.py(first match wins) come from a scan of the whole repo:Shared code counts for every group that uses it:
src/cco,include/mori/cco,python/mori/cco)cco,epv2,fusedsrc/io,src/ras,python/mori/io)io,ccl,ras,umbpsrc/shmem,python/mori/shmem,python/mori/ir)shmem,ep,kiwi,ccl,cco,epv2,ioops/__init__.py,utils.py,dispatch_combine.py)ep,kiwi,epv2,fusedsrc/jit,jit/v2,dispatch_combine_v2epv2src/metricsumbpsrc/application,include/mori/core, build files,ci.yml)A file that a group's tests only link or import at load time counts for the group that owns it. If such a file breaks, the owning group's tests fail too.
Files that tests of another group read at run time count for that group as well:
test_umbp_lazy_loadchecks whatimport mori.ops, mori.io, mori.shmemloads. Every module those imports run counts forumbptoo. The scope computes this import closure from the PR's checkout.examples/umbp/multi_backend_policy.json. A UMBP C++ test reads it.examples/cco/python/cco_example_common.py. The EPv2 tests import it.tests/python/cco/__init__.py. The fused GEMM tests run it.Paths that no longer run every lane:
tools/files that PR CI does not run, build or import (tuning, perf, profiler and docs scripts,build_manylinux_wheel.py, ...).clang-format,.typos.toml,CPPLINT.cfg,.pre-commit-config.yaml,tools/codestyle/(only pre-commit reads them)fsdp_sdma,torch_symm_all2all,monitoring,io, cco Python 03/06/09/11/12)tests/cpp/jit/,tools/jit_v2/epv2tests/cpp/ras/raskiwitests/python/ops(v1),examples/opsep,kiwiHow a
tools/file is decidedtools/file counts when a PR CI entry point names it, or when a countedtools/file does.ci.yml,ci_cco.yml, thedocker/files they use,setup.py,pyproject.toml, anyCMakeLists.txt,cmake/andpython/mori.setup.py→setup_spdk.sh→umbp_spdk_preflight.sh.run_internode_test.shmaps toep,kiwi,epv2, andrun_cco_tests.shtocco. Any other counted file is classified like any other path.python/mori: 251 of the repo's 1301 files. Without them, everytools/file counts and everypython/morimodule counts forumbp.Effect
Replayed over the 191 PRs merged since 2026-09-08 and the 93 open PRs, using per-step median durations from past runs:
python3 .github/scripts/ci_scope.py --files <list>prints the lanes and groups for a file list.🤖 Generated with Claude Code