Repository navigation
CI: the always-on np 3 and np 4 runs move to shard 6; shard 4's limit 70 -> 80 - #1245
Merged
Merged
Conversation
… 70 -> 80 Shard 4 reached 68.5 of its 70 minutes on #1225's re-run and 66 on development itself (the sum of its test sessions is the same on both): the next file added would cancel every PR. Its always-on runs at three and four ranks (oversubscribed on a two-core runner) took 20.3 of those minutes; they now belong to shard 6, which had 4 minutes of work, under the same supervisor. Shard 4's timeout-minutes goes from 70 to 80 as headroom. Underworld development team with AI support from Claude Code
The always-on np 3 and np 4 runs took 3.4 minutes on shard 6, not the 20 estimated for them: on #1225's shard 4 the np 2 batches were 26.5 of the 68.6 minutes. Sharded, the batches of tests/parallel/test_*.py now alternate: even-numbered on shard 4, odd on shard 6. The batch boundaries are the unsharded ones, and an unsharded run still runs every batch. The comments that carried the 20-minute figure are corrected. Underworld development team with AI support from Claude Code
This was referenced Nov 20, 2026
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.
A CI balance fix, no issue. Review: H1, a session on a 96-thread Linux workstation that does review and parallel test runs.
Why
Shard 4 owns the whole np 2 parallel phase, and it is at its time limit on development itself:
Shard 4's test sessions sum to the same time on development and on #1225 (3,677 s against 3,681 s), so development's new test files cause the growth. The next file added there would cancel every PR.
Shard 4's phases on the #1225 re-run, from the log's timestamps:
Shard 6 had about 4 minutes of work.
Correction: this PR's first version split the parallel phase at the wrong timestamp. It counted most of the np 2 batches as the always-on runs ("20.3 min") and moved only those to shard 6. On this PR's first CI run, they took 3.4 min on shard 6. The second commit fixes the balance.
The change
tests/parallel/test_*.pyalternate between shards 4 and 6: even-numbered batches run on shard 4, odd-numbered on shard 6 (parallel_batch_owned).--full-parallelpasses split the same way.timeout-minutesgoes from 70 to 80 as headroom. The matrix job sets one limit for every shard.Measured
Every shard's job time in minutes. Runners vary by up to about 2x in CPU, so treat single runs as indicative.
Shard 4 is no longer the long pole. It went from 68.6 min to 41.7 min, against a limit of 80. Shard 6 now carries 23 min. The longest shard is shard 3, at 44.5 min.
Moving serial batches from shard 4 to shard 6 was also considered. It isn't needed with these numbers, so the serial assignment is unchanged.
Checks
bash -n scripts/test.sh: OK.scripts/test.sh --print-shards:[1,2,3,4,5,6], unchanged.scripts/check_test_coverage.py: OK.Underworld development team with AI support from Claude Code