Skip to content

test(NODE-5317): use new evergreen scripts #3669

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 14 commits into from
May 31, 2023
Merged

test(NODE-5317): use new evergreen scripts #3669

merged 14 commits into from
May 31, 2023

Conversation

durran
Copy link
Member

@durran durran commented May 12, 2023

Description

Updates the driver to use the new AWS auth Evergreen scripts.

What is changing?

Updates the driver to use mongodb-labs/drivers-evergreen-tools#306

NOTE The failure scenario is removed from the AWS tests as the servers that are set up in the scripts have access control disabled, which means connecting without auth will succeed, rendering that test as a failure. The auth prose tests require no failure case, so this is now removed.

Is there new documentation needed for these changes?

None

What is the motivation for this change?

DRIVERS-2328

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

@durran durran force-pushed the DRIVERS-2328 branch 5 times, most recently from a72240e to 4c280f3 Compare May 12, 2023 19:12
@durran durran changed the title test: use new evergreen scripts test(DRIVERS-2328): use new evergreen scripts May 22, 2023
@durran durran added the Blocked Blocked on other work label May 22, 2023
${MONGODB_BINARIES}/mongo --nodb setup.js aws_e2e_ecs.js
export MONGODB_BINARIES="${MONGODB_BINARIES}";
export PROJECT_DIRECTORY=$PROJECT_DIRECTORY;
python aws_tester.py ecs
Copy link
Member Author

Choose a reason for hiding this comment

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

This will fail our first AWS test that checks that no auth credentials in the URI will fail. It actually connects successfully because the mongod is started without enforcing access control.

@durran durran removed the Blocked Blocked on other work label May 26, 2023
@durran durran changed the title test(DRIVERS-2328): use new evergreen scripts test(NODE-5317): use new evergreen scripts May 30, 2023
@durran durran marked this pull request as ready for review May 30, 2023 12:56
Comment on lines 824 to 825
# fix issue with `TestData` in SERVER-46340
sed -i '1s+^+TestData = {};\n+' $AUTH_AWS_DIR/lib/ecs_hosted_test.js
# sed -i '1s+^+TestData = {};\n+' $AUTH_AWS_DIR/lib/ecs_hosted_test.js
Copy link
Contributor

Choose a reason for hiding this comment

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

Tests are passing with this code commented out - should this be removed entirely?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've removed.

@baileympearson baileympearson added the Team Review Needs review from team label May 31, 2023
@baileympearson
Copy link
Contributor

evergreen retry

Copy link
Contributor

@baileympearson baileympearson left a comment

Choose a reason for hiding this comment

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

failing tests are unrelated to the changes in this PR

@baileympearson baileympearson merged commit e5e3c93 into main May 31, 2023
@baileympearson baileympearson deleted the DRIVERS-2328 branch May 31, 2023 18:08
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.

2 participants