Skip to content

build: accept target-generated snapshots for Windows cross builds - #67912

Open
marcpems wants to merge 2 commits into
nodejs:mainfrom
marcpems:win-arm-cross-bootstrap-runner
Open

marcpems wants to merge 2 commits into
nodejs:mainfrom
marcpems:win-arm-cross-bootstrap-runner

Conversation

@marcpems

@marcpems marcpems commented Nov 30, 2026 •

Copy link
Copy Markdown

This change reduces empty startup by 35 ms (5%) on Windows Arm as measured across a moderate set of public project based workloads. This improvement is most useful for short-lived tools and processes that launch Node repeatedly, such as a CI or AI assistant.

Node v26 for Windows Arm does not have the embedded bootstrap snapshot; x64 already has one. Without it, each new Arm process repeats initialization work. This change lets the existing x64 release builder compile the Arm snapshot generator, run it on a native Arm machine, then verify and link the result back into node.exe. x64 behavior is unchanged.

Test results are here: https://github.com/marcpems/node-windows-runtime-investigation/blob/main/pr-cohort/README.md

Assisted-by: GHCP

Assisted-by: GHCP
Signed-off-by: Marcus Perryman <marcpems@msn.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/build
  • @nodejs/gyp
  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to Node.js builds or CI infrastructure. doc Issues and PRs related to Node.js documentation. needs-ci PRs that need a full CI run. labels Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Welcome to Node.js, and thank you for your first contribution!

Before review, please take a moment to read:

Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal.

@marcpems

Copy link
Copy Markdown
Author

@StefanStojanovic please can you take a look?

Clarified instructions for cross-compiling and handling the Node.js bootstrap snapshot.

Signed-off-by: Marcus Perryman <marcpems@msn.com>
@marcpems
marcpems force-pushed the win-arm-cross-bootstrap-runner branch from b3123c6 to 2106fa3 Compare November 30, 2026 21:33
@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.57%. Comparing base (4b26c72) to head (2106fa3).
⚠️ Report is 32 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67912      +/-   ##
==========================================
- Coverage   90.58%   90.57%   -0.02%     
==========================================
  Files         802      802              
  Lines      286649   286655       +6     
  Branches    55370    55405      +35     
==========================================
- Hits       259673   259643      -30     
- Misses      17088    17121      +33     
- Partials     9888     9891       +3     

see 37 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to Node.js builds or CI infrastructure. doc Issues and PRs related to Node.js documentation. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants