-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[core] Update Node.js version to v18 on CircleCI, CodeSandbox, and Netlify #37173
[core] Update Node.js version to v18 on CircleCI, CodeSandbox, and Netlify #37173
Conversation
Netlify deploy previewhttps://deploy-preview-37173--material-ui.netlify.app/ Bundle size report |
Node 16 is in maintenance and will reach EOL in less than four months. I propose to upgrade to the active LTS release, which is 18. |
@michaldudak I tried in 0bdb62a but the CI errored, so I reverted. I don't know why.
Edit: But it's failing even after I revert it back to v16. Something is off. |
@michaldudak The above issue is solved. It was because of #35619 which was reverted later by Jun in #37296. Don't know why rollup v3 caused an issue. Also, I tried Node 18 again but the build is failing. Hence, I kept it to v16. |
I'm looking into this. IMO it should work fine. I have Node 18 installed locally, and the build succeeds. |
04a6980
to
a0abe75
Compare
The build was failing with exit code 137, which indicated an out-of-memory error. I upgraded the machine used to run CircleCI tasks to medium+ and it passed. As a side effect, the tasks run faster (for example, test_bundle_size_monitor finished in 6m 25s vs ~9m in the other PRs). @oliviertassinari, do you approve such a change? |
Why Node 18 is using more memory than Node 16? Ideally, shouldn't it be more efficient? |
@michaldudak Looking at the CircleCI resources tab, it seems that we over-allocate resources for most steps:
We spend $10,800 / year on CircleCI at the moment. This change could cost $5k/year. Did you consider the opposite direction? mui/mui-x#8796 and mui/mui-x#6850 by @LukasTy |
The |
@michaldudak I would personally favor Also per #29005, we might be able to better use the extra 2GB of RAM available to complete the test faster. |
Playwright minor dependency upgrade is also blocked (#37349):
Apart from keeping only We need to decide further regarding this PR. Edit: But looks like only their CI tooling is upgraded - microsoft/playwright#20800 (not |
e5df90d
to
73c0730
Compare
@mui/core could you please take a look at this PR? |
Fair enough, looks good 👍 |
Node.js v14 support ended on 30th April 2023 (last week). We can at-least update node on the CI tools to unblock upgrading dependencies such as #36343, #36347, #37349 which depend on node
>=16
.This is same as #33642.
Related to #32546.
Did not update "engines" setting in package.json to avoid breaking change. Should be done in the next major release.
Next.js update on MUI X repo is also blocked - mui/mui-x#8809