Skip to content
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

specs::npm::lifecycle_scripts::node_gyp is flaky #24749

Closed
dsherret opened this issue Jul 26, 2024 · 2 comments · Fixed by #26749
Closed

specs::npm::lifecycle_scripts::node_gyp is flaky #24749

dsherret opened this issue Jul 26, 2024 · 2 comments · Fixed by #26749
Assignees
Labels
flaky a test is not reliable or determinstic

Comments

@dsherret
Copy link
Member

It seems to rely on https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz. Any way we could change that to use the test server instead?

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.11.9 found at "/opt/hostedtoolcache/Python/3.11.9/x64/bin/python3"

gyp http GET https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
gyp ERR! UNCAUGHT EXCEPTION 
gyp ERR! stack TypeError: error reading a body from connection
gyp ERR! stack at IncomingMessageForClient._read (node:http:781:10)
gyp ERR! stack at IncomingMessageForClient.Readable.read (ext:deno_node/_stream.mjs:2996:16)
gyp ERR! stack at maybeReadMore_ (ext:deno_node/_stream.mjs:3092:16)
gyp ERR! stack at processTicksAndRejections (ext:deno_node/_next_tick.ts:33:15)
gyp ERR! stack at runNextTicks (ext:deno_node/_next_tick.ts:71:3)
gyp ERR! stack at eventLoopTick (ext:core/01_core.js:175:21)
gyp ERR! System Linux 6.5.0-1024-azure
gyp ERR! command "node-gyp" "/tmp/deno-cli-test5eJ8A8/node_modules/.deno/[email protected]/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /tmp/deno-cli-test5eJ8A8/node_modules/.deno/@[email protected]/node_modules/@denotest/node-addon
gyp ERR! node -v v20.11.1
gyp ERR! node-gyp -v v10.1.0
gyp ERR! Node-gyp failed to build your package.
gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
error: script 'install' in '@denotest/[email protected]' failed with exit code 7
@dsherret dsherret added the flaky a test is not reliable or determinstic label Jul 26, 2024
@vighnesh153
Copy link

vighnesh153 commented Aug 11, 2024

Not sure if it is related, but I get similar error message when I try to run deployctl.

➜  deno-api-proxy git:(main) ✗ deno task deploy:dev
Task deploy:dev deployctl deploy --project=deno-api-proxy-dev
ℹ Using config file '/path/to/deno.json'
✔ Deploying to project my-project-name.
✔ Entrypoint: /path/to/main.ts
ℹ Uploading all files from the current dir (/path/to/currentDirectory)
✔ Found 2 assets.
✔ Uploaded 2 new assets.
⠼ Deploying... (100.0%)
⠦ Deploying... (100.0%)
error: TypeError: error reading a body from connection

My deploy:dev task just has the following:

deployctl deploy --project=dev-project

Re-running the command worked through.

@dsherret
Copy link
Member Author

nathanwhit added a commit that referenced this issue Nov 7, 2024
…test (#26749)

Fixes #24749

Runs a server that just returns the header tarball and checksum, and
sets the `NODEJS_ORG_MIRROR` env var so that `node-gyp` uses it instead
of `nodejs.org`
littledivy pushed a commit that referenced this issue Nov 10, 2024
…test (#26749)

Fixes #24749

Runs a server that just returns the header tarball and checksum, and
sets the `NODEJS_ORG_MIRROR` env var so that `node-gyp` uses it instead
of `nodejs.org`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky a test is not reliable or determinstic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants