Repository navigation
dummy-ups: preserve alarm descriptions during recorder playback - #3867
Open
user01010111 wants to merge 3 commits into
Open
user01010111 wants to merge 3 commits into
user01010111 wants to merge 3 commits into
Conversation
Signed-off-by: user01010111 <lapses.50.booster@icloud.com>
|
A ZIP file with standard source tarball and another tarball with pre-built docs for commit 957a4aa is temporarily available: NUT-tarballs-PR-3867.zip. |
…ols#3867] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…l syntax [networkupstools#3867] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
approved these changes
Dec 3, 2026
|
✅ Build nut 2.8.5.6143-master completed (commit 84201fb95b by @jimklimov)
|
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.
Replaying a
nut-recordersequence withdummy-upsnow restores recorded alarm descriptions. The recorder quotes each description, repeats it when the status changes, and records an empty assignment when the description disappears. After a failed poll it keeps affirmative readings duringWAITand defers clearing a missing description until the device supplies an explicit value or leavesWAIT.Hand-written
ALARMinstructions still accumulate messages and clear them together. Older recordings omit a clear, so playback uses the loss of theALARMstatus token to recognize removal of a recorded description. An older sequence cannot distinguish a deletion when the token stays set. A connectedupsdcan still misreport a changed string containing a double quote or backslash until it receives the full driver state again.Validation
dummy-ups,upsd, andupsc. Playback restored initial, raised, changed, retained, and cleared descriptions. The unmodified driver omitted the description at all four active observations.WAITobservations.upsdwith a fresh driver-state transfer. The sequence file preserved spaces, literal hashes, quotes, and backslashes. Unmodified and updated drivers showed the same existing limitation for a quoted message sent to an already-connected server.make distcheck-lightpassed. Verified the installed manual pages, their HTML links, and all five edited files in the distribution archive.OpenAI Codex used
gpt-6.2-astrafor implementation and review andgpt-6.2-solfor validation and drafting. Claude Code (claude-opus-5-5) independently reviewed the patch.