Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-354

build-and-test-node unable to find Visual Studio on Windows 2016 variant

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      The build-and-test-node task has started failing on the "Windows 2016" variant. That variant uses the windows-64-vs2017-small distro.

      Here is an example task failure with logs:

      [2021/10/28 03:14:58.037] ++ npm install --unsafe-perm --build-from-source
      [2021/10/28 03:14:59.382] npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
      [2021/10/28 03:15:18.937] > segfault-handler@1.3.0 install C:\data\mci\d94ddfb7b05dd6f213258432a009126a\libmongocrypt\bindings\node\node_modules\segfault-handler
      [2021/10/28 03:15:18.937] > node-gyp rebuild
      [2021/10/28 03:15:19.463] C:\data\mci\d94ddfb7b05dd6f213258432a009126a\libmongocrypt\bindings\node\node_modules\segfault-handler>if not defined npm_config_node_gyp (node "Z:\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\nvm\v14.0.0\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "Z:\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\nvm\v14.0.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
      [2021/10/28 03:15:26.286] gyp ERR! find VS
      [2021/10/28 03:15:26.286] gyp ERR! find VS msvs_version was set from command line or npm config
      [2021/10/28 03:15:26.286] gyp ERR! find VS - looking for Visual Studio version 2019
      [2021/10/28 03:15:26.286] gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
      [2021/10/28 03:15:26.286] gyp ERR! find VS checking VS2017 (15.9.28307.1259) found at:
      [2021/10/28 03:15:26.286] gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional"
      [2021/10/28 03:15:26.286] gyp ERR! find VS - found "Visual Studio C++ core features"
      [2021/10/28 03:15:26.286] gyp ERR! find VS - found VC++ toolset: v141
      [2021/10/28 03:15:26.286] gyp ERR! find VS - found Windows SDK: 10.0.17763.0
      [2021/10/28 03:15:26.286] gyp ERR! find VS - msvs_version does not match this version
      [2021/10/28 03:15:26.286] gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
      [2021/10/28 03:15:26.286] gyp ERR! find VS looking for Visual Studio 2015
      [2021/10/28 03:15:26.286] gyp ERR! find VS - not found
      [2021/10/28 03:15:26.286] gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
      [2021/10/28 03:15:26.286] gyp ERR! find VS
      [2021/10/28 03:15:26.286] gyp ERR! find VS valid versions for msvs_version:
      [2021/10/28 03:15:26.286] gyp ERR! find VS - "2017"
      [2021/10/28 03:15:26.286] gyp ERR! find VS - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional"
      [2021/10/28 03:15:26.286] gyp ERR! find VS
      [2021/10/28 03:15:26.286] gyp ERR! find VS **************************************************************
      [2021/10/28 03:15:26.286] gyp ERR! find VS You need to install the latest version of Visual Studio
      [2021/10/28 03:15:26.286] gyp ERR! find VS including the "Desktop development with C++" workload.
      [2021/10/28 03:15:26.286] gyp ERR! find VS For more information consult the documentation at:
      [2021/10/28 03:15:26.286] gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
      [2021/10/28 03:15:26.286] gyp ERR! find VS **************************************************************
      [2021/10/28 03:15:26.288] gyp ERR! find VS
      [2021/10/28 03:15:26.288] gyp ERR! configure error
      [2021/10/28 03:15:26.288] gyp ERR! stack Error: Could not find any Visual Studio installation to use
      [2021/10/28 03:15:26.288] gyp ERR! stack     at VisualStudioFinder.fail (Z:\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\nvm\v14.0.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
      [2021/10/28 03:15:26.288] gyp ERR! stack     at Z:\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\nvm\v14.0.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
      [2021/10/28 03:15:26.288] gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (Z:\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\nvm\v14.0.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
      [2021/10/28 03:15:26.288] gyp ERR! stack     at Z:\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\nvm\v14.0.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
      [2021/10/28 03:15:26.288] gyp ERR! stack     at Z:\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\nvm\v14.0.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
      [2021/10/28 03:15:26.288] gyp ERR! stack     at Z:\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\nvm\v14.0.0\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
      [2021/10/28 03:15:26.288] gyp ERR! stack     at Z:\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\nvm\v14.0.0\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
      [2021/10/28 03:15:26.288] gyp ERR! stack     at ChildProcess.exithandler (child_process.js:310:5)
      [2021/10/28 03:15:26.289] gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
      [2021/10/28 03:15:26.289] gyp ERR! stack     at maybeClose (internal/child_process.js:1051:16)
      [2021/10/28 03:15:26.289] gyp ERR! System Windows_NT 10.0.14393
      [2021/10/28 03:15:26.289] gyp ERR! command "C:\\data\\mci\\d94ddfb7b05dd6f213258432a009126a\\bindings\\node\\node-artifacts\\bin\\node.exe" "Z:\\data\\mci\\d94ddfb7b05dd6f213258432a009126a\\bindings\\node\\node-artifacts\\nvm\\v14.0.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
      [2021/10/28 03:15:26.289] gyp ERR! cwd C:\data\mci\d94ddfb7b05dd6f213258432a009126a\libmongocrypt\bindings\node\node_modules\segfault-handler
      [2021/10/28 03:15:26.671] gyp ERR! node -v v14.0.0
      [2021/10/28 03:15:26.671] gyp ERR! node-gyp -v v5.1.0
      [2021/10/28 03:15:26.671] gyp ERR! not ok
      [2021/10/28 03:15:26.681] npm ERR! code ELIFECYCLE
      [2021/10/28 03:15:26.681] npm ERR! errno 1
      [2021/10/28 03:15:26.681] npm ERR! segfault-handler@1.3.0 install: `node-gyp rebuild`
      [2021/10/28 03:15:26.681] npm ERR! Exit status 1
      [2021/10/28 03:15:26.681] npm ERR!
      [2021/10/28 03:15:26.681] npm ERR! Failed at the segfault-handler@1.3.0 install script.
      [2021/10/28 03:15:26.681] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      [2021/10/28 03:15:26.853] npm ERR! A complete log of this run can be found in:
      [2021/10/28 03:15:26.853] npm ERR!     C:\cygdrive\c\data\mci\d94ddfb7b05dd6f213258432a009126a\bindings\node\node-artifacts\npm\_logs\2021-10-28T03_15_26_683Z-debug.log
      [2021/10/28 03:15:26.905] Command failed: error waiting on process '88997303-eaee-4b1d-bcd6-83c1477beebc': exit status 1
      [2021/10/28 03:15:26.905] Task completed - FAILURE.
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: