Repository navigation
PYTHON-6084 Streamline Evergreen Python interpreter selection for uv - #3074
Merged
Merged
Conversation
blink1073
force-pushed
the
PYTHON-6084
branch
from
September 25, 2026 11:26
fc92415 to
57bb79b
Compare
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Cross-platform interpreter resolution depends on real Evergreen host layouts and uv behavior that requires final human validation.
Review effort: Balanced
Findings: None
What changed in this PR
Standardizes Evergreen Python selection around uv-native configuration without changing driver code.
Changes:
- Adds cross-platform toolchain discovery and managed-Python fallback.
- Migrates generated tasks from
TOOLCHAIN_VERSIONtoUV_PYTHON. - Propagates, scrubs, logs, and documents the new uv environment variables.
| File | Description |
|---|---|
pr-body.md |
Documents implementation and validation. |
CONTRIBUTING.md |
Updates Python-selection guidance. |
.evergreen/scripts/utils.py |
Scrubs uv Python variables from subprocesses. |
.evergreen/scripts/setup-uv-python.sh |
Implements interpreter selection and fallback. |
.evergreen/scripts/setup_tests.py |
Propagates and adjusts uv settings. |
.evergreen/scripts/generate_config.py |
Migrates generated task variables. |
.evergreen/scripts/generate_config_utils.py |
Recognizes UV_PYTHON in names. |
.evergreen/run-tests.sh |
Logs interpreter search configuration. |
.evergreen/generated_configs/tasks.yml |
Regenerates task Python variables. |
.evergreen/generated_configs/functions.yml |
Regenerates function expansion lists. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
blink1073
force-pushed
the
PYTHON-6084
branch
from
September 25, 2026 11:44
57bb79b to
5f93d80
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
sleepyStick
approved these changes
Sep 25, 2026
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.
PYTHON-6084
Changes in this PR
Standardizes Evergreen Python selection for uv. Always use
UV_PYTHON(default 3.10) withUV_PYTHON_SEARCH_PATH/UV_PYTHON_PREFERENCEpointing uv at the toolchain, falling back to uv-managed downloads otherwise.The majority of the change is the regenerated tasks switching
TOOLCHAIN_VERSIONwithUV_PYTHON.Test Plan
Regenerated config is byte-identical; script logic exercised directly (defaults, free-threaded fallback, platform dirs); Evergreen tasks run on this PR.
Checklist
Checklist for Author
Checklist for Reviewer