Skip to content

tools: fix shared-lib build on V8 cache miss#64635

Closed
bitpshr wants to merge 1 commit into
nodejs:mainfrom
bitpshr:tools/build-shared-merge-artifacts
Closed

tools: fix shared-lib build on V8 cache miss#64635
bitpshr wants to merge 1 commit into
nodejs:mainfrom
bitpshr:tools/build-shared-merge-artifacts

Conversation

@bitpshr

@bitpshr bitpshr commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Fixes the Test Shared libraries workflow failing on a V8 cache miss for fork PRs (#64554).

The first download-artifact step in build-shared.yml doesn't name an artifact, so on a cache miss it pulls in the libv8 NAR alongside the tarball. With multiple artifacts, each lands in its own directory, so tar xzf tarballs/*.tar.gz ends up matching a directory and fails. Setting merge-multiple: true flattens them back into tarballs, matching the single-artifact layout the extract step expects. The NAR is still downloaded separately by name for the V8 step.

Fixes: #64554

The first `download-artifact` step in build-shared.yml does not name an
artifact, so it downloads every artifact from the run. On a V8 cache
miss the libv8 NAR is also present, and downloading multiple artifacts
places each in its own directory, nesting the tarball one level deeper.
`tar xzf tarballs/*.tar.gz` then matches a directory and fails.

Set `merge-multiple: true` so the artifacts are flattened into
`tarballs`, matching the single-artifact layout the extract step
expects. The NAR is still downloaded separately by name for the V8 step.

Fixes: nodejs#64554
Signed-off-by: Paul Bouchon <mail@bitpshr.net>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Jul 20, 2026
@legendecas

Copy link
Copy Markdown
Member

Seems duplicated with #64633.

@bitpshr

bitpshr commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

You're right, this is the same fix as #64633, and pinning it with pattern: '*.tar.gz' there is a bit cleaner since it skips the NAR download entirely. Closing this in favor of yours.

@bitpshr bitpshr closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Issues and PRs related to the general management of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test-shared fails on V8 cache misses without a Cachix token

3 participants