Repository navigation
Require Node 22.0.0 - #107
Merged
Merged
Conversation
RyanSaxe
marked this pull request as ready for review
October 6, 2026 22:28
Node before 20.12.0 can spin at 100% CPU forever while a process exits (nodejs/node#47748, fixed by nodejs/node#51290 in 20.12.0). It hung the CI test job on Node 20.1.0, and a pair command, which talks to the hub with fetch and exits on its own, can hit it too. Node 20 also reached its end of life on April 30, 2026, so pair now requires the oldest Node line that Node still supports. engines.node is >=22.0.0, so requireNode() and pair check name 22.0.0. CI tests 22.0.0, 22 and 24 in place of 20.1.0, 20 and 24, and the README, the docs and guide/setup.md say Node 22.0.0 or newer. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Oct 6, 2026
Merged
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.
pair now requires Node 22.0.0 or newer.
Why
Node before 20.12.0 can spin at 100% CPU forever while a process exits (nodejs/node#47748, fixed by nodejs/node#51290 in 20.12.0). Freeing the process's environment runs a pending FinalizationRegistry cleanup that may no longer call into JavaScript, and the cleanup posts itself again. It hung CI's
test (20.1.0)job: three of the six CI hangs before today ran on 20.1.0, and today that job hung again on #103 and #104. In anode:20.1.0container, 3 of 37 full-suite runs hung under load, and gdb showed each stuck process inFreeEnvironment → NodePlatform::DrainTasks → FinalizationRegistryCleanupTask::RunInternal. Apaircommand talks to the hub withfetchand exits on its own, so it can hit the same bug.Node 20 also reached its end of life on April 30, 2026, so this raises the floor to the oldest Node line that Node still supports, rather than to 20.12.0.
Changes
package.jsonandpackage-lock.json:engines.nodeis>=22.0.0.requireNode()andpair checkread it from there, so no code changed..github/workflows/ci.yml: the test matrix runs Node 22.0.0, 22 and 24, and its comment names the checks both rulesets require.README.md,docs/getting-started/install.md,docs/contributing/README.mdandguide/setup.md: "Node 22.0.0 or newer".Evidence
node --teston Node 22.0.0: 261 of 261 pass.pair checkon 22.0.0 printsnode 22.0.0, and pair needs 22.0.0 or newer. On 20.12.0,pairrefuses withpair: Node 22.0.0 or newer is required.Before it merges
Both rulesets (
develop: no force-push or deletion, and green checks, id 24093538, andmain: releases only through green pull requests, id 24093537) require checks namedtest (20.1.0)andtest (20). After this change no job has those names, so GitHub blocks this pull request, and every one after it, until both rulesets requiretest (22.0.0)andtest (22)in their place.#100 also changes
ci.yml. It passes--test-timeouton every job except Node 20.1.0, and the two merge without a conflict. After both merge, every job gets the flag, and #100's comment about 20.1.0 needs updating.🤖 Generated with Claude Code