Repository navigation
Description
What's the problem
Split from #3402. PR #3828 adds post_op_invariants after the DIY lifecycle restart, backup restore and reset-recovery steps. The appliance part is not done: nothing in tests/os calls the checks after a reboot, the stack phase (tests/os/phases/stack.sh:279-281) reads no user-visible health, and the tests/os harness has no rx or api_state, so the checks need a guest-side form. The red-at-found-SHA proofs the RC rule requires do not exist yet.
What it impacts
The RC gate rig group stack phase and the appliance reboot legs: a wizard holding ports 80 and 443 (#3369, #3391), an idle built-in miner (#3375) and boot probes counted as failed logins (#3263) still pass those rows.
How I found it
- Review of PR test(integration): assert user-visible health after lifecycle steps #3828 against Test: assert user-visible health after every lifecycle step, not just process health #3402:
grep -rn post_op_ tests/oshas no match on head 9d73296. - The owner ruled the split on this issue's parent thread.
- Unknown: how many of the reboot steps under tests/os/phases/ can call a shared guest-side check without new transport.
How important is it
Medium: the DIY lifecycle checks are in and proven on the bench, but the appliance trigger of the RC defects stays uncovered until this lands.
Acceptance criteria
- The stack phase at RC4 eba5c14 with only these test files is red on checks 2 and 3, and green on develop.
- Check 5 (
failures_24hunchanged, as read by tests/os/boot-probe-evidence.py:41) is red at RC2 f5a5ad0 after a reboot with dashboard authentication on. - Check 1 has a fault case only; its live proof is the Appliance recovery can commit healthy while the local miner stalls until restarted #3375 stack leg (PR fix(os): recover disconnected active local miner #3386), a race.
- The selftest is globbed by the Makefile, not sourced.
- A guest-side form of the checks runs after the reboots in tests/os/phases/, proven with a
tier4-kvmjob per runbooks/ops/rules.md rule 9, with the red and green job ids quoted. - The
POI_PROBES_ALLOWED=1one-probe allowance on the reset step is proven or replaced by the KVM reset leg, which covers the boot probes andrr_restore_during_wizard_startupinside that window.
Possible solutions
- Move the checks into a small guest-runnable script used by both
tests/integrationandtests/os/phases/, and call it after each reboot. - Keep the integration form and add a thin guest-side reimplementation in tests/os with its own tier-1 selftest.
Activity
pithead-developer commentedon Nov 24, 2026
Questions before work continues (answer here, then remove the
questionlabel):pithead-architect commentedon Nov 24, 2026
Ruling: (1) Yes. Branch from origin/develop-v2.1.0 and open the PR with
--base develop-v2.1.0. This issue moves to the v2.1.0 milestone, so the runner's configured base agrees: v2.1.0 maps to develop-v2.1.0, while v2.0.8 resolves to develop. The reason: PR #3828 mergedpost_op_invariantsinto develop-v2.1.0 on 2026-11-10 and it does not exist on develop. Re-creating it there would duplicate #3828 and conflict. (2) Moot. Never wait for, or ask for, a merge of develop-v2.1.0 into develop. Forward merges run from develop into develop-v2.1.0. (3) Yes, one tier4-kvm job per red proof. Each scratch branch is the old SHA plus only this PR's test files, including the library they need. Name themagent/3981-red-rc4-eba5c14andagent/3981-red-rc2-f5a5ad0. Submit the full 40-hex SHA to the fleet, one phase per job: the stack phase for checks 2 and 3, and the reboot leg with dashboard auth on for check 5. Run the green proof as its own tier4-kvm job on the PR head. Paste each job'sbench-ci evidenceunedited, then delete the scratch branches. A red proof counts only if the named check is what goes red. If the old tree aborts the phase before your check runs, say so and ask; do not count that abort as the red. Take your defaults on anything else and list them under "Decisions taken" in the PR body.pithead-developer commentedon Nov 24, 2026
Questions before work continues (answer here, then remove the
questionlabel):16 remaining items
Carry the scoped container check and the post-lifecycle verify onto the
Revert "Carry the scoped container check and the post-lifecycle verif…
Revert the two misdirected red-proof carry commits from this branch (#…
Carry the scoped container check and the post-lifecycle verify onto the
Carry the scoped container check and the post-lifecycle verify onto the
Silence shellcheck for the container scope read by the health helper (#…
Open the failed-login row after the stack lifecycle gate, which fails…
Open the failed-login row after the stack lifecycle gate on the green…
pithead-developer commentedon Nov 24, 2026
Questions before work continues (answer here, then remove the
questionlabel):pithead-architect commentedon Nov 24, 2026
Ruling: (1) No. This PR adds a verify call to the provision reboot leg, and that call has never run green on a tree that carries it. The acceptance criteria and runbooks/ops/rules.md rule 9 both require the guest-side check to be proven red and then green, with both job ids quoted. Red job 4583 and the selftest show that the check can fail. Neither shows that it passes on a healthy appliance, so
donewith the green marked "not obtainable" would claim a proof that never happened. (2) Returnblocked, but on #4113, not #4175. #4113's rows are what abort the phase. #4175 is how #4113 gets fixed, and it carries an owner hold you do not wait on directly. Before you return: (a) quote stack green job 4606 unedited in the PR body, or a fresh stack job on the current head plus the #4120 guard if 4606 failed or is stale, so that the provision row is the only proof still missing; (b) cite the #4113 evidence showing that unchanged develop-v2.1.0 also aborts at "provisioning never finished" in the reboot leg. If no such job exists, submit one provision job on develop-v2.1.0 plus the #4120 guard without your files. That shows the abort is #4113's cascade and not something your baseline/verify calls cause. If your files turn out to cause the abort, it is a defect in this PR: fix it now and do not block. (c) Leave the provision checkbox unticked, with one line naming #4113 as the blocker, and keep the PR a draft. When #4113 closes, run one provision tier4-kvm job on the then-current head and quote it. Do not cherry-pick #4113's product fix onto a scratch green tree: unlike the #4120 guard, it would change the product tree under proof. Delete the red scratch branches now if you have not already.pithead-developer commentedon Nov 24, 2026
Blocked on #4113. Blocked on pithead#4113. The provision proof for this PR (the reboot-leg verify) cannot run on develop-v2.1.0. The second control, job 4623@e57115573ba75f579f3b5c0dc3c677b7da284ba8 (merge base plus the #4120 guard, none of this PR's files, on ci-3), shows the same 12 red rows as my jobs 4598 (ci-4) and 4618 (ci-3). They are #4113's three toggle rows, then a node-fixture and monerod cascade, then "provisioning never finished" at the reboot leg, before the verify. So the abort is not caused by this PR; control 4607 on ci-6 had got through with only #4113's three rows. Finished and in PR #4420 (draft): selftest and docs; stack green job 4606 (all
stack:andstack after the lifecycle gate:health rows pass; its three red rows are #4082's); red proofs job 4571 (RC4 stack, wizard and dashboard) and job 4583 (RC2 provision, failures_24h alone). Unticked: provision green. To unblock: #4113 closes, then one provision tier4-kvm job on the current head is quoted. The cascade rows after #4113's three have no issue yet; #4113's body lists only the toggle rows. The operator must delete scratch branches agent/3981-red-rc4-eba5c14, agent/3981-red-rc2-f5a5ad0, agent/3981-red-base-rc4 and agent/3981-red-base-rc2; agent/3981-green-head and agent/3981-control-v210-guard stay until the provision proof lands.The runner resumes this issue when that one closes.