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

[DT-1055] Pin version of NodeJS to latest LTS #2734

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

fboulnois
Copy link
Contributor

Addresses

https://broadworkbench.atlassian.net/browse/DT-1055

Summary

This will prevent developers from accidentally installing incompatible version of NodeJS for the UI.


Have you read Terra's Contributing Guide lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@fboulnois fboulnois requested a review from a team as a code owner November 21, 2024 15:20
@fboulnois fboulnois requested review from s-rubenstein and cinyecai and removed request for a team November 21, 2024 15:20
Copy link
Contributor

@rushtong rushtong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Copy link
Contributor

@rushtong rushtong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Copy link
Member

@pshapiro4broad pshapiro4broad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks OK, although it's a shame we need to have the version both in package.json and in all the GitHub workflows.

Also, can you also update DEVNOTES.md to reflect this change?

]
],
"engines": {
"node": ">=22.11.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be wrong to use an exact match here too?

Copy link
Contributor Author

@fboulnois fboulnois Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking we could do that, but any future developer would get stuck with newer versions of NodeJS (for example patch or minor). Perhaps that's a reasonable trade-off to make. Another thing to think about is that we probably do want to test newer versions, so it might be too much friction to lock it down completely.

@rushtong
Copy link
Contributor

This looks OK, although it's a shame we need to have the version both in package.json and in all the GitHub workflows.

It's also in Dockerfile ... I'd love to see a better way to specify this globally.

@fboulnois
Copy link
Contributor Author

This looks OK, although it's a shame we need to have the version both in package.json and in all the GitHub workflows.

It's also in Dockerfile ... I'd love to see a better way to specify this globally.

I am hoping Dependabot is smart enough to update it everywhere. If not, we can use a slightly different approach and extract the version like we do when installing Homebrew.

@fboulnois fboulnois merged commit 5b283e2 into develop Nov 22, 2024
9 checks passed
@fboulnois fboulnois deleted the fb-dt-1055-pin-nodejs-duos branch November 22, 2024 14:07
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 this pull request may close these issues.

3 participants