Shard macOS unit tests and split E2E tests into three shards - #8297
Draft
isaacroldan wants to merge 2 commits into
Draft
Shard macOS unit tests and split E2E tests into three shards#8297isaacroldan wants to merge 2 commits into
isaacroldan wants to merge 2 commits into
Conversation
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Aug 11, 2026
macOS is the slowest and most variable unit-test runner (4m38s to 15m34s for the same suite in recent runs) and gates the required 'Unit tests' check. Shard it 2x like Windows to halve its wall-clock time.
Shard 1 consistently takes 1.5-2.5x as long as shard 2 (6.5-12m vs 4-5m). A third shard rebalances the file distribution and shortens the E2E chain that the cleanup job waits on.
isaacroldan
changed the base branch from
isaac/nx-cache-graphql-codegen
to
graphite-base/8297
August 11, 2026 11:53
isaacroldan
force-pushed
the
isaac/shard-macos-unit-tests
branch
from
August 11, 2026 11:53
627e5bd to
e362bc5
Compare
isaacroldan
force-pushed
the
graphite-base/8297
branch
from
August 11, 2026 11:53
8cce6d6 to
390d228
Compare
isaacroldan
changed the base branch from
graphite-base/8297
to
isaac/parallel-e2e-cleanup-jobs
August 11, 2026 11:53
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.

WHY are these changes introduced?
Two hotspots from analyzing recent CI runs:
WHAT is this pull request doing?
How to test your changes?
Check this PR's workflow run: all macOS unit shards finish in under ~5 minutes and the three E2E shards land within ~1 minute of each other (two attempts measured: 7m06s and 8m30s total, vs a 9–23m baseline).
🤖 Generated with Claude Code