Repository navigation
Keep the MLX install ordering tests independent of the runner certifi and pip - #18358
Merged
Merged
Conversation
…fi and pip install_python_stack() raises certifi / pip to the CA trust floor through pip_install_try, which the helper did not stub. On a runner whose certifi or pip is below the floor and has no uv on PATH, 59 cases fail with FileNotFoundError: 'uv'. Stub _trust_floor_specs; the floor has its own tests in test_ca_trust_floor.py.
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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
On a runner whose own
certifiorpipis below the CA trust floor and has nouvon PATH, 59 cases intests/studio/install/test_mlx_install.pyfail:This showed up on the macOS leg of the cross-platform staging run for #16799 (runner certifi 2026.7.22, below the
certifi>=2026.10.19floor).Cause
install_python_stack()calls_ensure_trust_floor()on every setup and update (#14887). That raises certifi, and pip on 3.10+, throughpip_install_trywhenever the running interpreter does not already meet the floor. The_run_to_extrashelper stubspip_install,run,_bootstrap_uvand the torch steps, but not this path. So whether these tests spawn a real installer depended on the runner image's certifi and pip versions. On hosts that already meet the floor, nothing runs and the tests pass.The installer behaviour is correct. The test was not hermetic.
Fix
Stub
_trust_floor_specsto return[]in the helper, next to the_no_torch_pairstub from #18354. The floor logic keeps its own coverage intests/studio/install/test_ca_trust_floor.py.Verification
Reproduced by raising the certifi floor above any installed version and running with
uvremoved from PATH:uvtest_ca_trust_floor.pypasses unchanged, and ruff is clean.