Skip to content

Report hourly-status storage failures as failed runs (polish for #5, R4) #23

Open

Description

@jparker2006

Follow-up of #5 (spec #1)

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

  1. added
    needs-triage
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions