vivarium CI: verdicts are cached and replayed, readers build on the remote builder, and failures keep no evidence · Issue #1489 · nixidae/nixidae · GitHub
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
vivarium CI: verdicts are cached and replayed, readers build on the remote builder, and failures keep no evidence #1489
Review findings T1, T2, T3 and T10 on #1444. T1 is confirmed: ci/lib.nix:67 filters -vivarium-test-, and no attempt name contains that string.
T1:
Attempts are pushed to cachix and substituted later. The green run 43862556000 booted no guest.
A cached failed attempt keeps a flake red.
T2:
33 of 49 jobs in the daily run were red, mostly for reasons outside vivarium: a pynixd QueryValidPaths stall, and a 512 MiB image copied to the builder for a reader that runs cat status.
UML attempts run on the remote builder.
T3: no evidence is uploaded on failure. The daily run costs 713 runner-minutes.
T10: stale comments, and one attempt name shared by all four backends.
Fix:
allowSubstitutes = false on attempts and readers, and preferLocalBuild on readers.
Decision (User, 2026-11-17): CI caches every verdict, passed or failed. Nix reuses a result for the same inputs, and that includes a test's verdict.
This changes the fix:
No allowSubstitutes = false on attempts or readers.
Remove pushFilter from ci/lib.nix, together with its comment, which argues for the opposite. Do not correct it: a correct filter would exclude every verdict.
To run a test again, use nix build --rebuild --file . <test>.attempt. Document this.
The rest stands: preferLocalBuild on readers, an upload of <attr>.attempt on failure, where UML attempts run, and the pynixd stall reported separately.
The dead push filter and its contrary comment are gone; every verdict is cached. The howto shows how to run a test again: nix build --rebuild --keep-failed --file . <test>.attempt. Measured: the guests boot again, Nix exits 1 because the timings differ, and the new run is kept at <attempt>.check.
The reader builds locally (preferLocalBuild), so it no longer copies the root images to a builder.
A red test job uploads its .attempt as attempt-<job>.
The attempt name carries the backends: vivarium-session-lan-qemu-attempt.
test-k8s-pull no longer waits on the UML kernel job, and two stale comments are corrected.
Open, needs a decision (T2): UML attempts build on the remote builder. nix/ci.nix adds the builder to every job when the actor is Lillecarl, so a UML test's timings come from a shared machine. Options:
Mark attempts preferLocalBuild, so every guest runs on the job's own runner. Recommended: a verdict and its report.json then describe the runner the job ran on.
Keep it. The builder is faster, and the runner only waits.
Activity
Lillecarl commentedon Nov 17, 2026
Decision (User, 2026-11-17): CI caches every verdict, passed or failed. Nix reuses a result for the same inputs, and that includes a test's verdict.
This changes the fix:
allowSubstitutes = falseon attempts or readers.pushFilterfromci/lib.nix, together with its comment, which argues for the opposite. Do not correct it: a correct filter would exclude every verdict.nix build --rebuild --file . <test>.attempt. Document this.preferLocalBuildon readers, an upload of<attr>.attempton failure, where UML attempts run, and the pynixd stall reported separately.Assisted-By: Claude Opus 5.5
vivarium: build a test's reader locally
vivarium: name the attempt after its backends
vivarium: cache every test verdict, and document how to run one again
vivarium: upload a red test job's attempt as a CI artifact
vivarium: k8s-pull does not wait on the UML kernel job
Lillecarl commentedon Nov 17, 2026
Landed on main (0bb118c):
nix build --rebuild --keep-failed --file . <test>.attempt. Measured: the guests boot again, Nix exits 1 because the timings differ, and the new run is kept at<attempt>.check.preferLocalBuild), so it no longer copies the root images to a builder..attemptasattempt-<job>.vivarium-session-lan-qemu-attempt.test-k8s-pullno longer waits on the UML kernel job, and two stale comments are corrected.Open, needs a decision (T2): UML attempts build on the remote builder.
nix/ci.nixadds the builder to every job when the actor is Lillecarl, so a UML test's timings come from a shared machine. Options:preferLocalBuild, so every guest runs on the job's own runner. Recommended: a verdict and itsreport.jsonthen describe the runner the job ran on.Assisted-By: Claude Opus 5.5
vivarium: cache every test verdict, and document how to run one again