The forge runner runs two jobs at a time (FO-66) #94
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-forge!94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/FO-66-the-forge-runner-runs-two-jobs-at-a-time"
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?
Implements FO-66
Summary
The runner's slot count, and the memory the second slot needs:
A Semaphore deploy job polls its task for up to 35 minutes. At one slot it held 146's only slot, so every plan check queued behind it; at two, the plan check runs beside it. The Guest is the same vmid on the same 2 cores and 512 MB of swap —
memorychanges in place, so no replacement is planned.The config the daemon reads is rendered from the role's defaults, so the value moves where it lives, and the comments beside it say why two rather than one.
docs/actions/runner-and-workflows.mdfollows the artifact: capacity 2, 4096 MB, and what that means for the check queue. ADR 0009's "2 GB" stays as it is — it records the Guest as first built.Evidence
runner_capacity: 1, and the Stack declaredmemory = 2048.After: the template renders
capacity: 2, and the Stack evaluates to 4096 MB — both read offline, with no store and no secret:mise exec -- make check→ exit 0: env-check's pin and 19 map names agree,tofu fmt -checkclean, docs-check's five assertions hold (51 links, 20 fragments, 9 ADR rows, the section indexes, 21 wiki documents).mise exec -- make validate→ exit 0:Success! The configuration is valid.for all three Stacks.mise exec -- make syntax-check→ exit 0: both playbooks parse.Not verified here, because it needs PROD: the Guest's memory reading 4096 MB, two jobs overlapping on 146, and no job killed for memory while both run. The apply is the Operator's while this repository is still deployed by hand —
make runner-guest, thenmake runner-service— as the ticket says.Merge Danger
Door: two-way — both values are configuration,
memorychanges in place, and a revert is a revert pull request.Blast Radius: narrow — Guest 146 and the job queue on it.
Merging does not deploy: infra-forge is still deployed by hand, so nothing changes on 146 until the Operator runs the two Targets.
Review started (round 1/5) on
d9a3d0227e— reading the diff now.repo=olympus/infra-forge pr=94 head=d9a3d0227eac986bff072287a9e1f31b8aa117e0 round=1/5 verdict=mergeRecommendation: merge
Spec: FO-66 (Vikunja task 322), fetched from the tracker linked in the description. Four files, one commit (
d9a3d02), branch base19e3563= currentorigin/main.Standards — 1 finding (0 blockers, 1 advisory)
runner/service/roles/runner/defaults/main.yml:27-30andrunner/service/roles/runner/templates/runner.yaml.j2:14-15AGENTS.md§Code comments: "Keep comments to a minimum… When something genuinely needs more explanation than the code can carry, propose a docs page underdocs/instead of writing it as a comment." The 35-minute rationale is now written three times: a 4-line comment in the defaults, a 2-line comment in the template, and twice on the docs page (docs/actions/runner-and-workflows.md:14-20,:180-182). The diff is net +2 comment lines while also doing the docs-page work the rule asks for. Smallest fix: leave one line at each code site — or a pointer to the page — and let the page keep the why. Advisory, not a blocker: the rule is a preference, the role's files are already comment-heavy by their own convention, and no tooling enforces it.Also read and passed with no finding: the changed docs page's claims against the code (
2/4096 MB), ADR 0009 left at2 GB(docs/adr/0009-…:10-11) — consistent withdocs/adr/index.md's supersede-don't-edit rule, and ADR 0009's own Update when does not name sizing, so a resized Guest does not oblige a new record; the page states the current figure and whose number the ADR's is. No secret, no state, no new address in the diff.Spec — 0 findings
capacity1 → 2 in the runner role's configuration (FO-66 §What to build)defaults/main.yml:31; the template renderscapacity: 2(reproduced).runner/guest(same §)variables.tf:31;var.guest.memoryevaluates 4096 (reproduced).make runner-guestthenmake runner-service, by the Operator (same §)runner.yamlreadscapacity: 2No scope creep: the fourth file is mandated by the actions page's own Update when ("the runner's configuration … changes"), and
docs/actions/index.md:8needed no edit because its row does not carry the figure.Verified by hand
mise exec -- make checkmise exec -- make validateSuccess! The configuration is valid.for all three Stacksmise exec -- make syntax-checkrunner.yaml.j2rendered through the role's defaults +group_vars/runner/vars.ymlcapacity: 2,timeout: 1h(token redacted)tofu consoleon a backend-less copy ofrunner/guestvar.guest.memory→4096,swap→512,vmid→146grepfor every reader ofrunner_capacity/ every remaining2048defaults/main.ymlsets it and only the template reads it; the two2048s left are the forge and PRE Guests' own defaultsNote for anyone re-running this:
syntax-checkfails in a fresh checkout untilmake depsinstalls the collections intoforgejo/service/collections(theansible.cfgthere pinscollections_path). That is the toolchain rule inAGENTS.md, not the change — green aftermake deps.Could not verify
docs/agents/workflow.md§3 forbids it here. There is also no PRE runner to rehearse on:runner/service/inventories/holdsprodonly.memorychanges in place, so no replacement is planned" (PR body) — the runner Stack has no plan job (docs/runbooks/0001-deploy-and-rollback.md, The plan check), so nothing in CI plans this Stack and I could not produce a plan without the state key. What bounds the risk:runner/guest/container.tf:57keepsprevent_destroy, so a replacement would refuse rather than destroy, andmake runner-guestprints the plan before the word. Read as provider knowledge, not evidence.capacity: 2—roles/runner/tasks/main.ymlnotifiesrestart forgejo-runneron the template task (line ~106) and flushes handlers before the reachability wait, somake runner-servicedoes restart it; the restart itself needs PROD.Summary
AGENTS.md§Code comments).docs/actions/runner-and-workflows.md,runner/guest/variables.tf,runner/service/roles/runner/defaults/main.yml,runner/service/roles/runner/templates/runner.yaml.j2.