Repository navigation
ci: full suite in 3 parallel parts; det shards balanced by recorded durations (#4825) - #4828
Merged
Merged
Conversation
…urations (#4825) - smoke-test.yml: the full suite (~16.6k tests, 12-20 min on one runner even with -n auto) runs as `full-suite part N/3` (pytest-split==0.10.0 --splits 3 --group N, each still -n auto; balanced by test count until a durations file exists). The required check `full-suite` is now a small job that passes only when every part passed, so the ruleset (24824983) is unchanged. Entry-point smoke checks and the advisory summaries run in part 1. - tests/equivalence/det_sweep_durations.json: seeded from 2026-10-09 local sweeps (103 det cases); `proof_sweep --shard I/N` balances by it. It had never been committed: the repo-wide `*.json` ignore swallowed it (exception added). Simulated on the 65 non-Db2 cases over 20 shards: longest shard 4.6 -> 3.8 min (= the slowest single case). The nightly Db2 sweep (one 29-min job in Evidence Refresh) is not sharded: each shard would start its own Db2 container, to save ~20 min on a run nobody waits for. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
Contributor
squid-protocol
marked this pull request as ready for review
October 10, 2026 01:41
squid-protocol
added a commit
that referenced
this pull request
Oct 10, 2026
…#4829) #4828's count-based split ran 11.3 / 5.7 / 7.1 min (part 1 held the heavy tests). .test_durations (16,617 tests, 20.3 min of test time, recorded locally with --store-durations, rounded to 0.01 s) lets pytest-split balance by time: simulated 6.8 / 6.8 / 6.7 min of test time per part. Refresh with `pytest tests/ -n 8 --store-durations`. Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Speed follow-up to #4825/#4826. The full suite became the slowest required check (12–20 min on one runner).
Change:
full-suite part N/3runs on 3 runners, eachpytest -n auto --splits 3 --group N(pytest-split 0.10.0, balanced by test count for now).full-suitestays the required check's name: a small job that passes only when all 3 parts passed, so the ruleset is unchanged. Entry-point checks and advisory summaries run in part 1.tests/equivalence/det_sweep_durations.jsonis seeded from 2026-10-09 local sweeps (103 cases). It had never been committed: the repo-wide*.jsonignore swallowed it, so shards were split by name (CI shards ran 2–7.3 min). An exception is added. Simulated longest shard: 4.6 → 3.8 min, which equals the slowest single case.Not changed: the nightly Db2 sweep (one 29-min job). Sharding it would start a Db2 container per shard to save time on a run nobody waits for.
Expected: a PR's slowest check falls from ~20 min to ~8–10 min.
Tests: test_det_sweep_fast + test_pr_gates_fleet 41 passed;
pr_gates --fast5/5. This PR's own CI exercises the split.🤖 Generated with Claude Code
https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV