Skip to content

ci(NODE-5269): Add Node 20 to driver ci #3664

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

Merged
merged 19 commits into from
May 17, 2023

Conversation

W-A-James
Copy link
Contributor

@W-A-James W-A-James commented May 9, 2023

Description

What is changing?

  • Update .evergreen/ci_matrix_constants.js to include Node 20 and regenerate .evergreen/config.yml
  • Update Github "Check Dependencies" action to use Node 20
  • Refactor CI scripts and config to make use of NODE_LTS_VERSION rather than NODE_LTS_NAME to fix issue when trying to fetch Node 20
Is there new documentation needed for these changes?

No

What is the motivation for this change?

Ensure that the driver and its extensions are compatible with the latest officially released Node.js version.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@W-A-James W-A-James changed the title ci(NODE-5240): start adding Node20 to ci ci(NODE-5240): Add Node 20 to driver ci May 9, 2023
@W-A-James W-A-James changed the title ci(NODE-5240): Add Node 20 to driver ci ci(NODE-5269): Add Node 20 to driver ci May 10, 2023
@@ -28,11 +28,12 @@ curl "${CURL_FLAGS[@]}" "https://nodejs.org/dist/index.tab" --output node_index.

while IFS=$'\t' read -r -a row; do
node_index_version="${row[0]}"
node_index_major_version=$(echo $node_index_version | sed -E 's/^v([0-9]+).*$/\1/')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This sed invocation extracts the major version

@W-A-James W-A-James marked this pull request as ready for review May 10, 2023 20:14
@@ -24,8 +24,11 @@ set -o xtrace
npm install kerberos@">=2.0.0-beta.0"
npm run check:kerberos

npm install kerberos@"^1.1.7"
npm run check:kerberos
if [ "$NODE_LTS_VERSION" != "latest" ] || [ $NODE_LTS_VERSION -lt 20 ]; then
Copy link
Member

Choose a reason for hiding this comment

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

This will attempt to install 1.1.7 because "20" != "latest" - the kerberos tests then fail.

Copy link
Member

Choose a reason for hiding this comment

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

@durran durran added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label May 12, 2023
@durran durran self-assigned this May 12, 2023
@durran durran force-pushed the NODE-5269/add_node_20_to_node_driver_main_ci branch from 36c6131 to 46cf6cc Compare May 16, 2023 19:22
@durran durran self-requested a review May 17, 2023 13:31
@durran durran added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels May 17, 2023
@nbbeeken nbbeeken self-assigned this May 17, 2023
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

LGTM, logging the flakes and I'll merge

And we have: https://jira.mongodb.org/browse/NODE-5293 for the windows node14 issues

@nbbeeken nbbeeken merged commit abbe61a into main May 17, 2023
@nbbeeken nbbeeken deleted the NODE-5269/add_node_20_to_node_driver_main_ci branch May 17, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants