Repository navigation
feat(runner-updaters): alert after an hour of failed updates - #292
Merged
smartwatermelon-agent[bot] merged 1 commit intoNov 18, 2026
Merged
Conversation
On 2026-11-18 every pass of both MIMOLETTE updaters failed for about two hours and nobody was told: a failed update was only a log line, and neither updater plist carried NTFY_TOPIC. Each updater now counts consecutive failed passes (git fetch or merge failed, revision unreadable, install.sh failed) in update-fails. At 6 (NOS_UPDATE_ALERT_AFTER / SWM_UPDATE_ALERT_AFTER) it sends one ntfy alert and writes update-alerted so later failures stay quiet. The first good pass after an alert sends one recovery alert and clears both files. A swm pass that only waits for a running job changes nothing. An unset topic logs a warning; a failed delivery is retried on a later pass. Both installers now render NTFY_TOPIC into the updater plist (swm: the topic only, not the supervisor knobs). The updater cannot reload its own plist, so one hand run of install.sh is needed. Runbooks and tests updated. Advances #252
smartwatermelon-agent
Bot
requested a review
from twistedmelonman
as a code owner
November 18, 2026 23:36
smartwatermelon-agent
Bot
deleted the
claude/feat-updater-failure-alerts-0ff2a5bc
branch
November 18, 2026 23:39
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.
Why
On 2026-11-18 every pass of both MIMOLETTE updaters failed for about two hours and nobody was alerted. A failed update was only a log line, and neither updater plist carried
NTFY_TOPIC.What
update-fails. A failed pass is a failed git fetch or merge, an unreadable revision, or a failedinstall.sh. A good pass (up to date, or installed) resets the count. A swm pass that only waits for a running job changes nothing.NOS_UPDATE_ALERT_AFTER/SWM_UPDATE_ALERT_AFTER) one ntfy alert goes out andupdate-alertedis written, so later failures stay quiet. The first good pass after that sends one recovery alert and clears both files.NTFY_TOPICinto the updater plist (swm: the topic only, not the supervisor knobs).install.shon MIMOLETTE turns the alert on.Tests
scripts/nos-runner/tests/run-tests.shandscripts/swm-macos-runner/tests/run-tests.shpass. New cases cover the 5/6/7 failure sequence, recovery, no alert without a prior one, job-waiting, install failure, unreadable revision, thresholds, no topic, failed delivery, and the plist topic.Advances #252