rebuild-nexus: print evaluation warnings once #63
No reviewers
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/nexus!63
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/eval-warnings-once"
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?
rebuild-nexusnow prints each Home Manager evaluation warning once instead of twice, so theFlake:,Attribute:andToplevel:preview lines print together. Nothing else changes: the eval, the refusal withoutDEPLOY_FLAKE, and thenixos-rebuildcall are as before, and a failed eval still shows its full error. The test suite pins both paths and runs inside theprovisioning-contractflake check. If it is wrong, revert this PR.What changes
scripts/rebuild-nexus: the toplevelnix evalsends stderr to a temp file. On failure the file is echoed to stderr beforedie, and the recorder is never invoked. On success it is discarded, becausenixos-rebuildevaluates the same attribute moments later and prints the same warnings.tests/rebuild-nexus.sh: thenixstub always writes a fixture warning to stderr. The success test asserts the warning is absent from the script's output; the failing-eval test asserts the warning and the stub's error are present and the recorder log does not exist.Risk
R1. Localized to one script; both paths are pinned by the suite; rollback is a revert.
Validation
Run by the integrator at
7a33867:bash tests/rebuild-nexus.shreports 8 passed;nix build .#checks.x86_64-linux.provisioning-contract --rebuildexits 0 with the suite's pass line in the build log. No external review pass at R1.Closes allod/nexus#62
7a338673adtob358b697a6