-
Notifications
You must be signed in to change notification settings - Fork 0
fix: name a remedy that works for an unreadable RELEASES #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ef225b5
fix: name a remedy that works for an unreadable RELEASES
ausimian 5de0e9f
fix: name the state RELEASES must be in, not the boot-time cause
ausimian fa8cc3d
fix: name the RELEASES file the handler reads, not the one at the root
ausimian 615b69d
docs: qualify the RELEASES path in the release note too
ausimian fdfa7f5
fix: require RELEASES to be consultable, not merely readable
ausimian 8a83d12
fix: ask for a RELEASES file the handler accepts, not one that parses
ausimian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
releases/RELEASESwas absent at boot but is created and becomes readable before this refusal is shown, the added two-way remedy matches neither current condition: the file is no longer absent, and it is not present-and-unreadable. This is a supported state—the node retains its synthesised record even if the file appears later—so telling the operator to infer the boot-time cause by checking the file now can leave them without the applicable remedy, which is simply to restart with the readable file in place. Describe the required pre-restart state rather than branching only on the file's current existence.AGENTS.md reference: AGENTS.md:L451-L453
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, and the fix is a simplification rather than another branch. Fixed in
5de0e9f.The third state is real and I had missed it:
RELEASESabsent at boot, created and readable since. The node keeps the record it synthesised ininit/1regardless, so the refusal still fires — and an operator told to check whether the file is "absent" or "present and unreadable" finds it is neither, and is left without advice at the exact moment a plain restart is all they need.The error underneath it is the one you name: I was branching on the boot-time cause when what an operator can act on is the state the file has to be in. So the message now asks for one condition instead of analysing two:
That covers all three states, and it is shorter than the branch it replaces — which is a fair sign the branch was the wrong shape rather than merely incomplete.
AGENTS.mdrecords the dead end explicitly, since "branch the advice on why the record was synthesised" is the obvious correction and is what I reached for first. It now says not to turn it back into a case analysis of the cause, and not to collapse it into a bare "restart the system" either.The test comment was carrying the same misconception — it described "the other branch of the remedy" — and now states why neither the bare restart nor the case analysis is right.
Worth noting this is the third refusal on this branch series to have claimed more than it could deliver, after the ERTS guard's message was wrong twice the same way. The pattern is consistent enough to be worth naming: a refusal that reports a diagnosis tends to overreach, and one that reports the condition required to proceed does not.