Repository navigation
Repair the three CI checks #16407 left red on main - #16446
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
added a commit
that referenced
this pull request
Nov 2, 2026
…ard (#16447) ## Summary Since #16407, `Repo tests (CPU, gloo)` sits right at its step cap. On main (`9341351954`) it ran 1922 s of the 2100 s cap. On #16444, against the same base, it hit the cap and was killed (`exit code 124`) after 145 of its 153 tests had passed. #16407 grew `tests/test_parallel_cp_compose_gloo.py` to 27 tests. I timed the shard per file locally (`-n 4 --dist loadgroup --durations=0`, the CI selection). That one file takes 1143 of the shard's 3605 test-seconds, about a third: | File | test-seconds | share | |---|---|---| | `test_parallel_cp_compose_gloo.py` | 1143 | 31.7% | | `test_tp_env_gloo.py` | 796 | 22.1% | | `test_tp_replica_gloo.py` | 533 | 14.8% | | `test_tp_full_finetune_gloo.py` | 429 | 11.9% | | the other 12 files | 704 | 19.5% | `gloo-tp-pp` cannot absorb it, because it already runs 1397 s on main. The file also cannot run four tests at a time on its own. Each test spawns 2 to 8 gloo ranks. In this PR's first two runs of a dedicated shard at `-n 4`, the runner was shut down mid-run both times (`The runner has received a shutdown signal`, exit 143). Measured locally as summed PSS over the pytest process tree, the peak is: | workers | peak memory | local wall time | |---|---|---| | 4 | about 20 GB | 291 s | | 2 | about 12 GB | 440 s | A hosted runner has 16 GB. In the mixed `gloo` shard, the file's tests were interleaved with lighter ones, so they rarely overlapped four at a time. ## Change `.github/workflows/studio-backend-ci.yml`: - New `gloo-cp` shard: `tests/test_parallel_c*gloo*.py`, with `workers: 2`. - The repo-cpu pytest command reads `-n ${{ matrix.workers || 4 }}`, so every other shard keeps `-n 4`. - The `gloo` shard's `tests/test_p[!p]*gloo*.py` becomes `tests/test_parallel_[!c]*gloo*.py`. Its other globs are unchanged. - Comments record why the split and the worker count exist. They also note that a future `*gloo*` file named `test_p[!ap]*` would match no shard; `tests/test_ci_repo_cpu_shards.py` reports that as a dropped file. `tests/studio/test_backend_ci_parallel_isolation.py`: - Its command scan substitutes each shard's `workers` (or the expression's default), the way it already substitutes `selection`. Before that, its existing "no unexpanded `${{`" assertion caught the new expression. - The pinned counts move from 11 to 12 parallel runs, and from 8 to 9 repo-root shards. ## Testing - With main (now including #16446) merged in, these pass (176 passed): - `tests/test_ci_repo_cpu_shards.py` - `tests/test_ci_backend_pytest_shards.py` - `tests/studio/test_backend_ci_parallel_isolation.py` - `tests/test_rendezvous_port_everywhere.py` - `tests/studio/test_cache_budget_discipline.py` - `tests/test_parallel_cp_compose_gloo.py` at `-n 2`: 23 passed, 3 skipped. - A first attempt, `test_p[!ap]*gloo*.py`, matched no file, and the guard's unexpanded-pattern check caught it. Hence the explicit `test_parallel_` globs.
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.
Summary
#16407 (
9341351954) merged with three of its CI reds, soBackend CIandCoreare now red on main and on every PR based on it. All three reproduce locally on current main (2f5ff226b8).1.
Repo tests (CPU, rest): a file in two shardsrest-2takestests/test_[dimsu]*.py, and theglooshard takestests/test_[!fpt]*gloo*.py. Their split relies on no*gloo*file starting with d, i, m, s or u, as the workflow comment says. The newtest_muon_dtensor_gloo.pybreaks that rule, so it ran twice.An
--ignore-globonrest-2does not help. The shell expands the glob into explicit file arguments, and pytest 9 collects explicit arguments even when they match--ignore-glob; I checked that locally. So the file is renamed totests/test_optim_muon_dtensor_gloo.py, which only theglooshard matches. The comment intest_parallel_env.pythat names it follows the rename.2.
Repo tests (CPU, rest-2): an unencoded readThe new capability-registry test reads checked-in test files with the platform default encoding. It now passes
encoding = "utf-8".3.
Core(all three combos):test_context_parallel_disables_eval_packingThis is the test being out of date, not the product. #16407 changed the default
context_parallel_backendfrom"ring"to"auto".resolve_cp_backendresolves"auto"to Ulysses unless the heads cannot be split over cp, and Ulysses keeps packed rows apart. So the trainer now deliberately leaves packing on. The test sets no backend and still expected ring's behaviour.The test now covers each backend:
ring: packing is turned off, as before;ulysses,autoand unset: packing stays on.Testing
tests/test_ci_repo_cpu_shards.py,tests/test_source_read_encoding.py,tests/utils/test_packing.pytests/test_parallel_env.pytests/test_optim_muon_dtensor_gloo.py