Skip to content

Shard macOS unit tests and split E2E tests into three shards - #8297

Draft
isaacroldan wants to merge 2 commits into
isaac/parallel-e2e-cleanup-jobsfrom
isaac/shard-macos-unit-tests
Draft

Shard macOS unit tests and split E2E tests into three shards#8297
isaacroldan wants to merge 2 commits into
isaac/parallel-e2e-cleanup-jobsfrom
isaac/shard-macos-unit-tests

Conversation

@isaacroldan

@isaacroldan isaacroldan commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Two hotspots from analyzing recent CI runs:

  • macOS is the slowest and most variable unit-test runner (4m38s–15m34s for the same suite) and it gates the required "Unit tests" check.
  • The two Playwright E2E shards are unbalanced: shard 1 consistently takes 1.5–2.5× as long as shard 2 (6.5–12m vs 4–5m).

WHAT is this pull request doing?

  • Shards macOS unit tests 2×, mirroring the existing Windows sharding.
  • Splits the E2E tests into three Playwright shards instead of two.

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

isaacroldan commented Aug 11, 2026

Copy link
Copy Markdown
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.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Aug 11, 2026
@isaacroldan isaacroldan changed the title Shard macOS unit tests in CI Shard macOS unit tests and split E2E tests into three shards 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
isaacroldan changed the base branch from isaac/nx-cache-graphql-codegen to graphite-base/8297 August 11, 2026 11:53
@isaacroldan
isaacroldan force-pushed the isaac/shard-macos-unit-tests branch from 627e5bd to e362bc5 Compare August 11, 2026 11:53
@isaacroldan
isaacroldan changed the base branch from graphite-base/8297 to isaac/parallel-e2e-cleanup-jobs August 11, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant