8000 Tests: run the drift check and the version gates under 2.31 and 2.35 in CI · Issue #50 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

Tests: run the drift check and the version gates under 2.31 and 2.35 in CI #50

Closed

Description

@Lillecarl

The per-version dev shells exist. The drift check and the version-gated
settings tests run by hand only.

A drift check against 2.34 cannot tell you that 2.31 lacks a field. Running
the same check under each supported version makes drift itself the version
gate, with the hand-written nix_version_min as the fallback.

Scope

Run the drift check and the version-gated settings tests under Nix 2.31 and
2.35 in CI, not by hand.

nix develop --file . nanopynixVersions.nix_2_31.shell --command pytest ...

Depends on

#51

Section 5, item 3.5 of CODE_IMPROVEMENT_PLAN.md.

Activity

  1. Lillecarl commented on Aug 3, 2026

    @Lillecarl
    ContributorAuthor

    Already satisfied, by a different mechanism than the one this issue proposed. 413d1f5 records why, and closes it.

    What this issue asked for, and what happened instead

    The scope was nix develop --file . nanopynixVersions.nix_2_31.shell --command pytest .... CI does not do that. It builds a per-version packaged runner and runs the full suite in its own job:

    nix build ".#nanopynix-tests-${version}" --out-link result
    ./result/bin/nanopynix-tests --verbose --tb=short -rsxXfE --run-temp-store-builds --nix-test-backends ${backend}
    

    No -m filter, no deselection, so the drift check and every version gate run. ci/workflows/lib.nix derives the matrix from passthru.addToMatrix rather than a hand-written list, so on every commit the jobs are test-local-* and test-daemon-* for git, 2.31, 2.34 and 2.35 -- eight jobs, two backends each.

    That is what the issue wanted: "running the same check under each supported version makes drift itself the version gate".

    Two corrections to the evidence

    nix_version_min is not a pytest marker. This issue calls it "the hand-written nix_version_min ... fallback", which reads like a test marker. It is NIX_VERSION_MIN_KEY, a pydantic json_schema_extra key on a model field (nanopynix/settings.py:179), with nix_version_removed as its other half. The pytest marker for a version range is nix_version(minimum=, maximum=, exclude=).

    The gate is not a fallback to drift; the two check each other. A field the running Nix lacks and the model does not gate shows up as extra. A gate that hides a field the running Nix does have shows up as missing. So a wrong gate fails drift, on the version that disagrees.

    Measured, across the three per-version dev shells

    32 fields carry a version gate. How many the gate refuses:

    Nix gate refuses store drift
    2.31.5 31 of 32 clean
    2.34.8 15 of 32 clean
    2.35.1 1 of 32 clean

    The single field left on 2.35 is S3BinaryCache.buffer_size, which carries nix_version_removed = "2.34" -- so the removal direction is exercised too, and by the one version where the other 31 gates are open.

    pytest tests/nanopynix/test_stores.py tests/nanopynix/test_settings.py tests/nanopynix/bindings/test_util.py under the 2.31 shell: 84 passed, 0 failed, 2 skipped.

    What 413d1f5 changes

    Only a comment, and the rendered workflows are byte-identical. addToMatrix = true reads like a switch for CI minutes. It is not: turning it off for one version deletes the only check on that version's gates, and every remaining job stays green. The numbers above are recorded beside the flag so the next reader does not have to derive them.

    Two tests already pin the non-vacuity of the gates from inside the suite: test_the_gates_bound_a_field_from_both_sides asserts exactly one of the renamed buffer-size/multipart-chunk-size pair is live on any supported Nix, and test_a_setting_this_nix_lacks_raises_rather_than_rendering asserts the refusal is loud rather than a silently dropped URI parameter.

    Co-Authored-By: Claude Opus 5 noreply@anthropic.com

  2. added
    source: nanopynix
    on Oct 19, 2026
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

    source: nanopynix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0