Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ docstring gives: it is a record, not a claim about now.

## 2026-11-24

- **The hourly converge flaps `ScheduledJobFailed` when the deployment
checkout is left on a branch, and `converge-the-host.md` now says so.**
`prometheus`'s `robo` tree is both the host's deployment checkout and the
tree branches are authored from, and `make converge` fast-forwards `main`
only — so a converge that fires mid-branch refuses at the branch check,
before any fetch, and its `ScheduledJobFailed` fires with it. Seen today: the
tree sat on `gerrrt/hicks-pool-leases`, then `gerrrt/close-morpheus-audit`,
across the 18:27 and 19:28 converges, which both exited 2.
`ScheduledJobFailed` reads the last exit code, so it clears only on a
*successful* converge — the tree on `main` and clean; the 20:27 run was the
first to find it so, and cleared it. No branch configuration reached a
service (the branch check precedes the fetch), though `revive_stopped` runs
before that check, so a refused run can still restart a stopped stack
service. *When it refuses* gains a subsection with the detail, and the
`git worktree` that keeps the checkout on `main` and the timer quiet.

- **NUT on `morpheus` had no stall spell in the 18 h 20 min after the
driver's retry change.** This updates the entry "The audit of `morpheus` of
2026-11-13 is closed", which recorded 16 h 42 min. Read in Loki at 20:56
Expand Down
38 changes: 38 additions & 0 deletions docs/runbooks/converge-the-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,44 @@ To keep it, get it into the repository the normal way — a branch, a pull
request, CI. To discard it, `git checkout -- .` in that directory, and delete
any untracked files the status listed.

### The tree is on another branch

```text
error: the deployment checkout is on 'gerrrt/some-work', not main.
Convergence only ever fast-forwards main. Someone left this checkout
somewhere else; put it back deliberately rather than letting a timer do it:
git -C /home/robo/code/Gerrrt/HomeLab switch main
```

This one recurs, because the deployment checkout is also the tree people author
from — `prometheus`'s `robo` tree moves through dozens of branches in a working
day — and the hourly timer does not wait for that work to finish. Convergence
only ever fast-forwards `main`, so a converge that fires while a branch is
checked out refuses exactly as above, and its `ScheduledJobFailed` fires with
it.

No branch configuration is deployed — the branch check runs before any fetch or
`make up`. That is not the same as no effect: `revive_stopped` runs earlier in
the same pass, so a converge that then refuses may already have restarted a
stopped stack service, brought back on its last-applied configuration rather
than the branch's (see *When a service is stopped*). What the gate prevents,
every time, is shipping a half-finished branch.

`ScheduledJobFailed` reads the job's last exit code, so it clears on the next
*successful* converge — the checkout on `main` **and** clean, since uncommitted
edits carried across the switch are their own refusal. Put the tree back with
the `git switch` the error prints; if the alert outlives a run that should have
passed, the journal says what the last one refused on:

```bash
journalctl -u 'homelab-converge*' -n 20 --no-pager | grep homelab-deploy
```

While branch work is in flight the converge refuses on every run it overlaps,
so `ScheduledJobFailed` flaps for as long as the tree is left off `main` —
benign, but noisy. Authoring from a `git worktree` keeps the deployment
checkout on `main` while the work goes on, and the timer stays quiet.

### The tip did not verify

```text
Expand Down