Repository navigation
CI (dev): split the slow cluster runtime groups over 5 shards - #1868
Merged
Merged
Conversation
Cluster Runtime Tests shard 2 was the slowest blocking job (16.6 min median): the batch-session suite runs 672 s in one process beside the Qwen GPU chain (687 s). Shard 3 ran the Gemma 4 base suites, 610 s. - The batch-session suite runs in two processes: its warm and SSD prefix tier tests in base-batch-session-prefix-tiers (a new `functions` field of a base selection), the rest in base-batch-session, which skips them. Each runs beside one half of the Qwen GPU chain, on shards 2 and 3. - The Gemma 4 base suites run in two processes, each alone on a shard: Gemma4TensorParallelTests on shard 4, the other Gemma suites on shard 5. - The new shards use approved lanes with a count: shards 2 and 3 read test-cluster-2, shards 4 and 5 test-cluster-3 (matrix.lane). - The audit checks that each Gemma suite runs whole in exactly one base selection of Gemma suites, and that each named suite function is an ungated test of its suite, named once, with one base selection for the rest of the suite. - The CI plan checks run in their own job beside the test jobs; the Provider Tests gate requires it instead of running them last. No test, selection guard, lock-retry, stagger, share-probe placement, parity count or gate condition is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Run 42297089088 sampled the 5 runtime shards on Darkbloom (12 vCPU, 32 GiB): shard 2 24.72 GiB, shard 3 12.96 (lane test-cluster-2, 12x32), shard 4 9.27, shard 5 14.39 (lane test-cluster-3, 4x24). A shared lane asks for the size that holds the larger shard; both sizes stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- build.md (Build Once table): test-cluster has shards 1 to 5, not 1 to 3. - test.md: the lock-retry sentence starts its own line again. - provider-plan.yml: reflow the route comment. - cluster-test-plan.py: the Gemma timing comment names the old base-gemma process, not a shard number that now means another shard. No behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1865 adds test-prepare-mimo-image-http-fixtures.py to the prompt fixture downloader checks. Those checks moved from the Provider Tests gate to the ci-plan-checks job on this branch, so the new script runs there; build.md names it in that job's list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai
added a commit
that referenced
this pull request
Nov 7, 2026
Keeps dev's 5 Cluster Runtime Tests shards, their shared lanes and the Check the CI plans job (#1868), and this branch's Cluster GPU Tests shard 3 (the segments half of the real-geometry rows check) with the rows half alone on shard 1. A cluster change now runs 12 Macs; the routed asks stay 12 with sizes on and 9 with them off, since the GPU shards are not routed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 of 13 tasks
This branch had an error being deployed
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.
Why
Cluster Runtime Tests shard 2 was the slowest blocking job: 15.7 min median (18.6 max) over the 14 full CI (dev) runs of 2026-11-06. One process, the batch-session suite (
QwenTensorParallelBatchSessionTests, 672 s on the CPU), ran beside the whole Qwen GPU chain (687 s). Shard 3 ran the Gemma 4 base suites in one process (610 s). Runtime shard 2 ended at 19.1 min of the run, and theProvider Testsgate then spent 1.3 min running the CI plan checks.Measured seconds per selection (median of 5 runs, sampler marks,
resource-samples-test-cluster-*):base493, share probe 9base-batch-session721, GLM paged-KV 45, row 11, depth 8, census 7, TF32 8, Gemma diag 16base-gemma618What changes
scripts/cluster-test-plan.py).base-batch-session-prefix-tiersruns its warm and SSD prefix tier tests (warmAttention…,ssdAttention…,ssdBalanced…, 325 s).base-batch-sessionruns the suite and skips those 3, so a new test of the suite runs there. The newfunctionsfield of a base selection names the tests.base-batch-session(group 2).base-batch-session-prefix-tiers(group 2).base-gemma-tensor-parallel(Gemma4TensorParallelTests) andbase-gemma(the other 8 Gemma suites), each alone on its Mac.matrix.lane). Shards 2 and 3 sharetest-cluster-2and shards 4 and 5 sharetest-cluster-3. Each of these lanes is requested for 2 jobs, astest-cluster-focusedis. The plane granted both counts in this PR's runs, so the approval needs no change. Requested macOS jobs: 9 of the cap of 16 (7 before).ci-plan-checksjob (Check the CI plans) runs the plan checks from the start of the run, beside the test jobs. The gate requires its success in a step of its own. The gate checks out onlyscripts/ci-tested-tree.pyfor the record. It now takes 0.1 min (1.3 min before).cluster-test-plan.py auditnow also checks two things:DARKBLOOM_JOB_SHAPES, off). Both lanes keep their sizes, from the memory sampled in run 42297089088 (rule: used × 1.25 ≤ RAM):test-cluster-2stays 12x32. Shard 2 used 24.72 GiB (30.9 ≤ 32) and shard 3 used 12.96 GiB.test-cluster-3stays 4x24. Shard 4 used 9.27 GiB and shard 5 used 14.39 GiB (18.0 ≤ 24).docs/developer/build.md(Job sizes) has the numbers.Every guard stays: the lock-retry guard, the 15 s group stagger, the share probe alone after
baseon shard 1, the Gemma-suite audit and the provider parity counts. No test, selector or gate condition is removed.Executed counts (run 42297089088)
base-batch-sessionbase-batch-session+ 3 inbase-batch-session-prefix-tiersbase-gemmabase-gemma-tensor-parallel+ 53 tests, 8 suites inbase-gemmabaseBefore and after
Before: the 14 full CI (dev) runs of 2026-11-06 (42201769655 … 42281198827). After: this PR's runs: 42297089088 attempts 1 and 2, and 42303581994 (head 9796f02). Medians; each run's own value follows in brackets. vCPU-min counts the macOS jobs only, at 12 vCPUs each: sizes are off, so every Darkbloom and Blacksmith Mac here has 12 vCPUs.
Provider Tests) donebase)Three things limit the after figures:
rowsEqualTheirSoloStepsAndWindowPositionsAtRealWidths(QWEN_TP_REAL_GEOMETRY_GPU). It takes 18 to 19 min and ends at 22 to 23 min in every run, before and after. Its time is spent inQwenTensorParallelRowsCheck.run. To shorten it, the test or that check must be split. That is a test change, not a CI plan change, so this PR leaves it. Until then the run stays at about 22.5 min even though the gate finishes sooner.provider-tests.yml, which is amimo_audioinput. Provider shard 2 therefore also prepared the audio fixture and ran the audio gate. The fixture took 264 and 254 s in the two attempts of 42297089088, which made that shard the slowest blocking job (16.6 and 14.4 min), and 68 s in 42303581994. Only 2 of the 14 before runs selected audio: there provider shard 2 took 11.0 and 11.7 min, and the gate ended at 22.5 and 24.9 min. In a run without audio, the provider shards end at about 15.5 min (before median), so the gate ends at about 15.6 min.basevaries with the Mac. Shard 1 (base, then the share probe, unchanged) is now the longest cluster shard.basetook 441 s in run 42297089088 and 628 s in run 42303581994, against 493 s median (522 max) before. Splittingbaseis the next cluster step.I did not change the provider shard weights. The two shards end within about 1.5 min of each other, and download variance is larger than that. The measured job extras, about 93 s for parity and about 138 s for the last shard, would move about 25 s of work, and the release qualification lane would get a different plan.
Validation
No builds or tests ran on the laptop. CI ran the changed plan self-tests in Check the CI plans:
test-cluster-test-plan.py,test-provider-test-shards.py,test-darkbloom-route.py,test-provider-ci-workflow.pyandtest-ci-component-paths.py, plus the plan audit. That job passed in every run.Non-green checks, none caused by this change:
ObservabilityChecksE12, the heartbeat timing flake that PR 1864 fixes.ProductionModelCalibrationTests, Qwen3.8-27B contiguous,isolatedPrefill.sampleCountwas 1, not 2. This plan does not touch it, and it passed in attempt 2.Refactor pass: done (commit 7fe7a39). No plan logic changed: it corrected the Build Once table (test-cluster shards 1–5), split a run-on lock-retry sentence in test.md, reflowed a route comment, and fixed a stale Gemma timing comment. Signed dev merges cea674c, 23d9d40 and f863023 kept #1865's image-fixture self-test in
ci-plan-checks. CI run 42315882632 on f863023 passed every job.🤖 Generated with Claude Code