You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests: run the drift check and the version gates under 2.31 and 2.35 in CI #50
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.
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:
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.
Activity
Lillecarl commentedon Aug 3, 2026
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:No
-mfilter, no deselection, so the drift check and every version gate run.ci/workflows/lib.nixderives the matrix frompassthru.addToMatrixrather than a hand-written list, so on every commit the jobs aretest-local-*andtest-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_minis not a pytest marker. This issue calls it "the hand-writtennix_version_min... fallback", which reads like a test marker. It isNIX_VERSION_MIN_KEY, a pydanticjson_schema_extrakey on a model field (nanopynix/settings.py:179), withnix_version_removedas its other half. The pytest marker for a version range isnix_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 asmissing. 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:
The single field left on 2.35 is
S3BinaryCache.buffer_size, which carriesnix_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.pyunder the 2.31 shell: 84 passed, 0 failed, 2 skipped.What 413d1f5 changes
Only a comment, and the rendered workflows are byte-identical.
addToMatrix = truereads 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_sidesasserts exactly one of the renamedbuffer-size/multipart-chunk-sizepair is live on any supported Nix, andtest_a_setting_this_nix_lacks_raises_rather_than_renderingasserts the refusal is loud rather than a silently dropped URI parameter.Co-Authored-By: Claude Opus 5 noreply@anthropic.com
docs(ci): say why every Nix version has to stay in the test matrix
docs(ci): say why every Nix version has to stay in the test matrix