Repository navigation
docs(runbooks): the converge flaps ScheduledJobFailed when left off main - #1728
Merged
Merged
Conversation
converge-the-host.md's "When it refuses" had no entry for the not-on-main refusal — the one that recurs, because the deployment checkout doubles as the tree branches are authored from and the hourly timer does not wait for that work to finish. Add a subsection quoting the real error, saying the flap is benign (the branch check runs before any fetch, so nothing deploys) and self-clears on the next converge that finds main, and pointing at a git worktree as the way to keep the checkout on main while authoring. The changelog records today's instance. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The documentation still needs to acknowledge possible service restarts despite branch refusal and clarify that the alert clears only after a successful scheduled converge.
2 open issues
What changed in this PR
This documentation-only PR fills a gap in the host-convergence runbook: scheduled convergence refuses deployment when the checkout is off main, triggering ScheduledJobFailed. No runtime behavior changes.
Changes:
- Adds troubleshooting guidance for branch-related refusals, including recovery and using a separate Git worktree.
- Records the November 24 incident and observed recovery in the changelog.
| File | Description |
|---|---|
docs/runbooks/converge-the-host.md |
Documents off-main refusals and operator guidance. |
docs/changelog.md |
Records the incident and corresponding runbook addition. |
Review effort: Balanced
…eds a clean pass Address #1728 review. revive_stopped (converge.sh:1261) runs before the branch check (1289), so a converge that refuses on a branch may already have restarted a stopped stack service — on its last-applied config, not the branch's. Say that, keeping "no branch configuration is deployed" distinct from "no effect". And ScheduledJobFailed reads the last exit code, so it clears on the next successful converge (main and clean), not merely on return to main; point at the journal when it persists. Same qualification in the changelog entry. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ff-main-flapping # Conflicts: # docs/changelog.md
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.

What changed
Documentation only.
docs/runbooks/converge-the-host.md's When it refusesgains a
### The tree is on another branchsubsection, anddocs/changelog.mdrecords today's instance. Nothing in the running lab changes.
Why
The hourly converge only ever fast-forwards
main, so it refuses when itsdeployment checkout is left on a branch — and that checkout doubles as the tree
branches are authored from. So
ScheduledJobFailed{homelab_job=converge}flapswhenever branch work overlaps a converge window. It happened on 2026-11-24 (the
robotree onprometheussat ongerrrt/hicks-pool-leases, thengerrrt/close-morpheus-audit, across the 18:27 and 19:28 converges, which bothexited 2; the 20:27 run found
mainand cleared it). The runbook documentedevery other refusal but not this one; this fills the gap and records that the
refusal is benign (the branch check runs before any fetch, so nothing deploys)
and self-clears on the next converge that finds
main.Blast radius
Documentation only — no host, VLAN, or service behaviour changes.
secrets/*.sops.yamlVerification
make validatepasses — not run locally (it pulls ~38 GB of images;left to CI). Ran the docs-relevant subset instead:
scripts/check_docs.py— PASS (182 Prometheus + 28 Loki rules,8 dashboards, 156 panels, 14 assertions)
scripts/check_close_keywords.py— PASSscripts/lint.sh— yamllint, shellcheck, ruff, actionlint PASS;markdownlint, zizmor, packer, tofu, editorconfig SKIPPED (need a Docker
daemon); ansible-lint failed to run locally on a
uv --pip-argsincompatibility, unrelated to this docs change. CI runs the full set.
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code