-
Notifications
You must be signed in to change notification settings - Fork 2k
Node LTS 12 #37031
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
Node LTS 12 #37031
Conversation
2bc1975 to
eb8b53b
Compare
|
This needs an update: Do we allow the last LTS for a while before requiring everyone to be on v12, or just make the switch? |
|
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
|
FSE fails because it's package-lock uses the old node because it depends on a pinned calypso-build version 🤔 We could run that build on the older node version, or release another version of calypso-build after #35898 lands. |
|
👋 @loremattei It looks like wp-desktop may have problems with Node 12. electron-spellchecker isn't building. |
Not working.
Seems we'll need to do this. |
This comment has been minimized.
This comment has been minimized.
|
Hey @sirreal! Thanks for the ping! This requires an update to the Electron version used in WPDesktop. @nsakaimbo has already started to work on this and will be able to continue in a couple of weeks, but it's a non trivial task that may require some time because we currently have a huge tech debt (we are on Electron 1.7). So, we'll probably need a B-plan in order to be able to continue to build the app in the meantime. cc/ @belcherj |
7b3c445 to
894637d
Compare
894637d to
0d586ad
Compare
That might just be to relax |
That might be worth a try, although not sure if the current spellchecker will play nice with that. TL;DR - if we change the version of the global node environment that WP-Desktop is compiled in (from 10.x to 12.x), it will try to fetch prebuilt binaries for the spellchecker that correspond to that version of Node. The problem is, we found out, the prebuilt spellchecker repo hasn't been updated since 2017, so compilation will fail because the prebuilt spellchecker doesn't exist for Node 12.x (yikes!). This will take some effort to unwind (and we've already made some progress). However perhaps I'm misunderstanding your suggestion, and there's some other way we can work around it in the mean time? Worst case, can we hold back the SHA of the version of Calypso we're using in WP-Desktop until the Electron upgrade is complete and these issues are resolved? cc: @loremattei @belcherj |
I think maybe? I'm just saying that we could relax engines so that we can continue to allow Node@10. Not sure how that might play out with the |
|
Automattic/wp-desktop#688 may let wp-desktop stay behind while wp-calypso moves ahead. |
|
Maybe also cc @Automattic/i18n to double-check translation scripts. I recall we had some issues in the past on major version bumps. |
@nsakaimbo are there any other viable alternatives that are maintained? |
0d586ad to
0d30da0
Compare
Node ^12.13.0 npm ^6.9.0
|
All tests are green here, time for testing and review 🚀 |
|
@gwwar There really aren't any. It may be a situation that we have to fork and update the spellchecker. |
|
@nsakaimbo @gwwar This is good news though: atom/node-spellchecker#128 That's the package underneath that is failing. |
|
@belcherj @gwwar As far as I can see we're free to land this since Automattic/wp-desktop#688 was merged. Is that accurate or are there remaining blockers? All tests are green but I won't land this without some explicit approval. |
|
|
|
@sirreal Have you verified that this branch can be built with wp-desktop, at least locally? Even though Automattic/wp-desktop#688 has landed, would be great to confirm that things are continuing to build as expected.
From my research, it seems no one else has even attempted to maintain an up-to-date prebuild fork of the spellchecker. We'll have to switch to using the spellchecker source in order to move forward with the Electron upgrade. Using prebuilds has proven highly impractical to maintain, so it's no surprise the project being relied on was effectively dropped - a little more context in this gist here. |
As part of Automattic/wp-desktop#688, I changed the Calypso submodule to use this branch (Automattic/wp-desktop@fd626ff) and the tests passed: |
blowery
left a comment
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.
LGTM!
|
FYI @Automattic/jetpack-crew would be good to update also on Jetpack because so many folks work on both and would need to be switching between versions each time. |
Second attempt upgrading to Node LTS 12 Erbium. Original attempt in #37031 - Update root shrinkwrap - Update app package locks
Node v12 is now LTS. Use it.
Updates
node-sassas well so there are available binaries.Blockers