Plan the runner's Guest Stack on every pull request (CP-42) #23
No reviewers
Labels
No labels
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-cockpit!23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/cp42-runner-plan-job"
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?
Until now the plan check planned only
semaphore/guest(143). A change torunner/guest(145) reachedmain, and so the deploy, without a plan anyone had judged. This adds the second job.Summary
guest-plan-checkalready takes its Stack fromPLAN_GUEST_DIRand its keys from the job's environment. The job and a workstation run the same line.infra-ci@pve!cockpit-planreads poolprod, and 145 has been a member since its first apply.docs/deploy.mdnow lists both contexts and the runner's secrets, and says the token reaches 143 and 145. The Makefile comment onPLAN_GUEST_DIRis updated to match.Evidence
make guest-plan-check PLAN_GUEST_DIR=<fresh copy of runner/guest>.secret/tofu-state/semaphore-runner/plan, andinfra-ci@pve!planstanding in for!cockpit-plan. It has the same ACL;!cockpit-plan's value exists only as the repository secret.-lock=false:--plan-failurelog in tofu's wrapped wording forproxmox_virtual_environment_container.semaphore_runnergives:make check→ exit 0:env tests: every case passed.,plan tests: every case passed.The package fixture still reportsskip, because the machine has nodpkg.mainonpull_request_target, so this PR's run still has the one old job.plan / runner-guest-plan-check (pull_request_target)first reports on the next PR after the merge.Merge Danger
Door: two-way.
The merge deploys, but nothing in it changes PROD. The deploy is
make prod(snapshot guest service verify): it plans and applies the server's Stack only, then runs the service layer, both no-ops on an unchanged tree.runner/guestisn't inmake prodyet; that's separate CP-42 work. Reverting removes the job.Blast Radius: CI only.
The new context isn't required yet.
main's protection listspr-checks / check (pull_request)andplan / guest-plan-check (pull_request_target), and the new context can only be added after a run has published it.Review started (round 1/5) on
940daebaa1— reading the diff now.repo: olympus/infra-cockpit · PR #23 · head
940daebaa1· round 1/5 · verdict: merge (0 BLOCKER, 2 ADVISORY)Recommendation: merge
Round: the thread had no earlier review, so this is 1 of 5 (the dispatch also said 1/5). Fixed point:
origin/main1f07290, the PR's merge base; the delta is the single commit940daeb(3 files, +47/−12).Spec source: the PR body, read against ticket CP-42 (Vikunja project 11, task 270). The ticket's acceptance criteria are about the runner's registration and the deploy; this PR does not claim them. The part of CP-42 it answers is the ticket comment listing "a plan key … and a PVEAuditor token on 145, for the PR's plan check". Nothing here claims to close CP-42, and I checked it against the claims it does make.
Standards source:
AGENTS.md§Toolchain, §Docs, §Pull requests;docs/deploy.md; workshop ADR-0006, ADR-0011, ADR-0012 (read fromorigin/main). The repo has nodocs/adr/of its own.Spec
The PR's claims, each checked:
guest-plan-check(Makefile:336-348) takes its Stack fromPLAN_GUEST_DIRand its keys from the environment..forgejo/workflows/plan.yml:58runner-guest-plan-checkhas noneeds:.infra-silosilo/store/semaphore-runner-plan-state-policy.jsonis onmain, readsprod/semaphore-runner.tfstate, and writes only the.tflock. The key is declared insilo/store/variables.tf:84. The PR's secret names match the docs. Whether the repo secrets exist is unverified; see A1.make checkexits 0env tests,install-reinstall,plan tests: every case passed.,tofu fmt -checkclean, rc=0.--plan-failurelog in tofu's wrapped wording, withsemaphore_runner's address, givesFAIL proxmox_virtual_environment_container.semaphore_runner would be destroyed or replaced; prevent_destroy refused the plan, rc=1.runner/guestis not inPROD_STEPS(Makefile:56).plan / runner-guest-plan-checkfirst reports on the next PR after the mergepull_request_target, so the workflow comes frommain. The PR says so itself.No spec-axis BLOCKER.
A1 · ADVISORY ·
docs/deploy.md:47-48,.forgejo/workflows/plan.yml:73-76. The job's two live inputs are unproven before merge.COCKPIT_RUNNER_PLAN_STATE_*must exist as repository secrets. The PR body never says they were created.PROXMOX_VE_PLAN_API_TOKEN(!cockpit-plan) reading 145 rests on a stand-in tokeninfra-ci@pve!planthat "has the same ACL". The body discloses this itself.require_plan_credentials(Makefile:101-110) turns the job red on every PR after the merge. That context is not yet required, so nothing is blocked, but it would be red noise until fixed.Standards
A2 · ADVISORY ·
docs/environment.md:51-52. The PR updatesdocs/deploy.mdand misses the sentence that says the same thing aboutplan.yml. It reads "One job holds credentials and no.envat all: the pull request's plan check,.forgejo/workflows/plan.yml. Its plan-only state key and its auditor token …". That workflow now has two jobs and two state keys. The page is not wrong about the kind of credential, only about the count. Standard:AGENTS.md§Docs listsdocs/environment.mdas where every environment name comes from.No standards-axis BLOCKER.
AGENTS.md§Pull requests: the title and body name CP-42.Named, not charged
pull_request_targetplans the PR's own HCL with PROD read credentials, and the runner job now holds a second state key under the same model. That is the existing design (plan.ymlheader, ADR-0011). Each key still reads one record.AGENTS.md§Secrets). I take the output as the author's, not as a check the repo runs.infra-secretsdocs/store-layout.mdlists the runner's…/deploypath and has no row forsecret/tofu-state/semaphore-runner/plan, whichdocs/deploy.md:47now cites. It is another repository's file and not in this diff.--plan-failurelog where tofu wraps so the address sits alone on its own line is judged red-but-unnamed. I tried it; it is fail-closed. At 76 columns the real runner line does not wrap there, so I dropped it.Summary
!cockpit-plan's reach on 145 are not proven before mergedocs/environment.md:51-52still describes one credentialled jobTwo advisories, zero blockers: the recommendation is merge. The volume rule (three or more advisories) is not reached.
Verified by hand: head resolved to
940daebviarefs/pull/23/head(twice, start and before posting); full diff read;make checkat the head, rc=0; the judge driven on the runner's address. Not verified: the live PROD plan, the repository secrets,!cockpit-plan's ACL.