Skip to content

test: macOS-insiders CI needs Node 22 + test-electron 3.0.0 (2.5.2 insufficient)#153

Draft
laileni-aws wants to merge 1 commit into
aws:mainfrom
laileni-aws:fix/bump-vscode-test-electron
Draft

test: macOS-insiders CI needs Node 22 + test-electron 3.0.0 (2.5.2 insufficient)#153
laileni-aws wants to merge 1 commit into
aws:mainfrom
laileni-aws:fix/bump-vscode-test-electron

Conversation

@laileni-aws

@laileni-aws laileni-aws commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Status: 2.5.2 does NOT fix the macOS-insiders job (CI-confirmed)

Bumping @vscode/test-electron 2.3.8 → 2.5.2 was validated in CI and the test macOS (18.x, insiders) job still fails with the identical error:

Test error: Error: spawn .../Visual Studio Code - Insiders.app/Contents/MacOS/Electron ENOENT

So the fix is not present in any Node-18-compatible @vscode/test-electron (latest 2.x = 2.5.2, from 2024, predates the VS Code Insiders build-layout change).

Root cause & the real fix

  • The current VS Code Insiders macOS build changed its layout; @vscode/test-electron 2.x resolves an executable path that no longer exists → ENOENT.
  • The fix is in @vscode/test-electron@3.0.0, but that requires node >= 22 while this repo's CI runs Node 18, and 3.0.0 also restructures the internal out/runTest import the repo uses.
  • Therefore the proper fix is a coordinated change: bump the CI Node matrix 18 → 22, bump @vscode/test-electron to 3.0.0, and adjust the TestOptions/out/runTest import. That's a repo-wide CI decision, larger than a dependency bump.

This failure is pre-existing and repo-wide (fails on main and other PRs) and is unrelated to the dependency-security PRs.

Recommendation: hold/close this PR in favor of the Node 22 + test-electron 3.0.0 upgrade (maintainer decision).

The 'test macOS (18.x, insiders)' job fails repo-wide (incl. on main)
with 'spawn .../Contents/MacOS/Electron ENOENT': the pinned
@vscode/test-electron 2.3.8 (2023) can't locate the executable in the
current VS Code Insiders macOS build. Bump to the latest Node-18-safe
line (2.5.2).

Note: the newest @vscode/test-electron (3.0.0) would be the most complete
fix but requires Node >=22 (CI runs Node 18) and restructures the
internal out/runTest import, so it is out of scope here. If 2.5.2 does
not fully resolve the insiders job, the follow-up is a coordinated
Node 22 + test-electron 3.0.0 upgrade.
@laileni-aws laileni-aws changed the title test: bump @vscode/test-electron to fix macOS insiders CI test: macOS-insiders CI needs Node 22 + test-electron 3.0.0 (2.5.2 insufficient) Jul 22, 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.

1 participant