Skip to content

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Sep 17, 2025

  • Ensured lower bounds for all encryption deps. I chose certifi>=2023.7.22 due to GHSA-xqr8-7jwr-rhp7.
  • I also had to add min deps for gevent and simplejson in order to avoid build errors. For gevent I chose the version that added Python 3.9 support from 2020. For simplejson I chose a version from 2019.
  • Added a new --test-min-deps (TEST_MIN_DEPS) option that enables --resolution=lowest-direct. I brought in the env var override code from drivers-orchestration to minimize adding more ad-hoc environment var handling.
  • Added instructions for running tests with min dependencies
  • Adds 6 new tasks for encryption on Linux. I could not test on Windows yet until we have the rest of the min dependencies due to a uv error.

Passing build: https://spruce.mongodb.com/version/68d52c900f310c00074ad4fd/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

@blink1073 blink1073 requested a review from NoahStapp September 17, 2025 23:55
@blink1073 blink1073 requested a review from a team as a code owner September 17, 2025 23:55
@blink1073 blink1073 marked this pull request as draft September 18, 2025 10:25
@blink1073 blink1073 changed the title PYTHON-3152 Test Against Minimum Supported Library Versions PYTHON-5564 Add minimum version test for Encryption Sep 19, 2025
@blink1073 blink1073 changed the title PYTHON-5564 Add minimum version test for Encryption PYTHON-5565 Add minimum version test for Encryption Sep 19, 2025
@blink1073 blink1073 marked this pull request as ready for review September 19, 2025 21:15
# Assemble the tasks.
seen = set()
for topology, auth, ssl, sync, python in task_inputs:
for topology, auth, ssl, sync, python in sorted(task_combos):
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the use of sorting here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Otherwise the order is nondeterministic and can change every time you run the script

Copy link
Member Author

Choose a reason for hiding this comment

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

(Resulting in a pre-commit failure)

@blink1073 blink1073 requested a review from NoahStapp September 25, 2025 14:27
@blink1073 blink1073 merged commit fad2ccb into mongodb:master Sep 25, 2025
77 of 79 checks passed
@blink1073 blink1073 deleted the PYTHON-3152 branch September 25, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants