Duration-balance the CI pytest shards (~22m target per shard) - #406
Merged
Conversation
Commits the .test_durations file captured from a full local 3h17m suite run (5,667 passed / 91 skipped on Python 3.14) and switches pytest-split to least_duration splitting. The count-balanced shards were lumpy (3m/52m/2m/31m); duration balancing targets ~22m per shard. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
least_duration scattered the heavy census modules across shards, making every shard pay their module-scoped fixture setup (39-55m per shard, ~2x total compute). duration_based_chunks balances cumulative duration over contiguous collection order, keeping expensive modules intact. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Follow-up to #402: commits the
.test_durationsfile from a full local suite run (3h17m serial, 5,667 passed / 91 skipped, Python 3.14) and enablesleast_durationsplitting. The count-balanced shards ran 3m/52m/2m/31m; the wall-clock bound was the 52m shard. Duration balancing targets ~22m per shard — this PR's own run is the benchmark.The durations file goes stale gracefully (new tests split by count within groups); refresh it opportunistically from future local full runs.
🤖 Generated with Claude Code