Repository navigation
perf(ci): run the test row in four shards on four runners - #3517
Conversation
The Tests & Coverage check averaged 474 s on main over the last 30 pushes, over the 300 s bound of AGENTS.md rule 5. The same suite took 355 s on a fast runner and 528 s on a slow one, so no cut of constant work holds the bound on every runner. The test row now runs in four shard jobs with pytest-split, and the required job Tests & Coverage joins their coverage data, checks fail_under on the whole and runs the changed-line coverage. devops ci gets the options --shard and --shards. devops ci job-time times the check from the first shard to the end of the join, and its window is 20 runs.
The join check Tests & Coverage fails when a shard fails, and its log holds no test output. The watch now names a failed shard check first (#3050).
A late re-run of failed jobs found the one-day artifact gone, and coverage combine then merged fewer shards (#3050).
Proof and test resultsFail-to-pass: Local checks: Review follow-up
Open pointThe 5-minute figure is an estimate until this PR runs: 30 s setup, 25 s collection, a quarter of the test time and about 70 s for the join gives about 260 s on the slow runner. I will read the wall time of the first runs of this PR. If one is over about 270 s, a fifth shard is one more entry in the matrix. The 20-run mean of |
Each shard ran the tests of a quarter of the suite, so syrupy counted the snapshots of the other shards as unused and exited with 1 (#3050).
First CI run of this PR (head 28c9760)All checks pass. The first run of the head before it failed in all four shards: the tests passed, but syrupy exits with 1 on unused snapshots, and each shard holds the snapshots of the tests in the other shards as unused (8 in each shard; the full run on Wall time from the first shard start to the end of the join job |
🤖 I have created a release *beep* *boop* --- ## [0.56.1](v0.56.0...v0.56.1) (2026-11-04) ### Bug Fixes * **roadmap:** the App token can push a workflow file ([#3521](#3521)) ([835fbac](835fbac)) ### Performance Improvements * **ci:** run the test row in four shards on four runners ([#3517](#3517)) ([69ee7da](69ee7da)) * **k8s:** embedding-only tiers use one CPU thread ([#3522](#3522)) ([c196a54](c196a54)), closes [#3518](#3518) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The job Tests & Coverage took 355 s to 528 s on the runner that GitHub gave, over the 300 s of AGENTS.md rule 5. The cause is the speed of the runner and the size of the suite, so no cut of fixed work fixes it.
The test row now runs in four shards on four runners (
pytest-split,devops ci --shard N --shards T). A shard checks no coverage floor. The job Tests & Coverage stays the required check: it fails when a shard did not succeed, joins the coverage data withcoverage combine, appliesfail_underto the whole tree, and runs the changed-line coverage.devops ci job-timetimes a run from the first shard start to the end of that job. The implement watch reads the log of a failed shard, not of the join.Closes #3050
Change:
openspec/changes/archive/2026-11-04-3050-shard-the-test-job-across-runners/