Repository navigation
fix Python tasks on distros with too-old Python (part 2) - #1252
Merged
Merged
Conversation
…s finds none PYTHON-6139 (mongodb#1242) tightened _probe_pythons to require Python >= 3.11. On distros whose MongoDB toolchain tops out at 3.10 (e.g. rhel-82-arm64) find_pythons now returns nothing, so both 'test-python' and 'test-python-integ' fail at interpreter discovery ("No Python interpreter found!") before the uv fallback in integ-test.sh can run. Fall back to a uv-provisioned Python 3.11 when interpreter discovery yields nothing: in test.sh after ensure_uv, and in integ-test.sh by moving the uv provisioning ahead of the guard (also collapsing the duplicated uv blocks). Restores mongodb#1246's intent on top of mongodb#1242.
kevinAlbs
marked this pull request as ready for review
October 16, 2026 19:43
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.
Summary
Follow-up to #1246 to fixes failures of
test-python/test-python-integonrhel-82-arm64.Details
Task failures are related to dropping Python 3.10.
rhel-82-arm64distro has Python 3.10, sofind_pythonstriggers a "No Python interpreter" error (example)#1246 was a previous attempt to fix and passed because it was branched was before #1242 merged. This PR now creates a new virtual environment, even if
find_pythonsreturns no system Python.