Skip to content

ci: run more Windows smoke test shards and split the Windows remote tests - #343815

Merged
Logan Ramos (lramos15) merged 1 commit into
lramos15/split-electron-integration-testsfrom
lramos15/split-remote-and-smoke-tests
Oct 26, 2026
Merged

Logan Ramos (lramos15) merged 1 commit into
lramos15/split-electron-integration-testsfrom
lramos15/split-remote-and-smoke-tests

Conversation

@lramos15

@lramos15 Logan Ramos (lramos15) commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

With the earlier PRs, two Windows jobs usually finish last:

  • Electron smoke: three shards instead of two on Windows. Shard 1 also sets up WSL and took 15.3 min (p90 22.1, max 23.1) in two shards; in three it takes 14.7 (p90 17.4). Linux and macOS keep two shards, which finish before the Windows jobs.
  • Remote: Remote / Windows ran the remote integration tests and then the remote smoke tests, 15.6 min (p90 18.2). It's now Remote (integration) / Windows (8.2 min) and Remote (smoke) / Windows (about 11.5). Linux and macOS are unchanged.

PR Gate requires all the new jobs. The shards use the existing --shard support of the smoke tests, so there are no test changes. The smoke-tests skill notes the Windows shard count.

Saves: median −2.9 min and p90 −4.3 min on top of #343814. With the rest of the stack, leaving out the third smoke shard adds 1.0 min to the median and 4.3 to p90, and leaving out the Remote split adds 1.6 and 0.9. It adds 2 Windows jobs and about $0.36 per PR.

Validation

  • cd build && node --test lib/test/agentHostTestSelection.test.ts lib/test/detectChanges.test.ts lib/test/detectMissingCaches.test.ts lib/testAgentHostE2EStartup.test.ts: 30 passed.
  • actionlint on the changed workflows: nothing new.

Part of a stack to speed up PR CI

GitHub stack #344140: #343812 → #343813 → #343814 → #343815 (#343817 is separate). Each PR shows only its own changes, and CI runs on every layer as if it targeted main.

A split only helps if it shortens the job that finishes last in typical PRs, so the stack keeps only those. Run time in minutes is from replaying measured job times (20 CI runs of the stack and 56 PR runs of main), including the waits for Windows runners, over a mix of PRs that follows the test plan since #344146: on macOS and Windows, 72% of PRs run no node.js integration test, 20% some and 8% all; Agent Host E2E runs for about 25% on Windows and 42% on Linux; and about a quarter of PRs run every unit test. Cost is at GitHub list prices: Windows 8-core $0.042/min, macOS xlarge $0.102/min, and standard Linux runners are free for this repository.

Median p90 Jobs (avg) GitHub cost / PR
main (Windows on 1ES), weekday runner waits 21.6 27.6 27 $7.38 + 1ES
main (Windows on 1ES), weekend, no waits 18.0 22.4 27 $7.38 + 1ES
#343812: Windows on larger runners 21.1 24.9 28 $11.72
+ #343813: Linux unit test split 21.1 24.9 29 $11.72
+ #343814: Linux Agent Host E2E job 20.6 24.8 30 $11.71
+ #343815: Windows smoke and Remote splits 17.7 20.4 32 $12.07

With the whole stack, the job that finishes last is usually the WSL smoke shard on Windows (about 40% of PRs), then the Linux Remote job and the macOS unit tests. #343812 on its own is no faster than main at the median, so it should merge with the rest of the stack. Leaving out any one piece makes the run slower:

Without Median p90
Windows Agent Host E2E in 2 shards (#343812) +0.2 +4.6
Linux unit test split (#343813) +0.4 +0.0
Linux Agent Host E2E job (#343814) +0.6 +2.2
Windows smoke 3rd shard (#343815) +1.0 +4.3
Windows Remote split (#343815) +1.6 +0.9

Earlier versions of the stack also split the macOS jobs, the Linux smoke and Remote tests, the browser unit tests (#343816, closed), the Windows unit tests and the Windows integration tests, and halved some test suites with --testSplit. Since #344146, macOS and Windows run few integration tests in most PRs, and none of those splits changed the median by more than 0.2 min or p90 by more than 0.5 min, so they're gone: for a PR that runs everything, that's 22 fewer jobs and about $4 less than the first version.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The scoped changes consistently connect workflow matrices to shard selection, with no identified defects in platform setup, artifact naming, or required-check aggregation.

No open issues 🎉

What changed in this PR

This PR shortens VS Code’s PR CI pipeline by increasing smoke-test parallelism, building on the earlier integration-test splits while preserving existing required-check names.

Changes:

  • Expands Electron smoke tests from two to three shards per platform.
  • Separates remote integration tests from two parallel remote smoke shards.
  • Adjusts shard balancing for macOS Electron proxy suites and Linux Terminal timings, and updates documentation.

No actionable issues were identified. Runtime CI validation was not independently performed.

File Description
test/​smoke/​src/​shard.ts Limits proxy-time reservations to Electron and adjusts Linux Terminal estimates.
test/​smoke/​src/​main.ts Passes the smoke-test mode to shard selection.
.github/​workflows/​pr.yml Expands Electron shards and splits remote jobs across all platforms.
.github/​workflows/​pr-win32-test.yml Forwards shard arguments to Windows remote smoke tests.
.github/​workflows/​pr-linux-test.yml Forwards shard arguments to Linux remote smoke tests.
.github/​workflows/​pr-darwin-test.yml Forwards shard arguments to macOS remote smoke tests.
.github/​skills/​smoke-tests/​SKILL.md Documents the revised shard counts and remote job layout.

Review effort: Balanced

@lramos15
Logan Ramos (lramos15) force-pushed the lramos15/split-remote-and-smoke-tests branch 2 times, most recently from dcfe9d3 to 94f7801 Compare October 24, 2026 21:36
@lramos15
Logan Ramos (lramos15) force-pushed the lramos15/split-remote-and-smoke-tests branch from 94f7801 to 43b58ea Compare October 25, 2026 13:17
@lramos15
Logan Ramos (lramos15) force-pushed the lramos15/split-remote-and-smoke-tests branch from 43b58ea to 3b3b500 Compare October 25, 2026 14:43
@lramos15 Logan Ramos (lramos15) changed the title ci: run the PR smoke tests in more shards ci: run more Windows smoke test shards and split the Windows remote tests Oct 25, 2026
@lramos15
Logan Ramos (lramos15) force-pushed the lramos15/split-remote-and-smoke-tests branch from 3b3b500 to 0870109 Compare October 25, 2026 17:14
@lramos15
Logan Ramos (lramos15) force-pushed the lramos15/split-remote-and-smoke-tests branch 2 times, most recently from 6a0aa2a to 25e3883 Compare October 25, 2026 18:32
@lramos15
Logan Ramos (lramos15) force-pushed the lramos15/split-remote-and-smoke-tests branch from 25e3883 to 7443260 Compare October 25, 2026 23:05
…ests

On Windows, the first Electron smoke test shard also sets up WSL, which made it
one of the slowest jobs of the workflow (13.5 to 17.5 min, up to 23). The
Windows smoke tests now run in three shards (that shard: 13.8 to 15.3 min, up
to 17.4). The Windows Remote job, which ran the remote integration tests and
then the remote smoke tests (13.5 to 17.7 min), now runs them in separate jobs.

On Linux and macOS these jobs finish sooner than other jobs, so they stay as
they are.

Co-authored-by: Copilot <[email protected]>
@lramos15
Logan Ramos (lramos15) merged commit 51b7539 into main Oct 26, 2026
73 of 89 checks passed
@lramos15
Logan Ramos (lramos15) deleted the lramos15/split-remote-and-smoke-tests branch October 26, 2026 14:29
@vs-code-engineering vs-code-engineering Bot added this to the 1.145.0 milestone Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants