ci(e2e): parallelize E2E tests with 8-shard matrix#217
Merged
Conversation
Replace the single E2E job with an 8-shard matrix strategy using Playwright's --shard flag. Each shard runs ~3-4 test files with 4 workers (1 per vCPU) instead of 8, reducing CPU contention and flakiness. A merge-reports job combines blob reports into a single HTML artifact. Delete the standalone e2e.yml workflow that ran on beta pushes — all E2E runs now happen in ci.yml on main-targeting PRs. - Workers: 8 → 4 per shard (reduced CPU contention) - Reporter: conditional blob (sharding) vs html (local/non-sharded) - New scripts: test:e2e:shard, test:e2e:merge-reports - Timeout: 30 min → 15 min per shard - Expected wall-clock improvement: ~25-30 min → ~5-8 min Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
🎉 This PR is included in version 1.9.0-beta.57 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Feb 23, 2026
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
ci.yml, reducing wall-clock time from ~25-30 min to ~5-8 min per sharde2e.ymlworkflow — all E2E runs now happen inci.ymlon main-targeting PRsChanges
e2e/playwright.config.tse2e/package.jsontest:shard+merge-reportsscriptspackage.json(root)test:e2e:shard+test:e2e:merge-reportsproxy scripts.github/workflows/ci.ymle2ejob with 8-shard matrix +e2e-merge-reportsjob.github/workflows/e2e.ymlCLAUDE.mde2e.ymlreferencesTest plan
beta:e2e-smokeruns as before; shardede2edoes NOT run (gated tomain)main: 8E2E Tests (Shard N/8)jobs appear, merge job combines reportse2e-test-resultsartifact🤖 Generated with Claude Code