-
Notifications
You must be signed in to change notification settings - Fork 924
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
Switch to NodeJS LTS 20 "Iron" #9171
base: main
Are you sure you want to change the base?
Conversation
NodeJS 18 "Hydrogen" will be EOL in April 2025. Closes issue opensearch-project#8463. Note: The latest LTS (22 "Jod") fails to build. Signed-off-by: hashworks <[email protected]>
`3.43.0` fails with v20: ``` error [email protected]: The engine "node" is incompatible with this module. Expected version "^8.6.0 || 10 || 12 || 14 || 16 || 17 || 18 || 19". Got "20.18.1" ``` Signed-off-by: hashworks <[email protected]>
❌ Invalid Changelog HeadingThe '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax. |
❌ Invalid Changelog HeadingThe '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax. |
❌ Changelog Entry Missing HyphenChangelog entries must begin with a hyphen (-). |
1 similar comment
❌ Changelog Entry Missing HyphenChangelog entries must begin with a hyphen (-). |
❌ Invalid Prefix For Manual Changeset CreationInvalid description prefix. Found "Bump NodeJS to If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description. |
❌ Invalid Prefix For Manual Changeset CreationInvalid description prefix. Found "chore". Only "skip" entry option is permitted for manual commit of changeset files. If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description. |
❌ Invalid Prefix For Manual Changeset CreationInvalid description prefix. Found "security". Only "skip" entry option is permitted for manual commit of changeset files. If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description. |
1 similar comment
❌ Invalid Prefix For Manual Changeset CreationInvalid description prefix. Found "security". Only "skip" entry option is permitted for manual commit of changeset files. If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description. |
Regarding |
Changelog would be:
But it seems I'm not allowed to add it here. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9171 +/- ##
==========================================
- Coverage 61.02% 61.00% -0.03%
==========================================
Files 3813 3813
Lines 91396 91396
Branches 14439 14439
==========================================
- Hits 55771 55752 -19
- Misses 32067 32082 +15
- Partials 3558 3562 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -27,8 +27,8 @@ In general, we recommend four tiers of tests: | |||
|
|||
# Requirements | |||
* Install the latest NodeJS, [NPM](https://www.npmjs.com/get-npm) and [Yarn](https://classic.yarnpkg.com/en/docs/install/#mac-stable) | |||
* `nvm install v18.19.0` | |||
* Install the specified NodeJS, [NPM](https://www.npmjs.com/get-npm) and [Yarn](https://classic.yarnpkg.com/en/docs/install/#mac-stable) |
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.
Why would we require a "specific" version of Node.js for testing?
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.
If you install the latest NodeJS version (v23) it won't build.
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.
nit: we may want to advise users to simply run nvm install
so that they always get the version defined in our .nvmrc
in the case these docs get outdated.
Not needed for this change though.
@hashworks thanks for taking the time to contribute! Taking a look at the build, test, and lint workflow it seems that the lock file may be outdated or generated with the prior node version. Can you quickly verify if thats the case? |
If you add these in the Changelog section in your PR section, the changelog workflow should auto generate and commit these to the changelog file. |
I'll try again, but doing so caused the Bot Comment Spam above. |
❌ Invalid Prefix For Manual Changeset CreationInvalid description prefix. Found "security". Only "skip" entry option is permitted for manual commit of changeset files. If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description. |
NodeJS 18 "Hydrogen" will be EOL in April 2025.
Closes #8463.
Note: The latest LTS (22 "Jod") fails to build:
Changelog
Tests
yarn test:jest
failuresDue to test failures I'm marking this a draft. Could a reviewer check the test workflow result?
Check List
yarn test:jest
yarn test:jest_integration