Skip to content

Fix VS Code integration tests on macOS - #4499

Open
cklin wants to merge 1 commit into
mainfrom
cklin/vscode-integration-tests
Open

Fix VS Code integration tests on macOS#4499
cklin wants to merge 1 commit into
mainfrom
cklin/vscode-integration-tests

Conversation

@cklin

@cklin cklin commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

VS Code 1.131 removed the legacy Contents/MacOS/Electron compatibility executable on macOS, causing the existing test harness to launch a path that no longer exists. This PR upgrades @vscode/test-electron to 3.1.0 so the executable is resolved from the application bundle metadata.

It also overrides the version used transitively by jest-runner-vscode; without the override, npm installs a private 2.5.2 copy and the runner continues using the obsolete executable lookup.

The minimal-workspace activation timeout is increased because extension activation on macOS can now exceed the previous 30-second polling allowance. These failures were specific to local macOS runs; GitHub Actions runs this suite on Linux and Windows, where it was already passing.

Testing

  • npm run test:vscode-integration

VS Code 1.131 removed the legacy Contents/MacOS/Electron compatibility
executable on macOS. Upgrade @vscode/test-electron to 3.1.0 so the test harness
resolves the executable from the application bundle metadata instead of trying
to launch the removed path.

Override jest-runner-vscode's transitive @vscode/test-electron dependency as
well. Its declared 2.x range would otherwise cause npm to install a private
2.5.2 copy and leave the runner using the broken executable lookup despite the
direct dependency upgrade.

Increase the minimal-workspace activation polling and Jest timeouts because
extension activation under VS Code 1.131 can take longer on macOS than the
previous 30-second allowance. This preserves the activation assertion while
avoiding a deterministic timeout on slower macOS hosts.

These failures were observed only in local macOS runs. GitHub Actions runs the
VS Code integration suite on Linux and Windows, where the existing tests were
passing.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d7e3c611-18b2-4bf2-8f9a-09e7a8d1ef8e
Copilot AI review requested due to automatic review settings August 3, 2026 21:47

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.

Pull request overview

Updates the VS Code integration-test harness for macOS compatibility.

Changes:

  • Upgrades and overrides @vscode/test-electron to 3.1.0.
  • Regenerates the dependency lockfile.
  • Extends the minimal-workspace activation timeout.
Show a summary per file
File Description
extensions/ql-vscode/package.json Upgrades and overrides the test-electron dependency.
extensions/ql-vscode/package-lock.json Locks test-electron 3.1.0.
extensions/ql-vscode/test/vscode-tests/minimal-workspace/activation.test.ts Allows slower macOS activation.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Files not reviewed (1)
  • extensions/ql-vscode/package-lock.json: Generated file
  • Files reviewed: 2/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@cklin
cklin marked this pull request as ready for review August 3, 2026 22:04
@cklin
cklin requested a review from a team as a code owner August 3, 2026 22:04
@cklin
cklin requested a review from d10c August 3, 2026 22:06
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