Repository navigation
ci: shard Electron smoke tests across two jobs per platform - #341808
Merged
Logan Ramos (lramos15) merged 2 commits intoOct 16, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Required-check cancellation handling needs correction, and cross-platform orchestration still needs end-to-end CI confirmation.
1 open finding
What changed in this PR
Splits Electron smoke tests across two jobs per platform to reduce timeout failures while preserving required-check names.
Changes:
- Adds duration-balanced suite sharding and timing summaries.
- Configures platform matrices, aggregation gates, and shard-specific setup.
- Documents sharding and artifact naming.
| File | Description |
|---|---|
test/smoke/test/index.js |
Reports suite durations. |
test/smoke/src/shard.ts |
Parses shard selections and balances suites. |
test/smoke/src/main.ts |
Applies shard selection. |
test/smoke/README.md |
Documents the shard option. |
.github/workflows/pr.yml |
Adds shard matrices and required-check gates. |
.github/workflows/pr-win32-test.yml |
Adds sharding and first-shard WSL setup. |
.github/workflows/pr-linux-test.yml |
Passes shard inputs and separates artifacts. |
.github/workflows/pr-darwin-test.yml |
Adds sharding and last-shard proxy runs. |
.github/skills/smoke-tests/SKILL.md |
Updates CI and debugging guidance. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
The Electron smoke step takes up to ~20 minutes on the PR runners and is hitting its 20 minute timeout. Add a --shard <index>/<total> option to the smoke runner that balances top-level suites by estimated duration, run two shards per platform as a matrix, and keep the required <OS> / Electron-Smoke checks with a gate job. Refs #341382 Co-authored-by: Copilot <[email protected]>
…ired checks A skipped job counts as passing for required status checks, so gating on !cancelled() let a cancelled run satisfy the required <OS> / Electron-Smoke checks. Run the gate with always() and keep failing it unless every shard succeeded. Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15)
force-pushed
the
lramos15/agents/shard-tests-for-faster-ci
branch
from
October 15, 2026 17:06
acac1c0 to
fc9e6f5
Compare
Logan Ramos (lramos15)
marked this pull request as ready for review
October 15, 2026 18:40
Raymond Zhao (rzhao271)
approved these changes
Oct 15, 2026
Ulugbek Abdullaev (ulugbekna)
approved these changes
Oct 16, 2026
Logan Ramos (lramos15)
deleted the
lramos15/agents/shard-tests-for-faster-ci
branch
October 16, 2026 11:08
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.

Refs #341382
The Electron smoke tests are the slowest PR job on all three platforms. On the slower Linux runners they take about 20 minutes and keep hitting the smoke step's 20 minute timeout. This PR splits them into two shards per platform. The required checks keep their names, so branch protection doesn't change.
Changes
--shard <index>/<total>runner option, intest/smoke/src/shard.ts.pr.ymlruns the Electron smoke tests as a two-shard matrix per platform. The shards report as<OS> (shard 1/2) / Electron-Smokeand<OS> (shard 2/2) / Electron-Smoke.electron-smoke-checks, reports the existing required<OS> / Electron-Smokechecks. A platform's check fails if any of its shards did not succeed.VSCODE_SMOKE_TEST_WSL_REQUIREDstays set in every shard so all shards register the same suites and compute the same split.Expected impact
These estimates use the per-suite timings from run 38443277116:
Notes for reviewers
JobIdrunner label get a-shard<N>suffix.How to test
Run one shard locally with
npm run smoketest -- --shard 1/2. This PR's CI exercises the sharded jobs end to end.Validation done:
node ../../node_modules/typescript/bin/tsc6(intest/smoke): passed.VSCODE_QUALITY=oss VSCODE_SMOKE_TEST_POLICY=1and--shardvalues1/2,2/2,1/3,2/3,3/3and1/1. Run both with and withoutVSCODE_SMOKE_TEST_WSL_REQUIRED=1. Passed: shards never overlap and together match the unsharded list of 132 tests,1/1matches the unsharded run, and the WSL suite always lands in shard 1.--shardvalues0/2,3/2,1/0,abcand2each exit with code 1 and a clear message: passed.npm run eslint -- test/smoke/src/shard.ts test/smoke/src/main.ts test/smoke/test/index.js: passed.node build/hygiene.tson the changed files: passed.actionlint -shellcheck= .github/workflows/pr.yml .github/workflows/pr-linux-test.yml .github/workflows/pr-darwin-test.yml .github/workflows/pr-win32-test.yml: no new findings. The only findings are 6 existing warnings about unknown self-hosted runner labels.