[code-infra] Use Node v24 instead of v22#4423
Conversation
commit: |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
| "engines": { | ||
| "pnpm": "10.32.1", | ||
| "node": ">=22.18.0" | ||
| "node": ">=24.13.0" |
There was a problem hiding this comment.
Some CI steps are not happy about the latest minor. 🙈
https://app.circleci.com/pipelines/github/mui/base-ui/23241/workflows/9862bcaa-11a7-46f5-9212-ac676d94b9ef/jobs/260066
|
Probably makes more sense to compare with https://app.circleci.com/insights/github/mui/base-ui/workflows/pipeline/jobs?branch=master&reporting-window=last-24-hours. e.g. regression tests is 2m1s there We could also add a few more commits here and check with https://app.circleci.com/insights/github/mui/base-ui/workflows/pipeline/jobs?branch=pull%2F4423&reporting-window=last-24-hours, might be a bit more statistically relevant |
Thanks for the suggestions. Looks like the differences are not huge, but noticeable. Compared the |
Let's discuss if we are going forward with the upgrade, or parking it until v22 LTS ends
Some of the test runtime performance improvement looks promising
Depends on mui/mui-public#1239.
I noticed the v24 becoming the new "default", especially given that it's been in the
activestate for quite a while.GH actions are bumping node to v24 as default (#4399, #4397).
A related controversial declaration we have: https://mui-org.notion.site/Node-js-support-strategy-25acbfe7b66080df9d8bf6634f8c9367.
Warning
I excluded comparison of
Generated files verificationjob since it does not runpnpm dedupeon master.Note
This compares data between the last 24hr runs on master and the 4 successful runs on this branch.
P95 vs P95 —
pipelineworkflow (excluding Generated files verification)Master P95 vs PR avg —
react-18workflowCombined summary
pipeline(10 jobs)react-18(3 jobs)All 3 react-18 jobs are faster on Node v24, with Typechecking (React 18) showing the largest improvement at -21.7%. Combined across both workflows, Node v24 delivers a consistent ~9-12% improvement.
Tip
The
Typecheckingmight see the biggest benefits of the V8 upgrades with increased performance.