PYTHON-6005 use a toolchain python3 for drivers-tools on RHEL 8.2 - #1217
Merged
Conversation
drivers-tools' ensure_uv takes the first python3 on PATH, and RHEL 8.2's is 3.6, which uv publishes no distribution for. run-orchestration.sh has failed there since 2026-08-04, before any test runs. Put the newest toolchain python3 ahead of it, but only where the platform one is too old, so no other variant changes. The .env file is the durable place for it: handle-paths.sh sources that, so it reaches the later steps that invoke drivers-tools directly.
aclark4life
approved these changes
Aug 17, 2026
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://jira.mongodb.org/browse/PYTHON-6005
Summary
Put the newest MongoDB toolchain python3 ahead of the platform one on hosts where the platform one is too old for uv, so the drivers-tools scripts this task invokes can run.
Motivation
test-python-integonrhel-82-arm64has failed every run since 2026-08-04, at step 3.6, before any test executes.drivers-tools'
ensure_uvtakes the firstpython3on PATH. RHEL 8.2's is 3.6, and uv publishes no distribution below 3.8, so installing it cannot succeed andrun-orchestration.shexits. The toolchain python sitting beside it is a 3.10, which works.The real fix belongs in drivers-tools, where
ensure_uvshould be askingfind_python3rather than deciding for itself (drivers-evergreen-tools#829). This unblocks the build until that merges.Changes
python3at the newest toolchain build for the drivers-tools scripts, on hosts whose platformpython3is missing or older than 3.8. Hosts that already work are untouched, and onlypython3is shimmed, so the rest of the toolchain stays out of the way.Testing
An Evergreen patch of
test-python-integonrhel-82-arm64, against unmodified drivers-tools master so the change stands on its own: 1125 tests, 0 failures. The same task fails in about 90 seconds with 0 tests without it.