Repository navigation
feat(nix): Nix image toolchain parity — pass the full testinfra suite (#666) - #667
Merged
c-vigo merged 3 commits intoJun 24, 2026
Merged
Conversation
nixpkgs pins the exact interpreter via flake.lock (26.05 ships CPython 3.14.x), so an == pin is both redundant and unsatisfiable against nixpkgs (uv sync failed: 3.14.4 vs ==3.14.6). Relax the constraint in the root, vig-utils, and workspace-template pyprojects and regenerate uv.lock. Refs: #666
Package vig-utils (hatchling, dep rich) and pip-licenses (from its PyPI wheel, since it is not in nixpkgs) as Nix python packages and expose them via a python314.withPackages env, so `import vig_utils` and the console scripts work without a network-populated uv venv. Add ruff, bandit, cargo-binstall, just-lsp, and typstyle from nixpkgs to the image toolset. This replaces the Debian image's build-time `uv pip install` with a hermetic, Nix-native toolchain. Refresh the stale uv-download comment. Refs: #666
…image testinfra Tool versions are pinned by flake.lock now, so check fast-movers and tools whose nixpkgs version differs from the old Debian pin (gh, just, pre-commit, cargo-binstall, typstyle) for presence/run only, and trim the unused EXPECTED_VERSIONS keys. The pre-commit cache dir is asserted present (a hermetic build cannot pre-fetch hook repos; it populates on first run). With the toolchain baked, the suite is 63/63, so drop continue-on-error from the nix-image build-and-test job (the push step stays tolerant of registry hiccups). Refs: #666
c-vigo
merged commit Jun 24, 2026
142e405
into
feature/625-nix-claude-migration
19 of 21 checks passed
This was referenced Jul 1, 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.
Summary
Closes the deferred discovery gap so the Nix image passes the full
tests/test_image.pysuite (63/63) — a prerequisite for making Nix the only build (#642).requires-python==3.14.6→>=3.14,<3.15(root,vig-utils, workspace template) + regenerateduv.lock.flake.lockpins the exact interpreter now, so the==pin was redundant and unsatisfiable against nixpkgs (3.14.4) —uv syncwas failing.vig-utils(hatchling, deprich) andpip-licenses(from its PyPI wheel — not in nixpkgs) into apython314.withPackagesenv soimport vig_utils+ the console scripts work without a network-populated venv; addedruff,bandit,cargo-binstall,just-lsp,typstylefrom nixpkgs. Replaces the Debian image's build-timeuv pip install.test_image.py: nixpkgs-pinned tools are checked presence/run-only (versions live inflake.lock, not the test; avoids breakage on every nixpkgs bump); the pre-commit cache dir is asserted present (a hermetic build can't pre-fetch hook repos). Madenix-image.yml'sbuild-and-testjob gate on testinfra (discovery phase closed; the push step stays tolerant of registry hiccups).Verified locally
nix build .#devcontainerImagesucceeds;podman load+TEST_CONTAINER_TAG=… uv run pytest tests/test_image.py→ 63 passed (was 31).devShellToolsparity list unchanged (23).Dependencies
buildLayeredImage), non-publishing #634, T2.2 — Make the testinfra suite portable (TEST ADAPTATION) #635.Refs: #666