ci: Change host shard count to 12 - #5857
Draft
backspace wants to merge 1 commit into
Draft
Conversation
Twenty concurrent jobs per host run is a large share of the runner pool, and the queue shows it: shards have been observed waiting up to 242s for a runner while the pool works through the backlog. Fewer, longer shards is the trade. Setup is ~195s per shard and largely irreducible — four experiments on CS-12583 established it is bound by the runner's cores rather than by latency, so parallelising or pre-computing it moves the cost rather than removing it. Each added shard therefore buys a shrinking slice of test time for a fixed ~3 minutes of machine time and one more slot held. Against the ~8,665s of test work in run 32523921998: 20 shards models to ~10.5 minutes and 3.49 machine-hours, 12 to ~15.3 minutes and 3.06. The wall-clock figure overstates the real cost, since it assumes every shard starts immediately, which is the assumption the queueing disproves. The count lives in three places that have to move together — the matrix list, `shardTotal`, and `--shard-count` on the timings generator, whose drift gate predicts the slowest shard. A comment now says so. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Contributor
Host Test Results 1 files 1 suites 1h 46m 49s ⏱️ Results for commit 72f6b2c. |
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.
Claude explanation
Twenty concurrent jobs per host run is a large share of the runner pool, and the queue shows it: shards have been observed waiting up to 242s for a runner while the pool works through the backlog.Fewer, longer shards is the trade. Setup is ~195s per shard and largely irreducible — four experiments on CS-12583 established it is bound by the runner's cores rather than by latency, so parallelising or pre-computing it moves the cost rather than removing it. Each added shard therefore buys a shrinking slice of test time for a fixed ~3 minutes of machine time and one more slot held.
Against the ~8,665s of test work in run 32523921998: 20 shards models to ~10.5 minutes and 3.49 machine-hours, 12 to ~15.3 minutes and 3.06. The wall-clock figure overstates the real cost, since it assumes every shard starts immediately, which is the assumption the queueing disproves.
The count lives in three places that have to move together — the matrix list,
shardTotal, and--shard-counton the timings generator, whose drift gate predicts the slowest shard. A comment now says so.