-
Notifications
You must be signed in to change notification settings - Fork 1k
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
build(deps): bump node to v20 #8275
Conversation
@deivid-rodriguez What do you think about this change? We're still pinning the npm and yarn versions so it should be fine? |
7bb35fb
to
1bfe4d3
Compare
Hei @yeikel. I'm not sure, to be honest! Currently we run a fixed version of nodejs, so that means we are not able to support applications with certain nodejs constraints. For example, if someone is specifying I plan to do some work this week to properly surface "engine unsupported" errors to users, and that should give us better numbers of where the community is at, and the impact of this kind of PR. Of course, ideally we would be able to use the most appropriate nodejs version for each repo, or even better, package manager would provide a way to ask "please resolve for nodejs version X, regardless of the running node". But this is a different story. |
a349a7a
to
33a1c5f
Compare
As far as I was able to test, it does not seem that NPM enforces this by default Dependencies can also define what engines they support that can lead to the following warning at installation time :
By default this is not enabled but it can be can be enforced via
As far as I can tell, we are catching that already when the user enforces it : dependabot-core/npm_and_yarn/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb Lines 422 to 426 in db9cb4b
I am not sure what you're thinking here, but perhaps we could include more than one version in the image with |
Yes, @yeikel, what you say is correct, and I did not know we were already handling this! I do know we have some cases were this kind of error ends up being raised as an unknown error. Maybe the error changes across different package managers / or different versions of the same package manager, and we're not properly capturing all error messages. Also we should probably raise this as Regarding switching nodejs versions, yes, I'll look into our Node 18 numbers and how common this error is and decide if it's the right time for this upgrade 👍. It should probably be ok to upgrade because of what you explained (it's only a warning unless a setting is configured). |
0e0767d
to
b3183c2
Compare
@deivid-rodriguez What changed that you decided to approve it? I am just curious as your points were valid and interesting Thank you! |
Going a bit back and forth with this, but the intention is to deploy this soon-ish, because the potential issues seem quite minor, and not deploying this implies having similar issues for users that require the latest NodeJS version. I'm still working on going through some common related errors unknown errors and raising them as informative user errors, and I'll probably deploy this once that's done. |
5917e21
to
1d4817f
Compare
e24f51f
to
8016410
Compare
0f5ec85
to
9b08baf
Compare
Awesome, thank you for taking the time to explain. Do you recall what was missing in terms of error handling? If you have time at some point in the near future, I'd be nice to log them as tech deb issues 🙏. In any case, as you pointed out, this change should be ready to be merged as is. Thank you for taking the time to reply so quickly! 🙇♂️ @abdulapopoola Any chance you can help move this one forward? |
I didn't have time to materialize it into a proper issue, but I suspected from analyzing error messages logged in our internal tracker that sometimes we were not properly handling EBADENGINE errors. Because otherwise they should be showing up as user errors and not as unknown errors in our internal tracker. I think it's fine to merge this and wait until someone reports any issues. |
c38cf68
to
87d054e
Compare
@jurre This one is ready as well |
048b44c
to
3c3f03f
Compare
Possibly related to #8896? |
66ba98e
to
8912552
Compare
Any plan to merge this PR? 🙏 |
@jurre Can you please review/help to move this one forward? |
Approved |
Thanks @yeikel! I've let this sit in prod for an hour and not observing any issues so far but we'll keep an eye out |
Thank you! I think that the issues should be minimal because we're unfortunately still pinning to NPM 9.x |
Thank you all 🙇♀️🙇♀️🙇♀️ |
Release notes :
https://nodejs.org/en/blog/announcements/v19-release-announce
https://nodejs.org/en/blog/announcements/v20-release-announce