Repository navigation
Description
Summary
On darwin-arm64 GitHub-hosted runners (macos-latest, Apple Silicon), @vscode/[email protected] downloads the VS Code Insiders archive successfully, then fails to launch it:
✔ Downloaded VS Code (07b4ff1883f94da91f6d698744fc7c3638b59720) into
.vscode-test/vscode-darwin-arm64-insiders
Test error: Error: spawn .../Visual Studio Code - Insiders.app/Contents/MacOS/Electron ENOENT
The same test suite passes on ubuntu-latest + Insiders, windows-latest + Insiders, and every macOS Stable / pinned-version cell on the same commit. The failure is scoped strictly to darwin-arm64 + Insiders.
Root cause
Fully diagnosed in #349 (thanks Aasim Khan (@aasimkhan30)). Summary of that thread as it applies here:
- VS Code renamed the macOS executable from
Electronto the product name (Code/Code - Insiders) in microsoft/vscode#291948, merged 2026-02-03, first shipping in 1.110. - The
Electroncompatibility symlink was removed in microsoft/vscode#326502, merged 2026-07-20. @vscode/test-electronstill hardcodes the oldElectronpath, so any post-symlink-removal build produces theENOENTabove.
darwin-arm64 + Insiders surfaced this first because Insiders leads Stable through both the rename and the symlink removal. The same failure will reach darwin-arm64 + Stable as soon as Stable crosses the 2026-07-20 cutoff.
This issue is the CI-visible reproducer that led me to #349 before the root cause was clear. Keeping it open as the downstream-facing counterpart to #349 so consumers hitting the ENOENT symptom can find the workaround.
Environment
@vscode/test-electron |
3.0.0 |
@vscode/test-cli |
0.0.15 |
| Node.js | 20.20.2 (also reproduces on 24) |
| Runner | macos-latest on GitHub Actions (Apple Silicon / darwin-arm64) |
| VS Code channel | insiders |
| Downloaded commit | 07b4ff1883f94da91f6d698744fc7c3638b59720 (~340 MB archive) |
Steps to reproduce
- Set up a VS Code extension with
@vscode/test-cliand a.vscode-test.mjsthat supportsinsiders. - Run
npm teston a GitHub-hostedmacos-latestrunner (arm64). - Observe: download succeeds, launcher throws
ENOENT.
Minimal .vscode-test.mjs:
import { defineConfig } from '@vscode/test-cli';
export default defineConfig({
files: 'out/test/**/*.test.js',
version: process.env.VSCODE_VERSION || 'stable', // set VSCODE_VERSION=insiders
});Minimal workflow step:
- uses: coactions/setup-xvfb@v1
with:
run: npm test
env:
VSCODE_VERSION: 'insiders'Reproduction repository
- Repo: https://github.com/miguelcolmenares/css-js-minifier
- Failing run (before workaround): actions/runs/29896038382/job/88846313602
- Same commit, other matrix cells pass: Ubuntu-Insiders, Windows-Insiders, macOS-Stable, Ubuntu-Stable, Windows-Stable, macOS-min (1.125.0).
Workaround currently deployed
Drop macos-latest from the Insiders matrix. macOS arm64 coverage is retained via Stable and minimum-version workflows, both running on macos-latest. Reference implementation: miguelcolmenares/css-js-minifier#175.
Intel-fallback runners (macos-13, macos-15-intel) are not a viable long-term workaround:
macos-13was retired 2025-12-04 (actions/runner-images#13046); jobs targeting it queue indefinitely.macos-15-intelis a transitional label, retiring Fall 2027 per the 2025-09-19 GitHub Changelog.- Rosetta 2 is available only through macOS 27 and reduced to legacy games starting with macOS 28 (Apple HT102527).
@vscode/test-cli'sIBaseTestConfigurationdoes not expose aplatformfield, so consumers can't force an x64 download on an arm64 host without dropping to@vscode/test-electron's programmatic API.
Ask
Ship the fix proposed in #349: resolve the macOS executable dynamically via CFBundleExecutable / product.nameShort, with Electron as a fallback for pre-1.110 builds. Downstream consumers can then restore macos-latest (arm64) to their Insiders CI matrices without any Intel/Rosetta bridge.
Happy to test a pre-release against the reproducer above.
Related
- @vscode/test-electron uses obsolete macOS executable path #349 —
@vscode/test-electronuses obsolete macOS executable path (upstream code defect, same root cause). - Hangs on Mac mini M2 headless #290 — Hangs on Mac mini M2 headless (same family — Apple Silicon macOS — different symptom).
- runTest uses incorrect platform x64 on arm64 #141 / fix: incorrect platform used on arm64 Linux #145 / Support downloading VS Code arm64 builds on Linux arm64 #133 — Prior arm64 platform fixes in this repo; establishes precedent that
darwin-arm64+ Insiders is the missing counterpart.
Activity
ci: Pin macOS Insiders runner to macos-15-intel (x64) to work around …
ci: Drop macOS from VS Code Insiders matrix (upstream darwin-arm64 bug)
ci: Drop macOS from VS Code Insiders matrix (upstream darwin-arm64 bug)
fix(e2e): resolve renamed macOS VSCode executable (vscode-test#349)
fix(e2e): resolve renamed macOS VSCode executable (vscode-test#349)
[-]macOS Apple Silicon (darwin-arm64) + Insiders: `spawn .../Visual Studio Code - Insiders.app/Contents/MacOS/Electron ENOENT` after successful download[/-][+]macOS arm64 + Insiders: `spawn .../Contents/MacOS/Electron ENOENT` (CI reproducer for #349)[/+]fix(darwin): resolve executable via CFBundleExecutable with Electron …
fix(darwin): resolve executable via CFBundleExecutable with Electron …
fix(darwin): resolve executable via CFBundleExecutable with Electron …
chore: Bump @vscode/test-electron to 3.1.0 and restore macOS Insiders CI
chore: Bump @vscode/test-electron to 3.1.0 and restore macOS Insiders…
Bump @vscode/test-electron to fix macOS integration test spawn failure
Fix layout previews stretching to fill the entire device canvas (#4)
Bump @vscode/test-electron to 3.1.0 so tests launch VS Code >=1.110 o…
Bump @vscode/test-electron to 3.1.0 and move test VS Code pin to 1.13…
fix(deps): bump @vscode/test-electron to 3.1.0 (#3070)
fix(ci): bump @vscode/test-electron to ^3.1.0 to fix macOS test run
fix: clear pre-existing lint debt and unbreak the pre-commit workflow (…
Command visualizer (#3)
ci: bump @vscode/test-electron to ^3.1.0
Update `@vscode/test-electron` to unbreak CI (#28)
fix: upgrade @vscode/test-electron to 3.1.0 for VS Code 1.110+
feat(multi-repo): 多根工作区仓库切换(Graph 选择器 + 全局活跃仓库级联,issue #107) (#108)
fix: bump @vscode/test-electron to 3.1.0 to fix macOS ENOENT in CI (#126
Bump @vscode/test-electron to 3.1.0, so macOS CI can launch VS Code
Upgrade @vscode/test-electron to fix npm test on macOS
Upgrade @vscode/test-electron to fix npm test on macOS