fix(cache-warm): push the lock commit even when a target failed to build #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/cache-warm-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gating the flake.lock push on every target building turned one broken target
into a fleet-wide input freeze: from 2026-08-30 to 2026-09-06 the freshly
updated lock lived only in amd's local clone while origin/main stayed on
b4cc9dd, so every other host's nixos-upgrade built against a lock that wasdays stale -- the exact opposite of what cache-warm is for.
Push first, then exit with the accumulated build rc: the run still goes red
in the journal (visible), the lock still ships (unblocked). A rejected push
now counts towards rc as well, since it genuinely failed.
no, I want it to fail here
Closing decision confirmed, leaving this for the record so neither a human nor cache-warm-adjacent automation re-rolls this fix: push-before-exit was rejected deliberately (Harald: "no, I want it to fail here", 14.09). The exit-before-push gate stays.
The Oct lock freeze this PR was opened for is now being fixed at the cause instead: cache-warm failed nightly on 06.-10.10 (journal: exit-code failures 23:0x UTC all five nights) because (a) the simple-nixos-mailserver gitlab: input hit an anonymous-API 403 (GitLab Cloudflare challenge on /repository/commits) during the weekly
nix flake update, so the run died before pushing a new lock, and (b) from 09.10. the x1 target was also dead (our flatpak overlay patch failed to apply against flatpak 1.18.4). Both fixed in PR #61: mailserver follows the branch as an API-archive tarball (numeric project id, served anonymously), the overlay applies via postPatch sed anchored on the line itself. With those gone the nightly run should go green and the push gate stops mattering.Pull request closed