Skip to content

ci(NODE-4881): adjust tests to pass on Node18 #3485

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 10 commits into from
Dec 19, 2022

Conversation

baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Dec 12, 2022

Description

What is changing?

  • socks5 tests now run on node18
  • adl tests now run on node18
  • csfle tests have been fixed on node18
  • the pinned version of libmongocrypt has been bumped in our CI
  • failing tasks on node18 now run in CI

Most tests are made to pass by either setting the family to 4 directly on the mongo client, or by setting the default dns resolution order.

Is there new documentation needed for these changes?

What is the motivation for this change?

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

@baileympearson baileympearson force-pushed the NODE-4881-fix-driver-ci-node18 branch from dc2c1b7 to 80381bc Compare December 14, 2022 14:31
@baileympearson baileympearson force-pushed the NODE-4881-fix-driver-ci-node18 branch from be6e10d to f2446ba Compare December 15, 2022 21:09
@baileympearson baileympearson changed the title WIP remove installNode18DNSHooks from csfle tests ci(NODE-4881): adjust tests to pass on Node18 Dec 16, 2022
@baileympearson baileympearson marked this pull request as ready for review December 16, 2022 16:31
@@ -30,7 +31,7 @@ describe('Atlas Data Lake - prose', function () {
* If a driver constructs and issues killCursors commands in other ways (e.g. public API), this test MUST be adapted to test all such code paths.
*/
it('1. Test that the driver properly constructs and issues a killCursors command to Atlas Data Lake.', async function () {
client = new MongoClient('mongodb://mhuser:pencil@localhost');
client = new MongoClient('mongodb://mhuser:pencil@localhost', { family: 4 });
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want to leave comments (maybe even with a TODO here) to switch this over to happy eyeballs once the driver supports a Node.js version that has it?

@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Dec 16, 2022
nbbeeken
nbbeeken previously approved these changes Dec 16, 2022
@nbbeeken nbbeeken added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Dec 16, 2022
@nbbeeken nbbeeken merged commit e57a772 into mongodb:main Dec 19, 2022
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.

4 participants