Skip to content

Disable node v8 maglev jit compiler on Windows.#4447

Open
TingluoHuang wants to merge 1 commit into
mainfrom
users/tihuang/nodemaglev
Open

Disable node v8 maglev jit compiler on Windows.#4447
TingluoHuang wants to merge 1 commit into
mainfrom
users/tihuang/nodemaglev

Conversation

@TingluoHuang
Copy link
Copy Markdown
Member

Try to workaround nodejs/node#62260 for actions/runner on Windows

Can be change back by setting machine level env ACTIONS_RUNNER_REENABLE_NODE_MAGLEV=1 or step level env ACTIONS_RUNNER_REENABLE_NODE_MAGLEV=1

@TingluoHuang TingluoHuang requested a review from a team as a code owner May 22, 2026 22:30
Copilot AI review requested due to automatic review settings May 22, 2026 22:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a targeted workaround in the JavaScript action handler to mitigate a Node.js 24 / V8 Maglev issue on Windows runners by conditionally disabling Maglev JIT at process startup, with an opt-out via an environment variable.

Changes:

  • Detect Node 24 runtime on Windows x64 and prepend --no-maglev to the Node invocation arguments.
  • Allow re-enabling Maglev via ACTIONS_RUNNER_REENABLE_NODE_MAGLEV set either at the machine/process level or step-level env.
Show a summary per file
File Description
src/Runner.Worker/Handlers/NodeScriptActionHandler.cs Conditionally adds --no-maglev to Node 24 invocation on Windows x64, with env-var override.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment on lines +134 to +138
if (nodeRuntimeVersion.StartsWith("node24", StringComparison.OrdinalIgnoreCase) &&
Constants.Runner.Platform == Constants.OSPlatform.Windows &&
Constants.Runner.PlatformArchitecture == Constants.Architecture.X64 &&
!StringUtil.ConvertToBoolean(System.Environment.GetEnvironmentVariable("ACTIONS_RUNNER_REENABLE_NODE_MAGLEV")) &&
!StringUtil.ConvertToBoolean(Environment.GetValueOrDefault("ACTIONS_RUNNER_REENABLE_NODE_MAGLEV")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants