-
Notifications
You must be signed in to change notification settings - Fork 653
Start testing with Node 24 and use Node 22 during publish. #5379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,8 +21,11 @@ jobs: | |
| - NodeVersion: 22.19.x | ||
| NodeVersionDisplayName: 22 | ||
| OS: ubuntu-latest | ||
| - NodeVersion: 22.19.x | ||
| NodeVersionDisplayName: 22 | ||
| - NodeVersion: 24.11.x | ||
| NodeVersionDisplayName: 24 | ||
| OS: ubuntu-latest | ||
| - NodeVersion: 24.11.x | ||
| NodeVersionDisplayName: 24 | ||
| OS: windows-latest | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Searching our codebase, I can find lots of other calls to |
||
| name: Node.js v${{ matrix.NodeVersionDisplayName }} (${{ matrix.OS }}) | ||
| runs-on: ${{ matrix.OS }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "changes": [ | ||
| { | ||
| "packageName": "@microsoft/rush", | ||
| "comment": "Add support for Node 24 and bump the `rush init` template to default to Node 24.", | ||
| "type": "none" | ||
| } | ||
| ], | ||
| "packageName": "@microsoft/rush" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| parameters: | ||
| - name: NodeMajorVersion | ||
| type: number | ||
| default: 20 | ||
| default: 22 | ||
|
|
||
| steps: | ||
| - task: NodeTool@0 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is failing with this message, which is printed to STDERR and therefore Rush interprets it as a failure:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invoking Rush with
--trace-deprecationshows this callstack:...which is referencing this code:
rushstack/libraries/rush-lib/src/utilities/Utilities.ts
Lines 821 to 843 in fb6faf2
Of course we ARE correctly escaping the shell parameters in this code, so the warning is spurious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This situation is discussed in nodejs/node#58763 (comment) and the recommended fix is easy (albeit poorly documented):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or as an alternative phrasing, we should still set
shell: falseand invoke the shell ourselves rather than telling Node to implicitly do so.