Repository navigation
fix(min): print a refused newer box state without the daemon-failure lead - #3874
Merged
Merged
Conversation
…lead A 0.8 min that meets box state from a newer release stops before it writes anything, and its daemon prints why. min passed that refusal up through ensure_daemon, which put "Failed to ensure the minimald daemon is running:" in front of it. That lead reads as a daemon fault, but the daemon refused on purpose and changed nothing. The refusal is now a StateRefusal error. ensure_daemon prints it as the whole message and keeps the lead for every other start failure. The note about the VM provider chosen by /dev/kvm is not added to a refusal either, since the VM did not fail to start. Refs gominimal/inbox#1330 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA
Contributor
Contributor
|
Approved: no findings at Nothing to do. Clobber: none seen. |
Member
Author
|
/arch-review |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The design of record does not govern how min frames a refused newer box state, so this ruling is a PASS by absence. The change keeps the refusal text, types it as StateRefusal, and removes only the daemon-failure lead and the KVM note for it. Other start failures keep the lead. The code stays in the minimal crate, as #3850 placed it. No condition is open.
Ruled at be1dd6c against gominimal/arch@d3d472929d81 by claude-opus-5-5.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a 0.8
minmeets box state that a newer release wrote, the daemon refuses before it writes anything (#3850).minprinted that refusal behind a lead that reads as a daemon fault. The pc run of gominimal/inbox#1330 (journey J4) printed this:The daemon did not fail. It refused on purpose. With this PR, the same run prints:
Change
autospawn::boot_failure_errorreturns the refusal as a typedStateRefusalerror. The refusal text does not change.is_state_refusalfinds that error.cmd::ensure_daemonadds the "Failed to ensure the minimald daemon is running" lead to every start failure except a refusal./dev/kvm, the note about that choice is not appended to a refusal, because the VM did not fail to start. Before this change, the note also turned the error back into plain text, and the lead came back.Text this changes
cmd::tests::a_state_refusal_prints_without_the_daemon_lead, which also pins that another start failure keeps the lead.autospawn::tests::boot_failure_error_for_a_state_refusalnow also checks that both refusal forms come back as aStateRefusal.Verification
just fixis clean, and so is fmt plus clippy--fix.just test-one state_refusal -p minimal: 2 passed.just test -p minimalwas stopped partway when the shared host ran low on memory. CI runs it.Refs gominimal/inbox#1330
🤖 Generated with Claude Code
https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA
Summary by CodeRabbit