Repository navigation
CI: download the Node.js headers once, with retries, before building - #10
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
node-gyp downloaded the headers mid-build, once, with no retry. Under QEMU that download was cut off and failed the 2.0.0 release's armv7 prebuild (run 42939713843, attempt 1). scripts/fetch-node-headers.sh now downloads the headers for the version build:native targets on the runner itself (curl with retries), checks them against SHASUMS256.txt, and hands the file to node-gyp through npm_package_config_node_gyp_tarball. node-gyp extracts it into the same cache as before, so the build makes no network request and clang-tidy's header search is unchanged. Every job that builds uses it, including the Docker containers and the FreeBSD VMs. scripts/ci-install-node.sh (s390x, ppc64le) gets apt and curl retries and checks the Node.js tarball's checksum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cinderblock
added a commit
that referenced
this pull request
Nov 12, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The 2.0.0 release's first attempt (run 42939713843, attempt 1) failed in
Prebuild linux-armv7-glibc: node-gyp's download of the Node.js 22.12.0 headers was cut off under QEMU (gyp ERR! configure error,TypeError: terminated). node-gyp downloads them mid-build, once, with no retry, andrelease.ymlpublishes only if every CI job passes.What
scripts/fetch-node-headers.shdownloads the headers for the versionbuild:nativetargets (read frompackage.json) on the runner itself, withcurl --retry, checks them againstSHASUMS256.txt, and setsnpm_package_config_node_gyp_tarball. node-gyp then extracts that file into the same cache as before ($TMPDIR/prebuildify/node/<version>), so the build makes no network request, andscripts/clang-tidy.mjs's header search doesn't change.checks,test,freebsd, and all the prebuild jobs. Docker containers get the path remapped to/repo/...; the FreeBSD VMs get it throughenvs:.scripts/ci-install-node.sh(s390x/ppc64le containers) gets apt retries, a retrying download loop and a checksum check of the Node.js tarball.Verified
In WSL with node-gyp's
dist_urlpointed at a dead port: a build without the tarball fails, and builds with it succeed under bothnpm runandbun run. Lint and tests unchanged. Details inplans/ci-prebuild-network-resilience.md.🤖 Generated with Claude Code