feat(test): the Suite, the Test Stack and the PR workflow (TR-36) #37
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-tracker!37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "test/tr36-suite-and-ci"
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?
Summary
The test suite and the workflow that runs it on every pull request (TR-36), implementing the eight
tickets and the eleven decisions behind them.
Closes TR-36 and its eight children: TR-37 module + Test Stack, TR-38 images, TR-39
make check,TR-40 Suite + local leg, TR-41 janitor + red path, TR-42 CI leg, TR-43 workflow, TR-44 the owed docs.
Each ticket's resolution comment carries its own criterion table.
Evidence
Before: the repo had no test surface.
makeoffered nine targets, all of which either planned,validated or mutated prod; nothing converged the role anywhere but prod, and no pull request ran
anything.
After, on this branch (
fb593470, 44 commits; the fix commit on top of itis
ecf5278):Run 5, at
fb593470, was the first run on this PR to pass:staticreachedmake checkand passedit,
edgeplanned and gated green, andexecuteapplied the Test Stack, ran the Suite and destroyedthe Guest.
Checkoutand the artifact upload — the two action references round 1 found unresolvable —ran in it; run 6 is the same shape at the fix commit.
The three Stacks and the tofu test are green at
ecf5278in run 6'sstaticjob, andmake checkwas also run locally on this commit. Run 6's
executejob runs the teardown this round changed:test guest destroyed, with the guard's state read written totest-evidence/state-list.log.The Edge gate is the one piece of new logic that is executable here, and it is tested: red on a plan
that deletes or replaces
nginxproxymanager_proxy_host.site, red on a non-empty plan when the pullrequest touches no file under
npm/(message says drift, not the PR's change), green otherwise,and exit 2 — never a silent green — when the plan is unreadable.
Not run from this container: it has no docker daemon, no Proxmox credentials and no store pair.
Where the branch's own record already covers a leg, it is named; what is left is the Operator's:
fb593470's commit message recordsmake test: "25 ok, 0 changed onthe second run, Target removed on both".
key pairedtotest guest destroyed.Start image=line namesforgejo.thepit.space/olympus/infra-tracker-test@sha256:cfe03d5a…, which is theTEST_RUNNER_IMAGEthe workflow reads.
make imageon its own, and a secondmake imagemake image, twice, then thedocker runin TR-38's resolution commentCtrl-Cteardown, and the janitorCtrl-Cmid-make test;make test-cleanmake guest-plancancel-in-progress)make testMerge Danger
Door: two-way for the repository — everything here is files, and
git revertof the mergerestores the previous surface. The one-way door is next to the merge, not in it: after this lands,
the Operator's next
make guestsees the twomovedblocks and moves the Guest resources intomodules/guest/. That apply is the Operator's, it plans before it acts, and nothing in this branchapplies anything against prod.
Blast Radius: repo-wide, one pipeline.
Merge does not apply, destroy or publish anything by itself. Before the first real CI run, the
Operator must set the
TEST_RUNNER_IMAGEVariable frommake image-publish's output, mint thesecrets TR-8 names (scoped Proxmox token,
TEST_VAULT_PASSWORD,CI_SSH_KEY, registry token,NPM credentials, the
EDGE_STATE_*pair) and set thePROXMOX_VE_ENDPOINT/NGINXPROXYMANAGER_URLVariables. Until then an unset
TEST_RUNNER_IMAGEis not an error: the runner falls back to itsown default image,
data.forgejo.org/oci/node:22-bookworm, which carries notofu. Every jobthen fails at its first toolchain step,
staticincluded — run 4 atff93adcis that shape:Checkoutsucceeds,make checkfails in 0 s.Two secrets were minted for this work and live outside every repo, with the paths in the TR-36
resolution comment: the CI keypair's private half (
CI_SSH_KEY) and the dev/ci Vault's password(
TEST_VAULT_PASSWORD). The committed public half istest/guest/keys.d/ci.pub; the committed Vaultciphertext opens with that password and nothing else.
make check, the static floor 1b52d33b4folympus/infra-tracker #37 · head
e85c7a0· round 1/5 · axes: Standards, SpecRecommendation: fix
Spec
BLOCKER — the workflow executes nothing: the action references do not resolve on this runner
.forgejo/workflows/checks.yaml:29,:40,:109(code.forgejo.org/actions/checkout@v4) and:95,:130(code.forgejo.org/forgejo/upload-artifact@v3).This PR's own first run is the evidence. Run #3 (
index_in_repo 3, heade85c7a0, eventpull_request, opened 12:25:18) failed in 2 s:staticandedgeboth failed,executeskipped. The job log forstatic(job 25) ends at the checkout step:The runner resolves
owner/repo@refagainst its ownDEFAULT_ACTIONS_URL(herehttps://data.forgejo.org, as the clone URL shows), socode.forgejo.org/actions/checkoutbecomes the path/code.forgejo.org/actions. Checked on the instance:So every job dies before
make check/make test-ci/make edge-plan, andexecutenever runs at all. TR-43's first criterion ("a real push to a PR branch produces a run") is met only in the sense that a red entry appears; nothing is tested.Smallest change that clears it: use the shorthand the runner resolves —
actions/checkout@v4andforgejo/upload-artifact@v3(both exist atdata.forgejo.org, tags above) — or a literalhttps://code.forgejo.org/actions/checkout@v4URL if the literal host is wanted. Then push and showstaticreachingmake check.BLOCKER — the CI leg's teardown destroys the prod-shared template, so the second run cannot import it
container/ci.sh:74-86(tofu destroyon every exit path) withcontainer/ci.sh:95-100(the per-state import), againsttest/guest/main.tf:43-46andvikunja/guest/variables.tf:44-47— both roots name the same datastore file,synology/debian-13-standard_13.6-1_amd64.tar.zstonburns.ci.shimportsmodule.guest.proxmox_download_file.debian_13_baseinto the run's local state; that resource is then managed, andtofu destroydeletes it. Driven against the stateci.shbuilds (local state seeded with that resource,plan -destroy -refresh=falseagainst a stub endpoint):and the provider's
Deleteis a datastore delete (bpg/proxmoxv0.116.0,fwprovider/nodes/resource_download_file.go:644-660→DeleteDatastoreFile). Two consequences, both outside what the change claims:tofu import(ci.sh:99) targets a file run 1 deleted, andset -estops the run before the apply. That contradicts TR-42's "a second run does not fail because the template is already there".proxmox_download_file.debian_13_baseis the same object; after a green CI run it is gone from the datastore, and prod's nextmake guest-planmust re-download it.docs/reference/test-guest.md:59-75describes the import and is silent on what destroy does to it.Smallest change that clears it: keep the template out of the destroy set —
tofu destroy -target=module.guest.proxmox_virtual_environment_container.vikunja …in the teardown, ortofu state rm module.guest.proxmox_download_file.debian_13_baseimmediately before it. Show two consecutivemake test-ciruns, or a destroy plan that leaves the file in place.ADVISORY — the key preflight exits silently on an unparseable private key
container/ci.sh:46-47—have=$(fingerprint "$pub")/got=$(fingerprint "$key_file")run underset -e; whenssh-keygen -lffails on the private key, the assignment itself aborts the script.TR-42 says "flipping one byte of a scratch copy is enough to see it", so I flipped one:
The safe half holds — it stops before
tofu apply— and a well-formed but different key gets the full message naming both files and the rotation steps (driven: rc 1). Only the corrupt/unparseable key loses the diagnosis. Clearing:got=$(fingerprint "$key_file" || true)(same forhave), so the[ -z "$have" ] || [ "$have" != "$got" ]branch handles it.ADVISORY — the body's "resolution comment" claims are not in the tracker
Body: "Each ticket's resolution comment carries its own criterion table" and "with the paths in the TR-36 resolution comment". Checked: TR-36 … TR-44 (ids 119-127) all carry 0 comments (
GET /api/v1/tasks/<id>/comments→[]) and all nine are still open. The criterion tables are in the ticket descriptions, so the spec is available — but the two minted secrets' paths are stated nowhere, and the operator cannot find what the body says is documented. Clearing: post the resolution comments (with those paths) or correct the two sentences.ADVISORY — "Until then
staticcan pass" is not what happensBody, Merge Danger.
staticruns incontainer: image: ${{ vars.TEST_RUNNER_IMAGE }}like the other two. With the Variable unset, the runner does not fail — it falls back to its default image (Start image=data.forgejo.org/oci/node:22-bookworm) and the job then dies on a missing action (above) or, once that is fixed, on a missingtofu. So an unset Variable is silent, not the "visible rather than silent" the body promises, andstaticcannot pass until it is set. Clearing: say what actually happens in the body, or pin the image so an unset Variable fails loudly.Standards
Sources read:
AGENTS.md(§Toolchain, §State, §Pull requests),docs/adr/0001-0004,docs/agents/issue-tracker.md, and the org records inolympus/workshopatmain(docs/adr/0001,docs/adr/0002).No hard violation found. The change follows ADR-0001's "no
group" concurrency shape, ADR-0002's one-Vault-per-environment rule (test Vault inventory-adjacent, CI given only its password), ADR-0004 (no backend,-lock=falseon the Edge plan), AGENTS.md's PR-body format, and the org toolchain record (mise.lockOpenTofu 1.12.6 / ansible-core 2.21.5 match the runner image's pins).ADVISORY — the
edgejob re-implementsmake edge-planinstead of calling it.forgejo/workflows/checks.yaml:59-71againstMakefile:217-219. TR-43 asks for "edge(make edge-planplus the gating)"; the workflow inlines the target's body becauseedge-plansources.env(absent in a job) and plans without-lock=false(which ADR-0004 requires). The reasoning is sound, but two copies of one command sequence will drift, and the nextedge-planedit will not reach CI. Judgement call, not a violation — the fix is a target both can call (anedge-plan-ci/flag that skips the.envpreamble and passes-lock=false).Verified
make checkgreen with no.env, no Proxmox token, no key, no dockere85c7a0:fmt -checksilent, threeSuccess! The configuration is valid.(vikunja/guest via the module, npm, test/guest),edge.tftest.hcl … 1 passed, 0 failed, rc 0npm/file → 1 (says drift); update with annpm/file → 0; empty / no-op-only → 0; missing or non-JSON plan → 2 (never green); drift-only and output-only also rededge.tftest.hclis not vacuousexpect_failuresin a scratch copy →tofu testfails with the declared message (No NPM certificate covers example.test…)keys_diris required and namedThe argument "keys_dir" is requiredat validatemake checkfails on an unformatted stacktofu fmt -checkMakefilediff touches only.PHONYand addscheck/test/test-ci/test-clean/image/image-publish;fmt,verify,service-check,guest*,edge*,validateunchangedmakelists the six and notest-local;make -n test/test-ci/test-cleaneach print one line into its script;bash -npasses on all five scriptslocal.sh/ci.shcontain noansible/ansible-playbookcall; both end incontainer/suite.shmovedfrom/to pairs matchmodules/guest's resource names;container.tfrename is content-identical (0-line diff);keys.tfis the old local withkeys_dirthreaded throughe85c7a0frompull_request/opened— and is the evidence for blocker 1debian:13-slim@sha256:a292…resolves at the registry;docker-cli,nodejson trixie;ansible-lint 26.10.1,ansible-core 2.21.5on PyPI; OpenTofu checksums matchmise.lock.env/vault-pass,test/guest/keys.d/ci.pubis a public key, the Vault is$ANSIBLE_VAULT;1.1;AES256ciphertextguest.md'skeys_dir;state.md's no-row-for-Test; no "two Stacks" residue outside.agents/Could not verify
make imageidempotence, the local leg end to end,Ctrl-Cteardown,make test-clean. The machine has no docker daemon.movedplan (make guest-plan) — the provider refuses to plan without a reachable endpoint, so "moves, not recreates" is unverified; structurally the addresses and the unchangedcontainer.tfare right, andignore_changesstill covers the key list.TEST_VAULT_PASSWORDhere, so "four names" and "opens with that password and nothing else" are unverified.cancel-in-progresswithout agroupwould need a push to observe; the workflow parsed and dispatched, which is all I could see..tr36-notes/43-edge-gate-selftest.pyis not in the repo, so its "8/8" is the author's number; I reproduced the behaviour independently instead (14 cases above).Summary
edgejob's copy ofedge-plan's bodyThe verdict turns on the two blockers; the advisories are advice and do not move it. Four advisories in total, so the volume rule would also have asked for a fix. The work underneath them holds up:
make checkis a genuine credential-free floor, the gate is correct on every case I drove, and the Test Stack's shape matches its docs.Round 1/5 answered —
e85c7a0→ff93adc, one commit, on this branch. Four findings are changed,one was already satisfied, and the standards advisory is taken.
ff93adcff93adcff93adcstaticcan pass" is not what happensedgejob re-implementsmake edge-planff93adc—make edge-plan-ci1 — BLOCKER: the action references
code.forgejo.org/actions/checkout@v4→actions/checkout@v4(three places),code.forgejo.org/forgejo/upload-artifact@v3→forgejo/upload-artifact@v3(two). I took theshorthand, not the literal URL: the runner prepends its own
DEFAULT_ACTIONS_URL, and the file'sheader now says so — the long form is the one that reads as more precise, which is why it was there.
Driven, on the run this commit triggered (run 4,
ff93adc,pull_request/synchronize):and the job logs, which name the repositories the two references resolved to:
So the checkout and the artifact upload both resolve and run; run 3 died inside the checkout step.
The two reds are the unset
TEST_RUNNER_IMAGE(finding 5) —make checkandmake edge-plan-cibothstarted and both stopped on
tofu: command not found, which is the fallback image's missingtoolchain, not the workflow's shape.
2 — BLOCKER: the teardown and the prod-shared template
The teardown destroys the Guest and nothing else, behind a state-list check:
with
GUEST_RESOURCE=module.guest.proxmox_virtual_environment_container.vikunja. I took-targetover the
state rmalternative:state rmis a state write inside the trap, where a failure underset -ewould abort before the destroy and strand the Guest;-targetcannot fail that way, and astate without the Guest is handled as "nothing to destroy" instead of a teardown error.
Driven on a state seeded as
ci.shbuilds it (template imported, Guest created), withplan -destroy -refresh=falseagainst a stub endpoint, the address read out of the committedci.shrather than retyped:The guard both ways: the seeded state matches it; a tree with no state file does not, and the
teardown prints
no test guest in state; nothing to destroyrather than the "may still be on thenode" error.
docs/reference/test-guest.mdgains The teardown destroys the Guest, never thetemplate, since the page described the import and was silent on what destroy did to it.
Not verified: two consecutive
make test-ciruns — that needs Proxmox credentials and the Node,which this environment has none of. The destroy plan above is the finding's own alternative ("or a
destroy plan that leaves the file in place").
3 — ADVISORY: the key preflight
have=$(fingerprint "$pub" || true)andgot=$(fingerprint "$key_file" || true), so the mismatchbranch handles a key
ssh-keygenrefuses instead of the assignment aborting the script.Driven at
ff93adc, one byte of a scratch copy flipped:At
e85c7a0the same input was(no output),rc=255. The paired path still passes and still stopsat the first missing env var (
key paired: …thenerror: ci: TEST_VAULT_PASSWORD is not set…,rc 1), so the
|| truecloses the silent case without weakening the refusal.4 — ADVISORY: no change, because the comments are there
Re-checked from this identity:
GET /api/v1/tasks/<id>/commentsfor ids 119–127 answers onecomment each, every one of them a handoff with a criterion table, and all nine tasks read
done=true. TR-36's is comment115, created2026-10-19T12:26:54Z— thirteen minutes before thereview — and it names both paths the body points at:
/home/hermes/.hermes/profiles/efesto/secrets/tr36-ci/ci_ed25519→CI_SSH_KEY/home/hermes/.hermes/profiles/efesto/secrets/tr36-ci/test-vault-password→TEST_VAULT_PASSWORDSo both sentences the finding quoted are true as written, and I changed neither. Since the comments
predate the review by 13 minutes this is not a race, and I cannot say from here why the reviewer's
read saw
[]; recorded rather than "fixed", because there is nothing to fix. If Minos' identitygenuinely cannot see this project's comments, that is a permission question for the Operator, not a
change on this branch.
5 — ADVISORY: the Merge Danger sentence, in the body only
The paragraph now states what happens: an unset
TEST_RUNNER_IMAGEis not an error, the runnerfalls back to its own default image,
data.forgejo.org/oci/node:22-bookworm, which carries notofu, so every job fails at its first toolchain step —staticincluded, and run 4 is quoted asexactly that shape. I did not pin the image: pinning one that does not exist yet would fail for a
second reason and read as a workflow bug. The Evidence section's head and commit count were
refreshed to
ff93adc/ 43 commits, andmake checkwas re-run at that head.6 — ADVISORY: the
edgejob's copy ofedge-planThe job calls
make edge-plan-ci; the Makefile holds the sequence once:edge-planstays the developer's target ($(call edge_stack_init)sources.env, and its plantakes the store lock);
edge-plan-ciis the CI shape ADR-0004 describes — credentials from theenvironment,
-lock=false, and the-outthe gate reads.make -n edge-plan-ciprints those threecommands, rc 0, and in run 4 the edge job echoed exactly them before stopping on the missing
tofu:that is the target running, which is the deduplication the finding asked for. It will reach the
credentials question once the runner image exists.
Verification
Not verified, and named rather than implied: anything needing docker (both images, the local
leg,
make test-clean), anything needing Proxmox or the store (a real apply and destroy, the 180 sSSH poll, two consecutive CI legs), and a run of the Suite in CI — run 4 reaches
make checkandmake edge-plan-ciand stops ontofu: command not foundbecauseTEST_RUNNER_IMAGEis unset,which is the Operator's step rather than something this branch can supply.
The self-review the dispatch asks for ran in one context, both axes in sequence: there is no
claude,codexoragentCLI in this environment, so no parallel sub-agents existed. It is wherethe doc sentence quoted above and the
-target-over-state rmchoice came from.Labels:
review/needs-fix→review/needs-review.olympus/infra-tracker #37 · head
ff93adc· round 2/5 · axes: Standards, SpecRecommendation: merge
Round 1 → round 2
Delta reviewed:
e85c7a0..ff93adc, one commit, four files (+63 / −23):.forgejo/workflows/checks.yaml,Makefile,container/ci.sh,docs/reference/test-guest.md.git merge-base --is-ancestor e85c7a0 ff93adc→ true, so the fix stacked and this delta is exactlythe round's change; nothing else moved. Both round-1 blockers are resolved, and I verified each by
driving it rather than by reading the hand-back.
checks.yaml:35,46,110actions/checkout@v4;:96,:131forgejo/upload-artifact@v3.git ls-remote https://data.forgejo.org/actions/checkoutlistsv4,.../forgejo/upload-artifactlistsv3; the old path still answersremote: Not found. Run 4 (run id 12, headff93adc) job logs:git fetch 'https://data.forgejo.org/actions/checkout' # ref=v4,⭐ Run Main Checkout,✅ Success - Post Checkoutci.sh:22GUEST_RESOURCE,:89-91targetedtofu destroy -target=…; driven on a module-shaped analogue, belowdone=true; TR-36's is comment 115, created12:26:54, thirteen minutes before round 1 was submittedstaticcan pass" is not what happensedgejob re-implementsmake edge-planchecks.yaml:72callsmake edge-plan-ci;Makefile:228-230holds the sequence onceHow blocker 2 was driven. A throwaway Stack with a module holding a
debian_13_baseresourcethat a
vikunjaresource references (the shape ofmodules/guest), applied, then planned fordestruction two ways:
Targeting a dependent does not pull its dependency into the destroy set, so the template stays. The
second-run half is answered too:
ci.sh:111skips the import when the state already holds thetemplate, so a second run in the same workspace is clean rather than failing on an import of a
resource already managed.
Spec
ADVISORY — an unreadable state is reported as "nothing to destroy", and the run can still exit 0
container/ci.sh:89—if (cd "$stack" && tofu state list 2>/dev/null || true) | grep -qx "$GUEST_RESOURCE"; thenThe
|| truewas needed: with no state file at all,tofu state listexits 1. But it also collapsesevery failure to read the state into the same empty output, and the
elsebranch then printsno test guest in state; nothing to destroyand leavesstatusuntouched. Driven three ways on ascratch Stack:
Case C is the one that costs something. Before this commit a whole-state
tofu destroyfailed loudlyon a corrupt state and set
status=1; now a run that was otherwise green exits 0 while the Guest maystill be on the Node — against
ci.sh:9-10("destroy the Guest on every exit path") and TR-36's"the destroy step runs when an earlier step fails". It is not a blocker:
created=1is only set aftera successful apply (
:120-121), so the state is valid when the trap is installed, and reaching thecorrupt case needs a failure between apply and teardown.
Smallest change that clears it: treat a failed
state listas an error rather than as an emptylist — since
created=1implies an initialised state,if ! (cd "$stack" && tofu state list) >"$tmp" 2>&1; then…
status=1— or keep|| truebut require[ -f "$stack/terraform.tfstate" ]before taking the"nothing to destroy" branch.
ADVISORY — "Every run starts from an empty state" is contradicted by the import skip
docs/reference/test-guest.md:64againstdocs/reference/test-guest.md:84-86andcontainer/ci.sh:111.Line 64: "Every run starts from an empty state, so it imports the template once, before the first
apply." The new section at :84-86 says the imported template and the vmid/hostname "stay in this
state", and
ci.sh:111exists precisely to skip the import "which is what makes a second run againstthe same workspace clean". Both cannot be unconditionally true: the first holds for a CI job (fresh
checkout) and not for a local
make test-cire-run, which is the case the guard was written for. Anoperator reading :64 will not expect
template import: already in state.Clearing: one clause on :84-86 — the state survives between runs when the same workspace is
reused (
make test-cilocally); it is empty only in a fresh CI checkout.Standards
Sources read:
AGENTS.md(§Decisions, §Toolchain, §State, §Pull requests),docs/adr/0001-0004,docs/agents/issue-tracker.md,GLOSSARY.md.No violation. The delta follows AGENTS.md's toolchain rule (the job runs
makedirectly in the runnerimage, not through
mise exec), ADR-0004's "a CI plan takes no store lock" (-lock=falsekept inedge-plan-ci), and the PR-body format the repo'sprskill requires.Checked and refuted — not a finding.
edge-plan-cireads like the classic broken recipe: threelines, a
cdon the first, and in default GNU make each line gets its own shell, sotofu initandtofu planwould run in the repo root — where there is no.tfand noedge.tfvars. It does nothappen:
Makefile:2sets.ONESHELL:, so the three lines are one shell. Driven with a stubtofuthat logs its cwd — both calls land in
npm/, rc 0. Recorded so the next reviewer does not re-raiseit.
Verified
git ls-remoteon both repos (v4 / v3 present, old path absent) and run 4's own job logs show the fetch and a successful Checkoutstatic→tofu: command not found,make: *** [Makefile:274: check] Error 127;edge→make edge-plan-ci…Error 127, gateexit 2on the unreadable plan, artifact uploaded;execute→ "job is not started"-targetkeeps the template out of the destroy setplan -destroy -refresh=false(above)make checkat headmise exec -- make checkin the fetched revision, no.env, no credentials →Success! 1 passed, 0 failed, rc 0make edge-plan-cilands innpm/tofulogging cwd for both calls,.ONESHELLatMakefile:2, rc 0git rev-list --count 20d3374..ff93adc= 43, matching the body; 42 files changeddone=trueci.pubis untouched and publicgit diff --name-status e85c7a0..ff93adc= exactly the four files aboveCould not verify
consecutive
make test-ciruns, and the prodmovedplan. The destroy-set question I could answerwithout them; "the second run succeeds" I could only establish to the state logic (
ci.sh:111).make imageidempotence, the local leg,Ctrl-C,make test-clean. Nodaemon here.
TEST_VAULT_PASSWORDin this environment..tr36-notes/43-edge-gate-selftest.py: not in the repo, so "8/8" is the author's number. Thefile it tests is unchanged in this delta and round 1 reproduced its behaviour independently.
concurrency: cancel-in-progress): needs a superseding push to observe.Summary
ci.sh:89)Both blockers from round 1 are cleared with evidence, and the fix kept to the four files it needed.
Two advisories remain: they are advice, below the three-advisory volume trip, and neither touches the
normal path. Merge.
New commits pushed, approval review dismissed automatically according to repository settings
olympus/infra-tracker #37 · head
fb593470· round 3/5 · axes: Standards, SpecRecommendation: fix
Round 1 → round 3
The dispatch reads
round=1/5, but the timeline already carries this loop's round 1 (e85c7a0,REQUEST_CHANGES) and round 2 (
ff93adc, APPROVED). I numbered by the timeline, as the loop requires:this is the third review.
refs/pull/37/headresolves tofb593470, equal to the head branch, so thedispatch's SHA is current.
Delta reviewed:
ff93adc..fb593470, one commit (fb59347, bot-telesphoros), three files (+53/−23):container/target.Dockerfile,vikunja/service/roles/vikunja/tasks/main.yml,vikunja/service/verify.yml.git merge-base --is-ancestor ff93adc fb593470is true, so the fixstacked and that delta is exactly this round's change; nothing else moved.
It answers neither round-2 advisory. It is a fix driven by the Suite going red on the local leg —
in scope for TR-40 ("
make testgreen", "the 2nd and 3rd Converge reportchanged=0"), but requestedby no review. I reviewed it on its merits, and it holds.
fb593470ff93adc; still holding — run 5's logs fetchdata.forgejo.org/actions/checkoutandforgejo/upload-artifactv3ci.sh:89-91targets the Guest only, re-driven belowff93adcstaticcan pass"edgejob re-implementsedge-planmake edge-plan-ci)ci.sh:89), re-driventest-guest.md:64)The
db:→login_db:fix is load-bearing, and it retires a defect round 2 could not seevikunja/service/requirements.yml:4pinscommunity.postgresql >=5.0.0,<6.0.0. In 5.0.0,postgresql_query's argument spec islogin_dbalone — there is nodbalias(
plugins/modules/postgresql_query.py:336). Driven with both spellings at this head:So at
ff93adcthe Assert play — the Suite's third ring — could not have run at all, and round 2'sapproval rested on a tree whose Assert could not execute. That is fixed here, and proven by run 5
below rather than by reading. I record it because round 2 should have caught it, not as a finding
against this head.
Spec
ADVISORY — the PR body's Evidence still describes
ff93adcand run 4, and contradicts the head commitBody §Evidence: "After, on this branch (
ff93adc, 43 commits)" and "run 4 onff93adc, thepull-request run this branch's last commit triggered", plus a "Not run here" table still listing
"The local leg end to end, Ctrl-C, janitor" as unrehearsed.
At head,
git rev-list --count 20d3374..fb593470is 44, not 43; the last commit triggered run 5(id 13), which is green in all three jobs, not run 4's red shape; and the head commit's own message
says "Proven by
make test, twice: 25 ok, 0 changed on the second run, Target removed on both" — sothe body calls unrehearsed a thing the commit says it ran twice. Both sentences are the author's and
cannot both stand. The body was edited at 15:36:50, after the commit landed at 15:24:31, so this is
not a race. TR-40's resolution comment carries the same staleness: its criterion table still reads
unverified for
make testand for the 2nd/3rd Converge that run 5 now proves.Smallest change that clears it: refresh §Evidence to
fb593470/ 44 commits / run 5, and eitherrecord the two
make testruns (the recap line and the Target removals) or drop that row from"Unrehearsed".
ADVISORY (carried from round 2) — an unreadable state is still reported as "nothing to destroy"
container/ci.sh:89—if (cd "$stack" && tofu state list 2>/dev/null || true) | grep -qx "$GUEST_RESOURCE"; then|| trueis needed (no state file exits 1), but it also collapses every failure to read the stateinto empty output, and the
elseat:97-98then printsno test guest in state; nothing to destroyand leaves
statusuntouched. Re-driven at this head on a scratch Stack, three cases:Case C is the one that costs: a run that was otherwise green exits 0 while the Guest may still be on
the Node, against
ci.sh:9-10and TR-36's "the destroy step runs when an earlier step fails".Smallest change that clears it: treat a failed
state listas an error — sincecreated=1implies an initialised state,
if ! (cd "$stack" && tofu state list) >"$tmp" 2>&1; then … status=1—or keep
|| trueand require[ -f "$stack/terraform.tfstate" ]before the "nothing to destroy"branch.
ADVISORY (carried from round 2) — "Every run starts from an empty state" contradicts the import skip
docs/reference/test-guest.md:64— "Every run starts from an empty state, so it imports the templateonce, before the first apply" — against
:84-86("The imported template and the vmid and hostname therun drew stay in this state") and
container/ci.sh:111-112(template import: already in state, whosecomment says it "is what makes a second run against the same workspace clean"). The first holds for a
fresh CI checkout only; a local
make test-cire-run keepstest/guest/terraform.tfstate.Smallest change that clears it: one clause on
:84-86naming when the state survives.Standards
Sources read:
AGENTS.md(§Decisions, §Toolchain, §State, §Pull requests),docs/adr/0001-0004,docs/agents/issue-tracker.md,GLOSSARY.md,.agents/skills/pr/SKILL.md. No violation in thedelta.
main.yml:181-186— the newservicetask and the reorder keep the role's existing check-modeidiom (
when: not ansible_check_mode or vikunja_pg.stat.exists | default(false)); the user/db tasksmoved as a block and changed by nothing else.
verify.yml:170,191,211— the rename follows the collection's own documented spelling: 5.0.0'sDOCUMENTATION shows
login_dband every EXAMPLE uses it, so the delta brings the play into linewith the pin at
requirements.yml:4rather than away from it.target.Dockerfile:23-28— no repo standard governs image-layer behaviour; the inline commentstates the mechanism (
/dev/nullmasks, Debian's presets) and the reason, which is the house stylethe other Dockerfiles already keep.
Verified
make checkatfb593470.env, no credentials:fmt -checksilent, threeSuccess! The configuration is valid.,edge.tftest.hcl … 1 passed, 0 failed, rc 0static→Job succeeded;edge→ plan1 to add, gate green (1 change(s),43 file(s), 1 under npm/), artifact uploaded;execute→Job succeededexecutejob log: apply3 added, 1 changed; Convergeok=29 changed=16 failed=0; Assertok=26 changed=0 failed=0; 2nd and 3rd Convergeok=25 changed=0 failed=0;test guest destroyed;test-evidenceartifact (10 files) uploadedread the database and its owner,read the migrated schema,read the account the Vault promises) all run and pass atlogin_db;ensure PostgreSQL is runningruns in the Converge and is a no-op on the 2nd/3rd (changed=0)login_dbis the only accepted spellingdb:refused as an unsupported parameter,login_db:acceptedpostgresql-common 278:systemd/system/postgresql.serviceis the meta unit, andsystemd/system-generators/postgresql-generatorsymlinkspostgresql@<ver>-<cluster>.serviceintopostgresql.service.wantsfor each cluster whosestart.confisauto— so starting the meta unit starts the clusterno_logstill covers the DB password inmain.yml:197git diff --name-status ff93adc..HEADis exactly the three files namedCould not verify
is
systemctl mask's own mechanism (a/dev/nullsymlink) against Debian's own unit names, and itis inert for the CI Guest — but "the dev's VT1 is no longer taken" is the author's
make testclaim, not something I reproduced, and so are the "25 ok on both runs" numbers.
movedplan (make guest-plan): no Proxmox endpoint here. Carried from round 2.TEST_VAULT_PASSWORDin this environment.concurrency: cancel-in-progress): needs a superseding push to observe.Summary
The code is mergeable. Nothing in the delta is a defect: both prior blockers stay cleared, the
three edits are correct, and run 5 proves the CI leg end to end for the first time — the first run in
this PR that exercises anything.
The state is REQUEST_CHANGES on the count alone. Three advisories trip the loop's volume rule, and
the dispatch's blockers-only mapping does not suspend it; no advisory is dressed up as a blocker. Two
of the three were already advice in round 2, the third is this round's. All three clear in one small
pass — refresh the body, guard the state read, one clause on the doc — and then nothing here is
outstanding.
Round 3/5 answered —
fb593470→ecf5278, one commit on this branch.The dispatch says "blocking findings"; the review I read (
id 195,round=3/5, headfb593470) tallies0 BLOCKER, 3 ADVISORY and moves the state on the volume rule alone — "no advisory is dressed up as
a blocker". So the three advisories are the ask, and each is answered below.
ff93adcand run 4ecf5278ecf5278Rounds 1 and 2 stay as the review set them: five resolved, one withdrawn by the reviewer.
1 — the body, refreshed to the head
git rev-list --count 20d3374..fb593470= 44, not 43, and the run the head triggered is 5, not 4.§Evidence now reads
fb593470/ 44 commits /ecf5278, and its run block is run 5's, read from thatrun's job logs (
/actions/runs/5/jobs/{0,1,2}/attempt/1/logs):The "Unrehearsed" table lost the four rows that run 5 and the head commit falsify — "the local leg end
to end", "the CI leg: apply, 180 s poll, destroy-on-failure", "publish, and the digest the workflow
needs", "a real pull-request run" — and keeps five that still hold:
make imageidempotence, Ctrl-C andthe janitor, the prod
movedplan, cancellation, and the local leg's wall-clock number. The local legis recorded from the head commit's own message, not from a run I made: "Proven by
make test, twice:25 ok, 0 changed on the second run, Target removed on both."
The TR-40 resolution comment (
id 110) carried the same staleness. Its twounverifiedrows now readmet (author's record)andmet, with that commit message and run 5's recap lines as the evidence, andthe closing sentence is scoped to "the machine these tables were written on". I edited that comment on
the finding's word; no other tracker object was touched.
2 — the teardown guard
tofu state listexits 1 both for a stack that never wrote state and for a state it cannot read. The oldguard collapsed the two into one answer:
ecf5278reads the list once intoevidence/state-list.log, takes "nothing to destroy" only when thereis no
terraform.tfstate, and treats a failed read of an existing state as a failure of the run. Drivenby cutting the guard out of the file at each revision and running it against a stub
tofu:greentargetis the other half of the finding: an otherwise green run that still has a Guest in statedestroys it and stays green. I took the reviewer's second alternative — the state file on disk decides —
because the first (
! state list→ error) cannot tell a fresh stack from a corrupt one and would red arun that never got as far as
apply, which is the case the|| truewas there for.3 — the doc
docs/reference/test-guest.mdasserted the state's lifetime unconditionally in three places, so addingthe clause to one would have left the other two false.
ecf5278:make test-cire-run keeps the file in the checkout, and the import then reportstemplate import: already in state"The reflow is whitespace: a word-level diff against the reviewed revision shows only those spans moving.
The page's own register is 81 characters (9 pre-existing lines sit at 81); every new line is 81 and
none is over.
Verification
The pushed revision was read back from the forge, not from my clone:
raw/container/ci.sh?ref=ecf5278carries the new error line,
raw/docs/reference/test-guest.md?ref=ecf5278carries lines 13, 65 and 86above, and
refs/pull/37/headresolves toecf5278.Left alone, and named: two consecutive
make test-ciruns against one workspace (run 5 is one CIrun; the import-skip half needs a second, with Proxmox and the Node); Ctrl-C teardown and
make test-clean;make imageidempotence; the prodmovedplan. This commit touches none of them andnone can run in this container. I did not rewrite the body's Merge Danger section: it is a precondition
list for a fresh instance, and run 5 shows those Variables are set on this one.
The self-review the dispatch asks for ran in one context, both axes in sequence — no
claude,codexor
agentCLI is on PATH here, so no parallel sub-agents existed.Run 6, after the push.
ecf5278triggered run 6 (id 14), and all three jobs succeeded. Itsexecutejob is the first real run of the guard this round changed:So the new branch of the guard ran where it matters — a state with the Guest in it, read into
state-list.log, destroyed with-target, and the run left green. The body, run block and the TR-40cell now name run 6 at the head, with run 5 at the parent behind it.
Labels:
review/needs-fix→review/needs-review.olympus/infra-tracker #37 · head
ecf5278· round 4/5 · axes: Standards, SpecRecommendation: merge
Round 3 → round 4
The dispatch reads
round=2/5; the timeline already carries this loop's rounds 1 (e85c7a0), 2 (ff93adc) and 3 (fb593470), so I numbered by the timeline: this is the fourth review.refs/pull/37/headresolves toecf5278, equal to the head branch, so the dispatch's SHA is current.Delta reviewed:
fb59347..ecf5278, one commit, two files (+32 / −17):container/ci.sh,docs/reference/test-guest.md.git merge-base --is-ancestor fb59347 ecf5278is true, so the fix stacked and that delta is exactly this round's change; nothing else moved.Round 3 carried 0 BLOCKER, 3 ADVISORY and moved the state on the volume rule. All three are answered:
ff93adc/ run 4fb593470/ 44 commits /ecf5278and carries run 6 (head ecf5278, 15:45:22Z→15:48:11Z, all three jobs) with run 5 behind it; the Unrehearsed table keeps five rows.git rev-list --count 20d33748..fb59347= 44ci.sh:94-111; driven red/green below, and run 6'sexecuteis the green pathtest-guest.md:65("A run whose state is empty"),:86-88(the clause naming a local re-run),:13-14Rounds 1 and 2 stand: both blockers stay cleared at this head. Run 6 fetches
data.forgejo.org/actions/checkout(job 0 line 7) and.../forgejo/upload-artifact(job 2 line 8); itsexecutejob importedmodule.guest.proxmox_download_file.debian_13_basesuccessfully and then destroyed only the Guest — the template was still on the datastore for run 6's own import.The guard, driven both ways
The
teardownfunction was cut out of each revision by line range (not retyped) and run undertrap teardown EXITagainst a stubtofuthat answersstate listfrom the local state file's shape:fb59347ecf5278The unreadable-state row is round 3's case C: red on the prior revision, green on the fix. The guard only ever raises
status([ "$status" -ne 0 ] || status=1), so a failed run cannot be turned green by it.One input my stub modelled loosely was settled by the real binary: a zero-byte
terraform.tfstatemakes OpenTofu 1.12.6 answerNo state file was found, rc 1 — while-fis true, so the guard takes the error branch, not "nothing to destroy". That is the right answer for a truncated state.The pipeline at this head
Run 6 (id 14,
pull_request/synchronize, headecf5278):static,edge,executeall Job succeeded.That
executerun is the new guard on its real path: the state read intotest-evidence/state-list.log, the Guest found, the targeted destroy, exit 0. The upload isif: always()(checks.yaml:129-135), so the log reaches the artifact on a failure too.Spec
ADVISORY — the records beside the page still state the state's lifetime unconditionally
docs/adr/0004-test-state-outside-the-store-and-the-edge-gate.md:44-46and:69;GLOSSARY.md:72-73and:167-168;docs/reference/state.md:17-19.The page this commit fixed now says the right thing —
docs/reference/test-guest.md:86-88: "a CI job's workspace goes with the job, while a localmake test-cire-run keeps the file in the checkout, and the import then reportstemplate import: already in state". The records it points at still carry the unconditional form:terraform.tfstatein the run's workspace and it goes when the run does"; Consequences: "The test's record dies with the run."state.md:17-19: "keeps its state in the run's workspace, and the state dies with the run".For a local
make test-cire-run the file stays in the checkout — which is exactly whyci.sh:123-124has thetemplate import: already in statebranch the new clause names. The page's own## The state dies with the runheading (:10) is the same residue.Nothing here is in the delta (all four lines predate
ecf5278), so it is advice, not a block. Clearing: the same one-clause qualification where each record states the lifetime, or scope the sentence to a CI run.Standards
Sources read:
AGENTS.md(§Decisions, §Toolchain, §State, §Pull requests),docs/adr/0001-0004,docs/agents/issue-tracker.md,GLOSSARY.md,.agents/skills/pr/SKILL.md, and the org records inolympus/workshopatmain(docs/adr/0001-0005, including ADR-0002's "reviewed by another / pinned to the revision / checks gate the revision that lands" and ADR-0004's store-destroy prohibition).No violation in the delta.
ci.sh:94-111keeps the file's idiom: the comment says why rather than what, the stderr line keeps theerror: ci:prefix, evidence stays undertest-evidence/.${#line}): every new line is ≤ 81, the page's own maximum; 13 lines sit at 81 and none is over. (awk length()reports 17 because this host's mawk counts bytes, and an em dash is three — not a wrap breach.)-targeted at the Guest, so nothing whose state lives in the store destroys the store.Verified
git diff --name-status fb59347..ecf5278;--is-ancestortrueteardownextracted from both revisions, seven cases each (table above)test-guest.md:65,:86-88,:13-14read at head;ci.sh:123-124prints the string the clause quotesfb59347; run 6's head and times match the blockmake checkat headmise exec -- make checkin the fetched revision, no.env, no credentials, no docker:fmt -checksilent, threeSuccess!,1 passed, 0 failed, rc 0ci.shparsesbash -n container/ci.shrc 0success×3; job logs read directly, includingtest guest destroyedat 15:48:10module.guest.proxmox_download_file.debian_13_baseat 15:45:40 and applied3 added, 1 changed, so the file was on the datastoreNo state file was found, rc 1, file present → theelif [ ! -f ]is falseCould not verify
make test-ciruns, a real apply/destroy and the 180 s poll — no Proxmox endpoint here.make imageidempotence, the local leg,Ctrl-C,make test-clean. No daemon.TEST_VAULT_PASSWORDin this environment.cancel-in-progress): needs a superseding push to observe.Summary
All three round-3 advisories are cleared with evidence: the guard is driven red→green on the exact case that was charged, the page states when the state survives, and the body names the head and run 6. The one remaining advisory is a record outside the diff, well below the volume trip, and does not move the verdict. Merge.