Skip to content

ci: run Windows tests on windows-2022 COMPASS-11197 - #10

Merged
ivandevp merged 1 commit into
mainfrom
COMPASS-11197-fix-windows-ci
Nov 10, 2026
Merged

ivandevp merged 1 commit into
mainfrom
COMPASS-11197-fix-windows-ci

Conversation

@ivandevp

Copy link
Copy Markdown
Contributor

Unblocks the Windows jobs in #9 (COMPASS-11197), which fail on Node 20 and 22 for a reason unrelated to that PR.

windows-latest is now the windows-2025-vs2026 image (Visual Studio 2026). On Node 22 the bundled node-gyp@11.5.0 fails with:

gyp ERR! find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\18\Enterprise"
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use

win-export-certificate-and-key is an optional dependency built with node-gyp rebuild, so npm silently skips it and npm install succeeds. The tests then fail with Cannot find module 'win-export-certificate-and-key'. Node 24 passes because its newer npm bundles a node-gyp that recognises VS 2026.

This pins the Windows job to windows-2022 (Visual Studio 2022), with a comment. It can go back to windows-latest once the node-gyp bundled with Node 20/22 supports VS 2026.

@ivandevp
ivandevp merged commit 981517f into main Nov 10, 2026
19 checks passed
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.

2 participants