You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Report hourly-status storage failures as failed runs (polish for #5, R4) #23
The hourly-status check can classify a local state failure as a quiet hour. Found in pull request #18 at bd215d4; this is polish and does not block the review.
catalog/hourly-status/check.sh:15 runs mkdir under set -e. When it fails with status 1, the check produces no stdout. The loop format treats exactly that result as a successful quiet wake, so the scheduler does not record a failed run. The pending-state write at line 36 has the same problem for write errors that return 1.
Synthetic reproduction: use an isolated HOME containing a regular file named .wizloops, render the check with the catalog's default source params, then execute it. Result: exit 1 and zero stdout bytes, with a diagnostic only on stderr. A pending-file write to /dev/full also reproduces an exit-1 write failure. These are environmental failures, rather than the supported GitHub failure case, which correctly exits 2.
Fix: explicitly check creation of the state directory and writing of the pending snapshot; preserve the diagnostic and exit 2 on failure. Add a focused error-classification case so storage failure is distinguished from an unchanged snapshot.
Activity