Skip to content

perf(ci): split the test job's one dominant binary onto its own leg - #391

Merged
athvin merged 1 commit into
mainfrom
bm/ci-shard-test-job
Nov 2, 2026
Merged

athvin merged 1 commit into
mainfrom
bm/ci-shard-test-job

Conversation

@athvin

@athvin athvin commented Nov 2, 2026

Copy link
Copy Markdown
Owner

What

test becomes a 2-leg matrix + gate (the pattern #388 established for the e2e tier):

  • leg er-match: cargo test -p er-match — its tests/main alone is 264s of the job's ~430s of test execution
  • leg rest: cargo test --workspace --exclude er-match — complementary by construction: a new crate's tests default into this leg, never into no leg; doctests stay complete across the pair
  • test-gate carries the old job's exact name: test → zero branch-protection edits

Why

Run 41461727505: the 13m job = 3m11 build (sccache 97.9%) + ~7m of binaries running serially (er-match 264s, er-std 85s, dedupe-core 66s). After #388 the rust wall is ~15m; this takes the test tier to ~9m so the lake shards become the next ceiling (addressed next by rebalancing the e2e partitions).

Verification

  • This PR's own run exercises both legs; the gate reports under the old context name.
  • Leg logs must show er-match's 264s binary on the er-match leg and everything else on rest.

🤖 Generated with Claude Code

The 13m job was 3m11 of build and ~7m of test binaries running one after the
other — er-match's tests/main alone 264s, er-std's 85s, dedupe-core's 66s
(run 41461727505). Two legs now run in parallel: `-p er-match` and
`--workspace --exclude er-match`, complementary by construction so a new
crate's tests default into the rest leg, never into no leg. `test-gate`
carries the old job's exact name, so the required context "test" kept
reporting and branch protection never changed. Expected ~13m -> ~9m.

Co-Authored-By: Claude Fable 5 <[email protected]>
@athvin
athvin merged commit 50966ff into main Nov 2, 2026
29 checks passed
athvin added a commit that referenced this pull request Nov 2, 2026
…ngs (#395)

The after-numbers for #388/#389/#391/#393/#394: PR wall ~32-35m -> ~13.5m,
per-leg breakdowns, the completeness checks that were run rather than
assumed, the remaining floors (er-server's pg suite at 423.8s, hash
lumpiness, playwright shard 2) and the deliberate minutes cost. Plus two
findings: a lock-touching PR runs cold until merge by design (read-only
sccache role), and the disk-reclaim step stays on every leg by measurement
(15G free at boot, ~7G/~2G margins without it).

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
@athvin
athvin deleted the bm/ci-shard-test-job branch November 2, 2026 17:04
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.

2 participants