Name the thing, not its position, in the checks' messages #113
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/archetypes!113
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/name-the-thing-in-check-messages"
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?
Summary
Nothing changes for any running machine: the four composed machines' toplevel derivations are identical to master. What changes is the text a failing check prints. A message that pointed at "the fixture above" or "the sweep below" now names the binding to look at, and a message that described a change ("no longer installs", "lost its decrypt step") now states what the check expects. Which checks this touches, and which of their derivations move, is listed under Validation: a message inside a check's build script is part of its derivation, so those checks rebuild by design, while a message in an evaluation-time assertion leaves the derivation alone. If a rewritten message reads worse than the old one, the fix is a wording edit to the same string; nothing else depends on it.
What changed
Seven files under
checks/, message strings only:dev-forge-opt-out.nix: the with-access projection, the empty-inventory guard and the composed sweep namewithAccess,expectedWithAccess,composedDevMismatchesandexpectedComposedDevSecrets; the three build-script errors namewithAccessInstalland say what it lacks.host-user-credentials.nix: the same six shapes withexpectedComposedHypervisorSecrets.ssh-settings.nix: the second-author message states what the module system must do instead of what it "no longer" does.credential-profiles.nix: the missing-registry-entry guard names the vector bindings and the assertion that would prove nothing; the floor message states the floor and the count found instead of "has shrunk".pi-integration.nix: the missing-package guard namespiFixtureScript; three build-script errors say what the generated text lacks.pi-provider-lifecycle.nix: two "lost" messages now say what the generated activation lacks.consumed-file-carve-out.nix: the build-script error namesexpectedComposedFile.Not touched: comments (allod/archetypes#101 owned those), the
warnEcho "... see ERROR above ..."strings inmodules/, whose "above" is a terminal position, and the token-form assertions inchecks/dev-forge-opt-out.nixandchecks/host-user-credentials.nix, which allod/archetypes#112 (#70) rewrites in the same style. Left alone after the sweep:checks/pi-provider-lifecycle/run.sh"accepted a lost managed provider", where "lost" is the domain word for a provider gone missing, and every remaining grep hit for the position and history words, all of which are comments.Risk
R1: message strings only; no logic, binding or comment changed. Worst credible failure is a message that misnames its sibling, caught by reading the diff. Rollback is a revert.
Validation
./check.shon the branch: all 31 steps passed (18 checks built), run on the committed head.consumed-file-carve-out,dev-forge-opt-out,host-user-credentials,pi-integration. Each has a rewrittenecho "ERROR: ..."line inside itsrunCommandscript, which is a derivation input.lib.assertMsgmessages, which run at evaluation time and are not inputs of therunCommand:credential-profiles,pi-provider-lifecycle,ssh-settings, out paths identical to master; the eleven untouched checks are identical as well.Note on ordering with allod/archetypes#112: both PRs edit
checks/dev-forge-opt-out.nixandchecks/host-user-credentials.nixin adjacent assertion lines, in different hunks. Merge #112 first; if the forge then reports a conflict here, the resolution keeps both sides' lines, and I will merge master into this branch on request.Closes allod/archetypes#106