Skip to content

ci: full suite in 3 parallel parts; det shards balanced by recorded durations (#4825) - #4828

Merged
squid-protocol merged 1 commit into
mainfrom
ci/4825-balanced-shards
Oct 10, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/4825-balanced-shards

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Speed follow-up to #4825/#4826. The full suite became the slowest required check (12–20 min on one runner).

Change:

  • Full suite in 3 parts. full-suite part N/3 runs on 3 runners, each pytest -n auto --splits 3 --group N (pytest-split 0.10.0, balanced by test count for now). full-suite stays 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.
  • Det shards balanced by duration. tests/equivalence/det_sweep_durations.json is seeded from 2026-10-09 local sweeps (103 cases). It had never been committed: the repo-wide *.json ignore 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 --fast 5/5. This PR's own CI exercises the split.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

…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
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 01:41
@squid-protocol
squid-protocol merged commit 1d12c92 into main Oct 10, 2026
24 checks passed
@squid-protocol
squid-protocol deleted the ci/4825-balanced-shards branch 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant