Skip to content

ci: run Windows PR checks on vscode-large-runners-windows-8-core - #343812

Merged
Logan Ramos (lramos15) merged 5 commits into
mainfrom
lramos15/windows-large-runners
Oct 26, 2026
Merged

Logan Ramos (lramos15) merged 5 commits into
mainfrom
lramos15/windows-large-runners

Conversation

@lramos15

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

Copy link
Copy Markdown
Member

Moves the Windows PR checks from the 1es-vscode-oss-windows-2022-x64 1ES pool to the vscode-large-runners-windows-8-core larger runners. That covers pr-win32-test.yml, Copilot - Test (Windows), and the two Windows cache jobs in pr-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

  1. Runner switch. Removes the 1ES JobId labels (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 the job_name input of pr-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 example Agent-Host-E2E (shard 1/2) / Windows.

  2. Cache detector. detect-missing-caches hashes the Electron cache path into the cache version. The larger runner's user is runneradmin, not cloudtest. A new test checks the versions against the cache paths on each runner.

  3. 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_modules took 2.2–5.7 min instead of 1.3 on 1ES. A benchmark on the larger runner:

    1ES (D: temporary disk) Larger runner (C: OS disk) Larger runner, Dev Drive
    7z t (decompress only) 9.5 s 5.8–6.0 s
    7z x (219k files, 6.3 GB) 59.5 s 100–162 s 43–45 s

    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 and actions/checkout sees 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 inside C:. 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.

  4. 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 TEMP on 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 --runList selects (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.

  5. 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 ps on 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 .devcontainer folder there; the WSL fixture already removes the container.

Things to know

  • Capacity: today's PR checks peak at about 120 concurrent Windows jobs on 1ES. With the whole stack, a PR uses about 11 Windows jobs and 114 Windows runner-minutes on average (13 jobs and 158 minutes when it runs everything). Scaling the earlier estimate for the 5-PR stack (224) by runner-minutes puts the busiest minute at about 190 if every PR ran everything, against the 200-runner limit, and lower in practice.
  • Image: Windows Server 2022 → 2025. The node_modules cache keys don't include the OS version, so the caches still match.
  • Cost: runner minutes move from the 1ES Azure subscription to GitHub larger-runner billing: about $4.80 per PR on average with the whole stack, and $6.60 when a PR runs everything, at list price.

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 old cloudtest path, and the new runner test checks --shard with 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/2 is rejected.
  • npm run eslint -- test/integration/agentHost/runner.ts build/lib/testAgentHostE2EStartup.test.ts test/smoke/src/areas/agentsWindow/agentsWindow.test.ts and cd test/smoke && npx tsc --noEmit -p .: clean.
  • actionlint on the changed workflows: nothing new; it only flags the custom runner labels, as on main.

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.

🟡 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 JobId labels.
  • 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

Comment thread .github/workflows/pr-node-modules.yml Resolved
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]>
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