perf(ci): Increase Jest shards from 4 to 8 for faster CI#114388
Merged
NicoHinderling merged 1 commit intomasterfrom Apr 30, 2026
Merged
perf(ci): Increase Jest shards from 4 to 8 for faster CI#114388NicoHinderling merged 1 commit intomasterfrom
NicoHinderling merged 1 commit intomasterfrom
Conversation
rbro112
approved these changes
Apr 29, 2026
Contributor
Author
|
seems very low risk, merging to test |
cleptric
pushed a commit
that referenced
this pull request
May 5, 2026
Increase Jest CI shards from 4 to 8 to reduce wall-clock time for frontend tests. Current state: 4 shards run ~6-8 minutes each, with the slowest shard (typically shard 3) bottlenecking at ~7-8 min wall clock. Total test execution across all shards sums to ~25 minutes. With 8 shards, each shard runs ~3 min of tests + ~22s setup overhead, cutting wall clock from ~8min to ~4min. Compute cost stays roughly the same (8×4min ≈ 4×8min), with minor additional overhead from 4 extra checkout/setup steps. Also fixes a bug in `jest.config.ts` where the round-robin leftover distribution was hardcoded to `i % 4` instead of `i % nodeTotal`, which would have caused imbalanced shard assignment with any non-4 shard count.
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.
Increase Jest CI shards from 4 to 8 to reduce wall-clock time for frontend tests.
Current state: 4 shards run ~6-8 minutes each, with the slowest shard (typically shard 3) bottlenecking at ~7-8 min wall clock. Total test execution across all shards sums to ~25 minutes.
With 8 shards, each shard runs ~3 min of tests + ~22s setup overhead, cutting wall clock from ~8min to ~4min. Compute cost stays roughly the same (8×4min ≈ 4×8min), with minor additional overhead from 4 extra checkout/setup steps.
Also fixes a bug in
jest.config.tswhere the round-robin leftover distribution was hardcoded toi % 4instead ofi % nodeTotal, which would have caused imbalanced shard assignment with any non-4 shard count.