Repository navigation
perf(ci): shard the playwright tier three ways behind a same-name gate - #389
Merged
Merged
Conversation
579 tests ran on ONE worker — Playwright's CI default, and nothing overrode it — for 15.9m of strictly serial execution (run 41461727537). Three `--shard=N/3` legs keep one worker per runner (both webServers are shared mutable state across workers, so raising workers is unvalidated; sharding changes no test semantics) and cut the tier's wall to ~6-8m. `e2e-gate` carries the old job's exact name, so the required context "playwright functional tier" kept reporting and branch protection never changed — the same plan-gate pattern rust.yml's e2e split uses. Failure artifacts are suffixed per shard (upload-artifact v4 hard-fails on duplicate names). required-checks.md regenerated. Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Nov 2, 2026
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]>
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.
What
e2ebecomes a 3-leg matrix runningpnpm test:e2e --shard=${{ matrix.shard }}/3— Playwright splits at test granularity across all three device projects (fullyParallel: true), ~193 of 579 tests per leg, auto-balanced as tests are added.e2e-gate(non-matrix) carries the old job's exactname:, so the required context "playwright functional tier" keeps reporting with zero branch-protection edits (matrix per-leg names can never be required — the infra.ymlplan-gatelesson).playwright-report-shard-N(upload-artifact v4 hard-fails on duplicate names when two shards fail in one run).Why
Run 41461727537: 579 tests on 1 worker, 15.9m — Playwright's CI default, never overridden. Sharding keeps one worker per runner, so it changes nothing about test semantics; raising
workersinstead would be cheaper but both webServers (mock erserver,next start+ in-memory PGlite) are shared mutable state across workers and the suite has only ever run at workers=1 in CI. A nightly workers=2 validation experiment is a planned follow-up; the flip stays out of scope until it holds.Expected: tier wall ~17m → ~7–9m for ~+8 runner-minutes.
retries: 2applies per-leg, unchanged.Verification
🤖 Generated with Claude Code