Repository navigation
Description
The proposal
Drop Nix 2.31. Remove it from the version matrix, from default.nix, and
remove the gates that exist only for it.
What 2.31 costs, measured
Run 31618055409,
the test-local job of each version, same suite and same commit:
| version | passed | skipped | duration |
|---|---|---|---|
git |
2690 | 13 | 7m39s |
| 2.31 8000 | 2594 | 107 | 12m22s |
| 2.34 | 2683 | 20 | 9m21s |
| 2.35 | 2690 | 13 | 9m30s |
2.31 runs 96 fewer tests than 2.35 and takes 30 per cent longer. It is the
job that gives the least signal and spends the most runner time.
What it skips, and why
16 distinct reasons in the summary of that job. The largest:
| tests | reason |
|---|---|
| 29 | linked Nix is unsupported; requires Nix >= 2.32 |
| 11 | linked Nix lacks dynamic_primop_registration |
| 8 | the count-calls patch does not reach this version |
| 7 | findRoots/collectGarbage crash on nonnumeric temproots names (NixOS/nix#16138) |
| 6 | this Nix re-renders a decoded path raw, so escaping cannot survive |
| 4 | reads NIX_USER_CONF_FILES before Session(nix_conf=...) can set it |
| 3 | cannot dispatch read_derivation |
| 1 | does not report a store's own parameters |
A gate that skips is the good case. Some tests do not skip and test
nothing. tests/support/nix_markers.py says it plainly for the nix_conf
gate: on 2.31 the session reads the real nix.conf of whatever host it runs
on, so the assertion passes for the wrong reason.
The renderer of this repository does not run on 2.31
ci/render.py says so in its first paragraph:
Requires Nix >= 2.32 -- primop registration is broken on Nix 2.31 and isn't
expected to be fixed there.
So a contributor on 2.31 cannot regenerate .github/workflows/, and upstream
does not plan to correct it. The 11 skipped dynamic_primop_registration tests
are the same defect seen from the suite.
The deprecation already started
tsan runs on git, 2.34 and 2.35, and not on 2.31. One variant already
decided this. Five jobs still carry it on every commit: test-local,
test-daemon, test-asan, test-ubsan, test-nogc.
AGENTS.md also already treats it as legacy: no library version branches for
2.31, gate the test instead. 56 references to the version remain in the Python
under tests/, nanopynix/src and pynix/src.
The argument against, stated fairly
2.31 is the slowest job, and a slow job finds races. On 2026-08-12 the
in-process LSP driver raced a background warm-up
(tests/support/lsp_drivers.py). test-local-nix_2_31 failed it twice in a
row while 14 faster jobs passed, and test-nogc-git hit it once and then
passed on a re-run. The old Nix was the most reliable reporter of a defect that
had nothing to do with Nix.
That is an argument for a slow job, and not for an old Nix. If 2.31 goes, keep
the property some other way -- a runner under deliberate load, or a variant
that is simply slow -- rather than keeping a version for a side effect.
Acceptance
- 2.31 leaves the version matrix and
default.nix. - Every gate that exists only for 2.31 goes, and each removal shows the tests
it un-skips. The 29 "requires Nix >= 2.32" skips should become 0. tests/support/nix_markers.pykeeps only the gates that a supported version
still needs.- A note in
AGENTS.mdrecords the supported floor, so the next gate is
written against it. - Decide what replaces the slow job, or record that nothing does and why.
Activity
build(nix): raise the supported Nix floor to 2.34, and drop 2.31
refactor(bindings): delete the version branches the 2.34 floor made dead
build(nix): raise the supported Nix floor to 2.34, and drop 2.31
refactor(bindings): delete the version branches the 2.34 floor made dead