Repository navigation
ci: run Windows PR checks on vscode-large-runners-windows-8-core - #343812
Merged
Merged
Conversation
This was referenced Oct 23, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Electron cache detector still uses the old runner’s profile path, causing incorrect cache-warming decisions after migration.
1 open issue
What changed in this PR
Moves Windows PR checks from the 1ES pool to GitHub larger runners to reduce queue delays, forming the first step of the CI speedup stack.
Changes:
- Switches four Windows runner assignments across testing and cache-warming workflows.
- Removes the migrated jobs’ 1ES-specific
JobIdlabels. - Updates the cache-detection test’s runner mapping.
| File | Description |
|---|---|
build/lib/test/detectMissingCaches.test.ts |
Maps the new runner label to Windows x64. |
.github/workflows/pr.yml |
Migrates Copilot Windows tests to larger runners. |
.github/workflows/pr-win32-test.yml |
Migrates reusable Windows tests and removes the obsolete JobId comment. |
.github/workflows/pr-node-modules.yml |
Migrates both Windows cache-warming jobs. |
Review effort: Balanced
Logan Ramos (lramos15)
force-pushed
the
lramos15/windows-large-runners
branch
from
October 23, 2026 16:30
d6eb066 to
326ca08
Compare
Logan Ramos (lramos15)
force-pushed
the
lramos15/windows-large-runners
branch
from
October 23, 2026 19:28
326ca08 to
e5682c2
Compare
Logan Ramos (lramos15)
force-pushed
the
lramos15/windows-large-runners
branch
3 times, most recently
from
October 25, 2026 13:17
f2ac53d to
f0093cb
Compare
Logan Ramos (lramos15)
force-pushed
the
lramos15/windows-large-runners
branch
from
October 25, 2026 14:43
f0093cb to
615ce3c
Compare
Logan Ramos (lramos15)
force-pushed
the
lramos15/windows-large-runners
branch
3 times, most recently
from
October 25, 2026 23:05
7fe5e46 to
0d8bd3e
Compare
Every Windows 1ES job waited for a runner in about 1 of 4 PR runs (p90 7.4 min), because the 1ES pool scales out slowly at peak times. The 8-core larger runners have the same CPU and memory, start in seconds, and have a 200 runner limit, above the 131 peak that the PR checks would need. Without the JobId label of the 1ES runners, the Windows test workflow no longer needs its job_name input. Co-authored-by: Copilot <[email protected]>
The Windows cache warming job now runs on vscode-large-runners-windows-8-core, whose user profile is runneradmin, so setup-electron caches Electron under C:\Users\runneradmin\AppData\Local\electron\Cache. The cache path is part of the cache version, and the detector still used the 1ES cloudtest path: it would skip warming while only the old cache existed, and warm on every push once that expired. A new test checks the detector's Electron cache versions against the cache paths on the runners of the jobs. Co-authored-by: Copilot <[email protected]>
The larger runners have no temporary disk, so the workspace is on the OS disk, where extracting the node_modules cache (219k files) took 100-160s instead of the 60s on the 1ES runners' temporary disk; restoring the cache went from 1.3 to 2.2-4.8 min per job. In a benchmark on the larger runner, decompressing the archive took only 6s, and extracting it into a Dev Drive in a VHDX on the same OS disk took 43-45s. The Windows test jobs now mount a Dev Drive at the parent of the workspace before checkout. The workspace keeps its path, and falls back to the OS disk with a warning if the Dev Drive cannot be set up. The smoke test shard with the WSL suite keeps the OS disk, because WSL cannot open folders on a volume that is mounted in a folder of drive C:. Co-authored-by: Copilot <[email protected]>
On one 8-core larger runner, the six Agent Host E2E suites took 26-33 min, with the workspace on the OS disk or on a Dev Drive, instead of 10-13 min on the 1ES runners; every suite slowed down by a similar factor. In two shards of three suites each, they took about 12 min per shard. The Agent Host E2E runner gets a --shard <index>/<total> option, which runs every <total>th suite and is also passed on to the Linux storage passes, and the Windows Agent Host E2E job runs in two shards. Co-authored-by: Copilot <[email protected]>
…tainer The WSL Dev Container suite runs its container on the Docker daemon in WSL, whose fixture removes it, and it doesn't check for a Docker daemon on the Windows host. Its cleanup still ran `docker ps` on the host, which failed the suite when the host had no running Docker engine, as happened on the vscode-large-runners-windows-8-core runners. It now only removes the .devcontainer folder. Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15)
marked this pull request as ready for review
October 26, 2026 11:36
Logan Ramos (lramos15)
requested review from
Alexandru Dima (alexdima) and
Ladislau Szomoru (lszomoru)
as code owners
October 26, 2026 11:36
Logan Ramos (lramos15)
requested review from
TylerLeonhardt,
Michael Lively (Yoyokrazy),
Raymond Zhao (rzhao271) and
Sandeep Somavarapu (sandy081)
as code owners
October 26, 2026 11:36
Logan Ramos (lramos15)
force-pushed
the
lramos15/windows-large-runners
branch
from
October 26, 2026 11:38
0d8bd3e to
618d44b
Compare
Ladislau Szomoru (lszomoru)
approved these changes
Oct 26, 2026
This was referenced Oct 28, 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.

Moves the Windows PR checks from the
1es-vscode-oss-windows-2022-x641ES pool to thevscode-large-runners-windows-8-corelarger runners. That coverspr-win32-test.yml,Copilot - Test (Windows), and the two Windows cache jobs inpr-node-modules.yml. Three more commits keep the larger runners at least as fast as 1ES, and one fixes a smoke test that they exposed.Why
Over 4,889 Windows 1ES jobs (Oct 21–23), the median wait for a runner was 12 s, but 23% of jobs waited more than 2 min and the p90 was 7.4 min. The waits come from the pool scaling out at peak times (15–16 and 23 UTC), not from a hard cap. The larger runners have the same 8 vCPU and 32 GB and start in seconds.
Commits
Runner switch. Removes the 1ES
JobIdlabels (ci: switch PR workflows back to 1ES self-hosted runners with JobId #313128 added them only to work around 1ES runner cancellations), and with them thejob_nameinput ofpr-win32-test.yml, which ci: fix the names of skipped PR checks #344160 kept only for those labels. The checks keep ci: fix the names of skipped PR checks #344160's names, for exampleAgent-Host-E2E (shard 1/2) / Windows.Cache detector.
detect-missing-cacheshashes the Electron cache path into the cache version. The larger runner's user isrunneradmin, notcloudtest. A new test checks the versions against the cache paths on each runner.Dev Drive workspace. The larger runners (Windows Server 2025) have no temporary disk, so the workspace sits on the network-attached OS disk. There, restoring
node_modulestook 2.2–5.7 min instead of 1.3 on 1ES. A benchmark on the larger runner:D:temporary disk)C:OS disk)7z t(decompress only)7z x(219k files, 6.3 GB)CPU and Defender aren't the cause: decompression is faster on the larger runner, and real-time scanning is off on both. Each Windows test job now mounts a Dev Drive (ReFS VHDX, about 5 s to create) at
C:\a\vscode, the parent of the workspace, so the workspace keeps its path andactions/checkoutsees an ordinary empty folder. If setup fails, the job falls back to the OS disk with a warning. The WSL smoke shard keeps the OS disk, because WSL can't open folders on a volume mounted insideC:. In CI, restore then took 1.0–1.6 min, and the first run beat the 1ES medians for every job except Electron smoke shard 2/2, which took 13.1 min against 10.6. For example, Electron-Unit took 18.5 min against 21.5, Electron 15.2 against 17.0, and Remote 11.9 against 14.5.Windows Agent Host E2E in 2 shards. On one larger runner, the six suites took 26–33 min (30 min step timeout) instead of 10–13 min on 1ES. That happened with the workspace on the OS disk, on a Dev Drive, and with
TEMPon the Dev Drive, and every suite slowed by a similar factor. In two shards of three suites, each took about 12 min. The Agent Host E2E runner gets--shard <index>/<total>, which takes the suites that--runListselects (ci: run only the integration tests a change can affect on macOS and Windows #344146) in turn, so a short list can leave the second shard with nothing to run; it then exits before preparing the test runtime.WSL Dev Container smoke cleanup. The WSL Dev Container smoke suite runs its container on the Docker daemon in WSL and, on purpose, doesn't check for one on the Windows host. Its cleanup still ran
docker pson the host, which failed the suite in 2 of about 29 WSL shard runs on the larger runners, when the host's Docker engine wasn't running. It now only removes the.devcontainerfolder there; the WSL fixture already removes the container.Things to know
node_modulescache keys don't include the OS version, so the caches still match.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. The new Electron cache test fails with the oldcloudtestpath, and the new runner test checks--shardwith and without--runList, including an empty shard that prepares nothing.node test/integration/agentHost/runner.ts --shard 2/2 --runList <file listing only Codex>: "shard 2/2 has none of the 1 selected suites", exit 0.--shard 3/2is rejected.npm run eslint -- test/integration/agentHost/runner.ts build/lib/testAgentHostE2EStartup.test.ts test/smoke/src/areas/agentsWindow/agentsWindow.test.tsandcd test/smoke && npx tsc --noEmit -p .: clean.actionlinton the changed workflows: nothing new; it only flags the custom runner labels, as onmain.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.main(Windows on 1ES), weekday runner waitsmain(Windows on 1ES), weekend, no waitsWith 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
mainat the median, so it should merge with the rest of the stack. Leaving out any one piece makes the run slower: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.