ci: the reseed backstop is starved by runner-pool QUEUE saturation (not cancellation) — #976 fixed cancels, this is the capacity residual #980

Closed
opened 2026-08-29 09:50:55 +00:00 by matou-build-agent · 1 comment

Split out of #976 (which fixed the cancellation half of reseed starvation).

The residual

#976 landed option A: .forgejo/workflows/reseed-publish.yml publishes off the push path, so no push can cancel the run that mints the reseed pin. That is proven and working — this morning the served pin advanced past the 8 h 6bb6ff29 freeze and, once the queue drained, reached origin/main's tip autonomously.

But a second, distinct starvation surfaced tonight: runner-pool queue saturation. Three agent-affecting commits landed 07:55–08:24Z (d3b80d7c #973, 08e9bbcc #968, e1a8cdcb #964), yet nothing published until they drained in-order at 09:37→09:39→09:43Z — a ~1 h lag. Their ci publish jobs were not cancelled (each published its own sha, so each ran seam→publish to completion); they sat waiting in the FIFO queue. During that window the #600/#918 park ticket #978 filed and updated (09:28Z) — a #971-class re-file that #976's decoupling alone cannot stop, because its cause here is capacity, not cancellation.

Evidence

  • Registry idss-agent publish times: d9b30bd7 06:50:42Z → then nothing until d3b80d7c 09:37:56Z, 08e9bbcc 09:39:40Z, e1a8cdcb 09:43:41Z (three intermediate shas = three queued ci publishes draining, not the tip-only reseed rail).
  • x-idss-release reached e1a8cdcb at 09:49:46Z once the registry was current; oc_bootstrap_staleness now returns fresh.
  • Ben's own note on #976 (06:46Z): "~110 queued runs at 06:45Z … the workstation runner is capacity 1 (dropped from 2 on 2026-08-22, config.yml.bak-cap2) and FIFO-shared by idss/matou-app/dev-factory/matou-website crons … The workstation queue itself … is a separate capacity question for Ben — noted, not touched."
  • Forgejo API itself was intermittently returning empty under the same load this session — the saturation is real and current.

The shape of a fix (for Ben to choose)

  • restore the workstation runner to capacity 2 (revert the 2026-08-22 config.yml.bak-cap2 drop), or
  • redistribute the four repos' crons (resume-asks / healer / verify / triage) off the single shared capacity-1 slot, or
  • move more of the reseed-critical jobs to elitebook-03 (capacity 2, idle) as #976 already did for reseed-publish.yml.

Note: the reseed-publish.yml backstop does run on elitebook-03, but it publishes origin/main's tip only — during this window it did not close the gap ahead of the draining ci publishes (its per-tick outcome in the 08:33–09:33 window could not be inspected: the Forgejo Actions API was saturated). Whether the backstop needs to fire more aggressively, or elitebook-03 was itself briefly starved, folds into the capacity question.

Why human

Reversing the deliberate 2026-08-22 capacity-2→1 drop, or re-sharding four repos' host crons, is a runner/host-capacity decision Ben explicitly reserved on #976 ("a separate capacity question for Ben"). A session should not re-widen a capacity a human deliberately narrowed without knowing what the drop was protecting against, nor re-shard other repos' schedules from inside this repo's session. Ben's hands on the runner config.

Filed by agent under ADR 0174 (two-way-door discipline) as the honest follow-up residue of #976.

Split out of #976 (which fixed the *cancellation* half of reseed starvation). ## The residual #976 landed option A: `.forgejo/workflows/reseed-publish.yml` publishes off the push path, so **no push can cancel** the run that mints the reseed pin. That is proven and working — this morning the served pin advanced past the 8 h `6bb6ff29` freeze and, once the queue drained, reached `origin/main`'s tip autonomously. But a **second, distinct** starvation surfaced tonight: **runner-pool queue saturation**. Three agent-affecting commits landed 07:55–08:24Z (`d3b80d7c` #973, `08e9bbcc` #968, `e1a8cdcb` #964), yet nothing published until they **drained in-order** at 09:37→09:39→09:43Z — a ~1 h lag. Their `ci` `publish` jobs were **not cancelled** (each published its own sha, so each ran seam→publish to completion); they sat **`waiting`** in the FIFO queue. During that window the #600/#918 park ticket #978 filed and updated (09:28Z) — a #971-class re-file that #976's decoupling alone cannot stop, because its cause here is capacity, not cancellation. ## Evidence - Registry `idss-agent` publish times: `d9b30bd7` 06:50:42Z → then nothing until `d3b80d7c` 09:37:56Z, `08e9bbcc` 09:39:40Z, `e1a8cdcb` 09:43:41Z (three intermediate shas = three queued `ci` publishes draining, not the tip-only reseed rail). - `x-idss-release` reached `e1a8cdcb` at 09:49:46Z once the registry was current; `oc_bootstrap_staleness` now returns **fresh**. - Ben's own note on #976 (06:46Z): "~110 queued runs at 06:45Z … the workstation runner is **capacity 1** (dropped from 2 on 2026-08-22, `config.yml.bak-cap2`) and FIFO-shared by idss/matou-app/dev-factory/matou-website crons … The workstation queue itself … is a separate capacity question for Ben — noted, not touched." - Forgejo API itself was intermittently returning empty under the same load this session — the saturation is real and current. ## The shape of a fix (for Ben to choose) - restore the workstation runner to capacity 2 (revert the 2026-08-22 `config.yml.bak-cap2` drop), **or** - redistribute the four repos' crons (resume-asks / healer / verify / triage) off the single shared capacity-1 slot, **or** - move more of the reseed-critical jobs to `elitebook-03` (capacity 2, idle) as #976 already did for `reseed-publish.yml`. Note: the `reseed-publish.yml` backstop *does* run on `elitebook-03`, but it publishes `origin/main`'s tip only — during this window it did not close the gap ahead of the draining `ci` publishes (its per-tick outcome in the 08:33–09:33 window could not be inspected: the Forgejo Actions API was saturated). Whether the backstop needs to fire more aggressively, or `elitebook-03` was itself briefly starved, folds into the capacity question. ## Why human Reversing the **deliberate** 2026-08-22 capacity-2→1 drop, or re-sharding four repos' host crons, is a runner/host-capacity decision Ben **explicitly reserved on #976** ("a separate capacity question for Ben"). A session should not re-widen a capacity a human deliberately narrowed without knowing what the drop was protecting against, nor re-shard other repos' schedules from inside this repo's session. Ben's hands on the runner config. Filed by agent under ADR 0174 (two-way-door discipline) as the honest follow-up residue of #976.
Owner

Ruled by Ben, landed same sitting (2026-08-29)

Ben's ruling: restore workstation capacity 2 AND make the queue-prone jobs float to the next free slot on either machine.

Why they never floated: both runners advertise a shared swarm:host label (host-mode on each), but ci.yml's seam/publish/publish-broker were pinned runs-on: matou-workstation by hostname — a pinned label only that one runner ever claims, and Forgejo runs-on has no OR semantics. The floating pool existed; the jobs just didn't use it.

Landed:

  1. b3d6f8d8 — ci.yml seam/publish/publish-broker → runs-on: swarm, so they take the next free slot on either machine. deploy-broker stays pinned elitebook-03 (the one admin-mesh peer; broker-deploy-trigger-test guards this — 9 checks green).
  2. Workstation runner capacity 1 → 2 (reverting the 2026-08-22 drop, per config.yml.bak-cap2) — applied on the host after the in-flight seam run drained, forgejo-runner.service restarted and active.

Combined worst-case pool for a ci publish is now 4 slots (2+2) instead of 1. The reseed backstop (reseed-publish.yml on elitebook-03) stays as the off-push-path safety net.

## Ruled by Ben, landed same sitting (2026-08-29) Ben's ruling: **restore workstation capacity 2 AND make the queue-prone jobs float to the next free slot on either machine.** Why they never floated: both runners advertise a shared `swarm:host` label (host-mode on each), but ci.yml's `seam`/`publish`/`publish-broker` were pinned `runs-on: matou-workstation` by hostname — a pinned label only that one runner ever claims, and Forgejo `runs-on` has no OR semantics. The floating pool existed; the jobs just didn't use it. Landed: 1. **`b3d6f8d8`** — ci.yml `seam`/`publish`/`publish-broker` → `runs-on: swarm`, so they take the next free slot on either machine. `deploy-broker` stays pinned `elitebook-03` (the one admin-mesh peer; broker-deploy-trigger-test guards this — 9 checks green). 2. **Workstation runner capacity 1 → 2** (reverting the 2026-08-22 drop, per `config.yml.bak-cap2`) — applied on the host after the in-flight seam run drained, `forgejo-runner.service` restarted and active. Combined worst-case pool for a ci publish is now 4 slots (2+2) instead of 1. The reseed backstop (`reseed-publish.yml` on elitebook-03) stays as the off-push-path safety net.
ben closed this issue 2026-08-30 00:04:48 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#980
No description provided.