-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
minimal node and npm upgrade #53426
minimal node and npm upgrade #53426
Conversation
Looks like there's some typescript build issues in this PR, not sure I understand these failures. |
68d3c79
to
cac31f1
Compare
0b5f7ff
to
3d16f40
Compare
I rebased on trunk after merging the typescript update (#52621), and put all of the package-lock.json changes into one commit. (Basically just discarded the current package-lock changes, and ran I then ran both One odd thing -- this PR is around +90k lines/-40k lines, but the old PR (#52363) was +55k/-55k lines. So it doesn't seem to be de-duplicating as much this time! Potentially a difference between npm 8 and 9, or some other changes since then? |
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.
The change looks good and tested well for me 👍
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.
YES!
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.
Looks good, though I see this n the ailing CI run:
/usr/bin/git reset --hard
HEAD is now at 1ac6aef Merge 3d16f40be7a232c0457569c5e20b8ec087dd42b6 into c94eca530c73cb06d4a73f78559ee27c0bea9ecb
[base] Checkout target branch
/usr/bin/git fetch -n origin trunk
From https://github.com/WordPress/gutenberg
* branch trunk -> FETCH_HEAD
* [new branch] trunk -> origin/trunk
successfully fetched base.ref
checking out and building base commit
/usr/bin/git reset --hard trunk
fatal: ambiguous argument 'trunk': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
/usr/bin/git reset --hard c94eca530c73cb06d4a73f78559ee27c0bea9ecb
HEAD is now at c94eca530c Fix Storybook build which broke after Typescript 5 update (#53445)
[base] Cleanup via npm run distclean
/opt/hostedtoolcache/node/16.20.1/x64/bin/npm run distclean
> gutenberg@16.4.0-rc.1 distclean
> rimraf node_modules packages/*/node_modules
@ntwb The compressed size check failure is ok because that job compares with trunk and in trunk, node version need to be 14. So it's going to fix itself after merge. |
[celebrate] Stephen Edgar reacted to your message:
…________________________________
From: Riad Benguella ***@***.***>
Sent: Wednesday, August 9, 2023 8:46:27 AM
To: WordPress/gutenberg ***@***.***>
Cc: Stephen Edgar ***@***.***>; Mention ***@***.***>
Subject: Re: [WordPress/gutenberg] minimal node and npm upgrade (PR #53426)
@ntwb<https://github.com/ntwb> The compressed size check failure is ok because that job compares with trunk and in trunk, node version need to be 14. So it's going to fix itself after merge.
—
Reply to this email directly, view it on GitHub<#53426 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHYFCUHGGVO7OUZGHCSQKLXUNE6HANCNFSM6AAAAAA3IROOTQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
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.
Finally 🎉 Thank you! |
The changes required for Core have also been committed. Thanks again, everyone! |
Ok this is the third PR to attempt to upgrade node and npm. Sorry :)
Previous attempts #52363 and #48950
The difference here is that this only upgrades to:
This matches the Wordpress-develop PR WordPress/wordpress-develop#4028
And this is due to some current limitations in the build servers of wp.org. See this post for more details https://make.wordpress.org/systems/2023/02/09/upgrade-nodejs-npm-on-the-build-server/
The systems team is aware that the EOL of node 16 is approaching but to avoid blocking things too much, we can still upgrade to 16 which will unblock the yjs dependency needed for phase 3 work for now and 18 once the build servers are ready.