Skip to content

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Nov 8, 2024

Description

What is changing?

Use scripts from drivers-evergreen-tools instead of using the system python package manager.

Tested against mongodb-labs/drivers-evergreen-tools#545 to ensure there are no regressions in requiring Python 3.8+ syntax.

https://spruce.mongodb.com/version/672e33e060d13d0007e3cdb4/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

Is there new documentation needed for these changes?

No

What is the motivation for this change?

Some places in Node's CI we rely on the system python/pip, which can lead to compatibility issues when we call drivers-evergreen-tools scripts and broken CI.

Release Highlight

Fill in title or leave empty for no highlight

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

@blink1073 blink1073 changed the title NODE-6502 Use a python venv wherever we use Python in driver CI chore(NODE-6502) Use a python venv wherever we use Python in driver CI Nov 8, 2024
@baileympearson baileympearson self-assigned this Nov 8, 2024
@baileympearson baileympearson added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Nov 8, 2024
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.

It might be working just because the system's Python version is compatible with the drivers-evergreen-tools version, but I do see other places where I think we need to make this change

. "$DRIVERS_TOOLS"/.evergreen/csfle/set-temp-creds.sh
, for example, should be run using a python venv from drivers-evergreen-tools that has boto3 installed, right?

There are other places hard-coded into the config file that also source this script

@blink1073
Copy link
Member Author

@blink1073
Copy link
Member Author

blink1073 commented Nov 8, 2024

@baileympearson baileympearson merged commit db4eff5 into mongodb:main Nov 11, 2024
27 of 29 checks passed
blink1073 added a commit to blink1073/node-mongodb-native that referenced this pull request Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Primary Review In Review with primary reviewer, not yet ready for team's eyes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants