Repository navigation
ci(nix): let flake uv fetch the pinned CPython 3.14.6 - #656
Merged
c-vigo merged 3 commits intoJun 23, 2026
Merged
Conversation
The nixpkgs build of uv ships with its embedded Python-download list stripped, so under flake provisioning uv sync --frozen could not find an interpreter for the project pin requires-python == 3.14.6, which nixpkgs does not package (stable 3.14.0, unstable 3.14.4). Point the flake dev-shell uv at upstream download-metadata.json via UV_PYTHON_DOWNLOADS_JSON_URL so it can fetch the exact patch without un-pinning nixpkgs. Refs: #632
GITHUB_PATH only carries PATH, not env vars, so UV_PYTHON_DOWNLOADS_JSON_URL set in the flake dev-shell never reached the uv sync step and CI still failed to find CPython 3.14.6. Forward the variable from the dev-shell to GITHUB_ENV in the provision-via-flake setup step so subsequent steps (uv sync in build-image and project-checks) inherit it. Refs: #632
The flake dev-shell ships podman, which got prepended to the CI PATH and shadowed the runners host podman. The nix-store podman cannot reach the hosts setuid newuidmap/newgidmap, so podman info failed and install.shs runtime health check broke the project-checks BATS dry-run test. Exclude the flake podman bin from the provision-via-flake PATH export so the rootless-configured host podman is used, matching the documented intent. Refs: #632
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 fix for #632 (T1.2). PR #653 enabled flake-provisioned CI but its
Build Container ImageandProject Checksjobs failed. PR #653 was already squash-merged into the epic at the broken state, so this lands as a new PR againstfeature/625-nix-claude-migration.Three coordinated fixes, one root chain:
1. uv could not provide CPython 3.14.6
uv sync --frozen --all-extrasfailed withNo interpreter found for Python 3.14.6. Causes:requires-python == 3.14.6, also inuv.lock). nixpkgs does not package it —nixos-25.05haspython314 == 3.14.0,nixpkgs-unstablehas3.14.4; a Nix interpreter is rejected byuv --frozenas incompatible.uvships with its embedded Python-download list stripped, so it cannot fetch a managed CPython on its own.Fix: set
UV_PYTHON_DOWNLOADS_JSON_URLin the flake dev-shell (mkProjectShellinflake.nix, the toolchain SSoT) to upstream uv'sdownload-metadata.json, pinned to the same uv release the non-flake CI path installs (0.11.23). This restores managed downloads without un-pinning nixpkgs.UV_PYTHON_DOWNLOADSkeeps its default.2. The variable did not reach CI steps
GITHUB_PATHonly carries PATH, not env vars, so the dev-shell variable never reached theuv syncstep. Fix: forwardUV_PYTHON_DOWNLOADS_JSON_URLfrom the dev-shell toGITHUB_ENVin theprovision-via-flakesetup step.3. The flake's podman shadowed the host podman
With (1)+(2) fixed, build/image/integration jobs went green but
Project Checksstill failed: a BATS dry-run test (tests/bats/install.bats) errored becauseinstall.shrunspodman infoand the flake's nix-store podman cannot reach the runner's setuidnewuidmap/newgidmap. Fix: exclude the flake podman bin from theprovision-via-flakePATH export so the runner's rootless-configured host podman is used (matches the documented intent on theprovision-via-flakeinput). The flake'sdevTools(and the parity test) are unchanged.Validation
nix develop -c uv sync --frozen --all-extrassucceeds; dev-shell and venv both report Python 3.14.6.pre-commit run --all-filesgreen; flake parity test passes;nix flake checkpasses.Refs: #632