fix(ci): add Gitea health gate before push in uptime-probe #8
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "sre/status-probe-gitea-health-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Probe runs on GitHub Actions (
ubuntu-latest) — confirmed independent of the Gitea Actions runner on operator host 5.78.80.188. The probe binary was healthy throughout the Gitea outage; only the commit step was affected (push to Gitea fails when 502).Change: adds a Gitea health gate before the
git pushin the uptime-probe workflow:git.moleculesai.app/api/v1/versionreturns 200 before pushing. Fails fast with a::errorannotation if Gitea is unhealthy, rather than silently skipping the push.set -euo pipefailreplacesset +e, so any push error surfaces as a workflow failure visible in the GitHub Actions UI.history/results once Gitea recovers.Test plan
SRE note
The real SPOF for the status page is not the Gitea Actions runner (the probe does not run there) — it is the git-push-to-Gitea step. This PR addresses the observability gap (fail-fast vs silent). A deeper resilience fix (push to a backup remote, or a separate Gitea instance) can be addressed as a follow-up.
🤖 Generated with Claude Code