Skip to content
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

Upgrade Node.js version on node-test-linter job #2504

Closed
aduh95 opened this issue Dec 21, 2020 · 2 comments · Fixed by #2514
Closed

Upgrade Node.js version on node-test-linter job #2504

aduh95 opened this issue Dec 21, 2020 · 2 comments · Fixed by #2514

Comments

@aduh95
Copy link
Contributor

aduh95 commented Dec 21, 2020

I got a PR with a failing linter job on CI because it seems the Node.js version on the CI doesn't understand the language features used in nodejs/node#36018.

I can see that in 3254439 (cc @phillipj), Node.js version was upgraded from v10.x to v14.x, yet the job is still failing. The console output in the Jenkins UI doesn't tell what is the node --version used for the job, but it seems it's not Node.js 14 (which support those features).

Would it be possible to add the Node.js version used by the linter job in the console output to help contributors understand linter failures? Can we upgrade the Node.js version to v14.x if it's not already in place?

@richardlau
Copy link
Member

richardlau commented Dec 21, 2020

Theoretically yes, but it would require a member of @nodejs/build-infra (of which I am one) to find some time to update the machines.

The linter job runs on a different set of hosts to the github-bot (which is what 3254439 addressed). For the hosts that run the linter jobs I believe the ansible setup is

repo: deb https://deb.nodesource.com/node_12.x xenial main
but I don't know (without testing) whether we'd need to remove the existing NodeSource repo before adding the one for the later version of Node.js in order to force the update.

Can this wait until the New Year? We have security releases coming in January (https://nodejs.org/en/blog/vulnerability/january-2021-security-releases/) -- with holidays coming up I'm not overly keen on making infrastructure changes until after those are done.

@aduh95
Copy link
Contributor Author

aduh95 commented Dec 21, 2020

This can certainly wait, thanks for the explanation!

aduh95 added a commit to aduh95/build that referenced this issue Jan 7, 2021
richardlau added a commit that referenced this issue Feb 15, 2021
* ansible: update Node.js from 12.x -> 14.x

Fixes: #2504

* ansible: update cache after adding NodeSource repo

After adding the NodeSource repository for Node.js, set `update_cache`
on the subsequent "Install node" `package` task to run the equivalent
of `apt-get update` to fetch the package metadata from the newly added
repository.

* ansible: remove previous NodeSource repo

Co-authored-by: Richard Lau <rlau@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants