-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node-gyp keeps failing unreliably on github windows ci. #2683
Comments
actions/setup-node@v1 != v3.3.0 actions/checkout should also be upgraded. |
That is main branch which does not have windows tests, that's what I am trying to upgrade and add windows to the mix (already have macos). On the runners you can see branch is |
So I tried isolating dependencies to see how the failures happen in https://github.com/nodech/ci-test. Dependencies used for testing (all three are using node-gyp): Used workflow: https://github.com/nodech/ci-test/blob/main/.github/workflows/nodejs.yml
|
I have the same issue since longer times. In my case it is always "noble" which is the reason for the issues... as soon as I use windows-latest runner on GithUb actiopns it fails mainly with Node.js 16! I use node setup action 3.3.0 and also upgrade node-gyp manually globally. |
Please create a pull request that fails to https://github.com/nodejs/node-gyp/tree/main/.github/workflows so that everyone can see these failures. |
Looks like this is still an issue. I tried using v9.4.0 and I'm still getting this |
@LabhanshAgrawal looks like it didn't use 9.4.0. From the logs:
|
Weird, thanks for pointing out, yarn.lock only has the 9.4.0 version. I will check how 9.3.1 is getting used. |
It was picking up v9.3.1 from global packages, setting it up to use the local one solved this. Anyone else facing similar issue on github actions, feel free to check vercel/hyper#7270 |
@LabhanshAgrawal++ Thank you for posting this. |
Node Version: 12.x - 18.x
Platform: Windows (System Windows_NT 10.0.20348) Github Actions
Compiler: VS2022 (17.2.32602.215)
Module: https://github.com/nodech/hsd/actions/runs/2515981257
This issue happens in the Github CI with
windows-latest
os, everything else is fine.Setup is the matrix of windows with multiple nodejs version from v12 to v18. Because different version of
npm
are shipped with different versions of node, first step CI does is updatesnpm
so project has latestnode-gyp
that's shipped withnpm
. Unfortunately, all of them fail, BUT even worse is they fail unreliably.. Sometimes test will pass, but most of the time it fails. So I am not sure if it's issue with node-gyp or not. But all of the failures happen when looking forcommon.gypi
file.Looking at the code, it seems
common.gypi
file is not being found atC:\\Users\\runneradmin\\AppData\\Local\\node-gyp\\Cache\\16.15.1\\include\\node\\common.gypi
and then it fallbacks to what is shown in the outputC:\\Users\\runneradmin\\AppData\\Local\\node-gyp\\Cache\\16.15.1\\common.gypi
.Here are the example of it failing multiple times:
This happens inconsistently and same test will sometimes pass, mostly fail.
Interesting thing to note is that, the dependency itself is building fine: https://github.com/nodech/bcrypto/runs/6939480240, it only fails with
hsd
which has multiplenative
dependencies other thanbcrypto
. I tried to remove all other deps and only leave bcrypto. Switch from matrix to separate tests and etc. Always end up in the similar situation.Example output for the failure from the Github CI:
The text was updated successfully, but these errors were encountered: