fix(ci): add Gitea health gate before push in uptime-probe #8

Merged
infra-lead merged 1 commits from sre/status-probe-gitea-health-gate into main 2026-05-10 13:33:42 +00:00

1 Commits

Author SHA1 Message Date
edf2bfeefa fix(ci): add Gitea health gate before push in uptime-probe
Probe runs on GitHub Actions (ubuntu-latest) — confirmed independent of
Gitea Actions runner. Previously the commit step silently swallowed push
failures with `|| echo "push failed"`. Now:

1. Health gate: checks git.moleculesai.app/api/v1/version returns 200
   before pushing. Fails fast with a clear ::error message if Gitea is
   502 or unreachable, rather than silently skipping the push.

2. Fail loudly: `set -euo pipefail` replaces `set +e`, so any push error
   surfaces as a workflow failure (visible in GitHub Actions UI).

3. Self-heals: the next /5 cron firing picks up the buffered history/
   results once Gitea recovers.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 13:32:18 +00:00