Skip to content

fix(nix): restore managed Python downloads with uv 0.13 - #1978

Merged
gerchowl merged 2 commits into
release/1.18.1from
bugfix/1976-uv-downloads-url
Oct 30, 2026
Merged

gerchowl merged 2 commits into
release/1.18.1from
bugfix/1976-uv-downloads-url

Conversation

@gerchowl

@gerchowl gerchowl commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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-python crate path; uv 0.13 moved the file to uv-python-managed. Both CI setup actions forward the flake value unchanged.

Type of Change

  • fix -- Bug fix
  • test -- Adding or updating tests

Modifiers

  • Breaking change (!)

Changes Made

  • Select the metadata crate layout by packaged uv version, retaining the version-derived tag for future bumps.
  • Evaluate the shipped uv version and dev-shell URL for both Linux architectures without building either toolchain; guard both action forwarding paths.
  • Record the fix under 1.18.1 Fixed in both changelogs, as required for this release fix.

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_settings still 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

  • Restore managed Python downloads with uv 0.13 (#1976)
    • Derive the metadata URL's crate path from the packaged uv version so both CI setup actions use the correct layout, including arm64 release builds.

Testing

  • Targeted tests pass locally
  • Manual testing performed

Manual Testing Details

  • RED: 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.
  • GREEN: same command with tests/test_setup_toolchain_env.py added — exit 0, 52 passed.
  • nix eval --raw .#devShells.aarch64-linux.default.UV_PYTHON_DOWNLOADS_JSON_URL — exit 0, correct 0.13.4/crates/uv-python-managed/download-metadata.json URL. x86_64 evaluated by the test too.
  • curl of 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

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code where needed
  • Changelog updated in both copies under the release section (per task)
  • I have added tests that prove my fix is effective
  • Touched tests pass locally
  • CI green on pushed head cba134d3822c2bee0bbebb645f84955a71ee4d37 (all checks, including Test Summary)

Additional Notes

Targets release/1.18.1 through 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

@gerchowl
gerchowl merged commit 537217a into release/1.18.1 Oct 30, 2026
18 checks passed
@gerchowl
gerchowl deleted the bugfix/1976-uv-downloads-url branch October 30, 2026 00:48
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.

1 participant