Skip to content

T2.4 — Nix image toolchain parity: pass the full testinfra suite #666

Closed

Description

@c-vigo

Context

Tracking: #625. The Nix-built image (T2.1 #634) builds and is multi-arch (#636), and the testinfra
suite was made portable (#635), but the image still fails 32 of 63 tests/test_image.py tests
(the discovery phase left nix-image.yml continue-on-error). Completing the switch (Nix-only,
#642) requires the full image suite to pass on the Nix image first.

Root causes

  • Python toolchain absent + version conflict (~26): requires-python = "==3.14.6" is
    unsatisfiable on nixpkgs-26.05 (3.14.4), so uv sync fails; and vig-utils + ruff/bandit/
    pre-commit/pip-licenses aren't in the image (the Debian image baked them via uv pip install
    at build, which a hermetic Nix build can't do).
  • Missing tools (3): cargo-binstall, just-lsp, typstyle.
  • Version-assertion tests: pin Debian-era versions of nixpkgs-sourced tools.

Plan (Nix-native)

  • Relax requires-python to >=3.14,<3.15 (root, packages/vig-utils, assets/workspace); the
    flake.lock is the reproducibility anchor now. Regenerate uv.lock. Drop the
    UV_PYTHON_DOWNLOADS_JSON_URL managed-CPython workaround.
  • flake.nix: package vig-utils as a buildPythonPackage into a python314.withPackages env so
    import vig_utils + its console scripts work; add ruff/bandit/pip-licenses +
    cargo-binstall/just-lsp/typstyle from nixpkgs.
  • Adapt tests/test_image.py to the T2.2 — Make the testinfra suite portable (TEST ADAPTATION) #635 presence-not-version pattern for nixpkgs-sourced tools; the
    pre-commit cache test asserts the dir exists (hermetic builds can't pre-fetch hook repos).

Acceptance criteria

  • tests/test_image.py passes 63/63 on the Nix image; nix-image.yml testinfra is a real gate.
  • No regression to the dev-shell (nix develop) or the multi-arch build.

Refs: #625, #634, #635

Activity

  1. c-vigo commented on Jul 1, 2026

    @c-vigo
    ContributorAuthor

    Delivered on dev via the Nix-migration epic PR #670 (merged 2026-06-30) + PR #667 (commit 142e405). The Nix image passes the full test_image.py suite (63/63) and nix-image.yml is a real gate (not continue-on-error). Closing as complete — this stayed open only because the epic merged to dev (not main) and these T/C-track issues carry Tracking: #625 but were never linked as GitHub sub-issues, so sync-issues auto-close never fired (tracked by #677). Refs #625.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions