Repository navigation
ci: four shards, two perf jobs and parallel unit tests - #186
Merged
2 commits merged intoNov 22, 2026
Merged
2 commits merged into
2 commits merged into
Conversation
- The browser suites run in four duration-packed shards. - Perf splits into the typing budget and the feature budgets, each on its own runner with one worker; the gate needs both. - Unit tests run with bun test --parallel (scripts/unit-tests.ts), the files that assert a wall-clock budget serially after; UNIT_SERIAL=1 runs them all serially. A test keeps that list complete. - The stress probe moves to a nightly job that also compares a serial unit run with CI's, file by file. - Changed files logs the timings count, not the JSON.
HMarzban
marked this pull request as ready for review
November 22, 2026 15:02
This was referenced Nov 22, 2026
44d48d8
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.
Summary
Gets the slowest CI job under about 6.5 min and checks to about 4.5 min. It also folds in #155, so the parallel unit tests are now real. #155 will be closed in favour of this PR.
Playwright shard 1/4…4/4;e2e-shards.ts plan N/4; fallback--shard=N/4). The suite is now about 3,150 s of browser tests outside perf, so about 790 s per shard.Playwright perf (typing budget):performance.spec.tsandtoolbar-perf.spec.ts, via--test-list. About 300 s of tests.Playwright perf (features): every other perf spec, via--test-list-invertof the same list (today find-perf, page-engine-perf and image-asset-encoder-perf). A new perf spec lands here and can never fall between the two jobs.needs: perfcovers both legs.scripts/unit-tests.tsrunsbun test --parallelon every unit file exceptSERIAL_FILES, then those serially.SERIAL_FILESare the 5 files that read the clock and assert a budget: bubble-controller, find-hits, spawn-hocus, markdown-parse and hocus-document-guard.tests/unit/ci/unit-tests.test.tsscanstests/unitand fails if a file with a clock-based budget is missing from the list.UNIT_SERIAL=1(gh variable set UNIT_SERIAL --body 1) runs everything serially.unit-runsjob runs the unit tests fully serially and as CI runs them, compares the two file by file withscripts/compare-unit-runs.ts, then runs the stress probe (continue-on-error). The nightly streak classifies the 4 new steps as test steps.Changed fileslogs "Shard timings: N files, from run X" instead of the whole JSON.Verification
bun test tests/unit/ci tests/unit/scripts/nightly-streak.test.tspasses 203 tests. actionlint, typecheck and Biome are clean.--test-listgives 5 tests in 2 files and--test-list-invertgives 7 tests in 3 files: all 12 perf tests.🤖 Generated with Claude Code