Skip to content

tools: mock some Python utils in v8.nix to reuse builds#63454

Open
aduh95 wants to merge 1 commit into
nodejs:mainfrom
aduh95:v8.nix-refine-inputs
Open

tools: mock some Python utils in v8.nix to reuse builds#63454
aduh95 wants to merge 1 commit into
nodejs:mainfrom
aduh95:v8.nix-refine-inputs

Conversation

@aduh95
Copy link
Copy Markdown
Contributor

@aduh95 aduh95 commented May 20, 2026

TL;DR: this change allows us to avoid unnecessary rebuilds on CI.

Because our tooling is not at all tailored for building V8 separately, v8.nix lists as inputs things that are not related to building V8, causing the cached builds to be invalidated on some unrelated changes. Ideally we would have only things that affect the V8 build as inputs of the v8.nix, that way we would spend GHA time on rebuilding V8 on test-shared only when we actually need it – but there's a tradeoff to be made between avoid unnecessary rebuilds and keeping the maintenance burden of v8.nix low enough.

I noticed when working on preparing 26.2.0 that the CI had to rebuild V8 between the tip of the staging branch and the release proposal, just because the node version got bumped, even though the node version has nothing to do with V8 or how it gets built. That PR removes node_version.h from the inputs, as well as all the Python helper files that are helping setting stuff unrelated to V8.

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95 aduh95 added dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. labels May 20, 2026
@nodejs-github-bot nodejs-github-bot added the tools Issues and PRs related to the tools directory. label May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants