Skip to content

PYTHON-6005 use a toolchain python3 for drivers-tools on RHEL 8.2 - #1217

Merged
blink1073 merged 1 commit into
mongodb:masterfrom
blink1073:PYTHON-6005
Aug 17, 2026
Merged

PYTHON-6005 use a toolchain python3 for drivers-tools on RHEL 8.2#1217
blink1073 merged 1 commit into
mongodb:masterfrom
blink1073:PYTHON-6005

Conversation

@blink1073

Copy link
Copy Markdown
Member

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-integ on rhel-82-arm64 has failed every run since 2026-08-04, at step 3.6, before any test executes.

drivers-tools' ensure_uv takes the first python3 on PATH. RHEL 8.2's is 3.6, and uv publishes no distribution below 3.8, so installing it cannot succeed and run-orchestration.sh exits. The toolchain python sitting beside it is a 3.10, which works.

The real fix belongs in drivers-tools, where ensure_uv should be asking find_python3 rather than deciding for itself (drivers-evergreen-tools#829). This unblocks the build until that merges.

Changes

  • Point python3 at the newest toolchain build for the drivers-tools scripts, on hosts whose platform python3 is missing or older than 3.8. Hosts that already work are untouched, and only python3 is shimmed, so the rest of the toolchain stays out of the way.

Testing

An Evergreen patch of test-python-integ on rhel-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.

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.
@blink1073
blink1073 marked this pull request as ready for review August 17, 2026 20:10
@blink1073
blink1073 requested a review from a team as a code owner August 17, 2026 20:10
@blink1073
blink1073 requested a review from aclark4life August 17, 2026 20:10
@blink1073
blink1073 merged commit edadab0 into mongodb:master Aug 17, 2026
49 of 51 checks passed
@blink1073
blink1073 deleted the PYTHON-6005 branch August 17, 2026 21:02
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