Repository navigation
fix(nix): restore managed Python downloads with uv 0.13 - #1978
Merged
Merged
Conversation
12 of 13 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.
Description
Fix managed Python downloads with the packaged uv 0.13.4 on the 1.18.1 release branch. The flake constructed a URL using the old
uv-pythoncrate path; uv 0.13 moved the file touv-python-managed. Both CI setup actions forward the flake value unchanged.Type of Change
fix-- Bug fixtest-- Adding or updating testsModifiers
!)Changes Made
Investigation: the assignment is in
flake.nix, not a nixpkgs setup hook. The override lets FHS CI runners fetch managed CPython for manylinux hooks while local Nix shells pin their interpreter and disable downloads. At tag 0.13.4,ManagedPythonDownloadList::from_settingsstill supports HTTP URLs, local paths and file URLs. The 0.13.0 release notes document interpreter reuse and the new Python 3.15 default; the metadata crate relocation is visible in that tag's source tree. The bad URL is only exercised when managed interpreter acquisition is needed, so an existing compatible interpreter/download can hide it in amd64/dev CI. The candidate's amd64 job was cancelled; it did not prove the URL worked.Sources: uv 0.13.0 notes, 0.13.4 metadata, override loading.
Changelog Entry
Fixed
Testing
Manual Testing Details
nix develop --command bash -c 'uv run --with pytest-xdist pytest tests/test_uv_download_metadata.py -n 4 --basetemp="$HOME/.cache/devkit-pytest/1976"'— exit 1, both architecture URL assertions fail; two action guards pass. Failing tests committed before implementation.tests/test_setup_toolchain_env.pyadded — exit 0, 52 passed.nix eval --raw .#devShells.aarch64-linux.default.UV_PYTHON_DOWNLOADS_JSON_URL— exit 0, correct0.13.4/crates/uv-python-managed/download-metadata.jsonURL. x86_64 evaluated by the test too.curlof the evaluated URL — exit 0, HTTP 200. Network probe is manual, outside unit tests.git diff --check— exit 0.Arm64 verification uses evaluation of the actual arm64 dev-shell environment because the arm64 build lane only runs in release.yml. No image builds or release workflows dispatched.
Checklist
cba134d3822c2bee0bbebb645f84955a71ee4d37(all checks, including Test Summary)Additional Notes
Targets
release/1.18.1through the hotfix lane. Do not merge or dispatch a release as part of this PR. The fix will reach dev through the main-to-dev sync after promotion.Refs: #1976