Repository navigation
Description
What's the problem
Test debt from 2.0.0 RC testing, for 2.0.1 (owner, 2026-10-11: every defect an RC cut finds must be caught by automated tests going forward).
What slipped
Lifecycle rows assert container health or status exit codes, not what a user sees:
- Appliance stack phase: caddy cannot bind after the reset-restore leg, auth-fail-closed recovery fails #3369, Appliance: pithead status reports a crash-looping container as running (Podman has no restarting state) #3391: "stack healthy after encrypted restore following config-reset" (tests/integration/lib/run-reset-restore.sh:109) passed in job 2458 while the setup wizard held ports 80 and 443.
statusalso read OK while Caddy restarted 34, then 275 times; Appliance: pithead status reports a crash-looping container as running (Podman has no restarting state) #3391 counts three such false passes. - Appliance recovery can commit healthy while the local miner stalls until restarted #3375: after config-reset, restore and reinstall, all eight containers were healthy while the built-in miner idled 15+ minutes. Restore rows end at
wait_status_ok(tests/integration/lib/run-lifecycle.sh:135, tests/integration/lib/run-reset-restore.sh:109) and read no worker. - Boot health probes trigger a false failed-login security alarm #3263 (RC2): boot probes counted as 53 failed logins.
what it impacts
Where it runs
Tier-1: tests/integration/selftest/selftest-post-op-invariants.sh (new; a fault case per check, one all-good case), via make test-integration-selftest. Live: RC gate rig group stack phase (tests/os/phases/stack.sh:279-281) and tier4-e2e --lifecycle.
How I found it
Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.
how important is it
Cost
M. About 1-1.5 min per call; +10-15 min per channel (estimate).
acceptance criteria
Done when
- Stack phase at RC4 eba5c14 with only these test files is red on checks 2 and 3; green on develop with PR fix(appliance): wizard stands down when config appears (#3369) #3370.
- Check 5 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.
possible solutions
Test to build
post_op_invariants <label> (new, tests/integration/lib/post-op-invariants.sh), called after every step that stops, starts, recreates or reboots (tests/integration/lib/run-lifecycle.sh:18, :82, :98-106, :115-140, :297-343; tests/integration/lib/run-reset-restore.sh:109; reboots in tests/os/phases/). It asserts:
- Workers: each worker connected before the step reconnects within a named bound; after a proxy restart, a share is accepted within 600 s more. Read per-worker
/api/staterows (built-in miner included). - The dashboard, not the setup page, serves the web port:
curl --resolvepinned to loopback gives 401 or 200 without "Pithead setup", and nopithead-wizardcontainer exists unless expected. - Each running stack container keeps its Id, StartedAt and restart count over 60 s and reports healthy (Podman has no restarting state).
- Appliance:
systemctl --failedlists no pithead or xmrig unit. failures_24hin the access summary is unchanged (as read by tests/os/boot-probe-evidence.py:41).
Activity
pithead-developer commentedon Oct 21, 2026
Grouped with #3400, but PR #3580 does not close it: PR #3580 says: Per the operator ruling, #3401 stays separate under the existing holds; PRs #3519 and #3523 remain closed. #3402 needs separate lifecycle and appliance proof and is outside this change. No RigForge product fix, release or pin change is included.. Released for its own pick.
pithead-developer commentedon Oct 21, 2026
Parked in Icebox (operator, 2026-10-21): harness mechanics are parked under the owner's lean roadmap, and flaky results are rerun, not engineered around. It comes back only on the owner's word or if it becomes a hard release blocker.
pithead-developer commentedon Oct 27, 2026
Grouped with #1219, but PR #3715 does not close it: Lifecycle health invariants are independent of the Caddy gateway fix and require separate Docker lifecycle and appliance stack proof.. Released for its own pick.
pithead-developer commentedon Oct 27, 2026
Grouped with #3399, but PR #3720 does not close it: Lifecycle health invariants require separate implementation plus Docker lifecycle and appliance KVM proof.. Released for its own pick.
pithead-developer commentedon Nov 1, 2026
Grouped with #3401, but PR #3821 does not close it: It needs distinct Docker and appliance proof for user-visible lifecycle invariants, so it stays separate from this test-only selftest change.. Released for its own pick.
test(integration): fail closed on unreadable invariant reads and pin …
test(integration): allow the reset-recovery step's own web probe in f…
pithead-developer commentedon Nov 1, 2026
Waiting on a transient bench_outage condition, not on another issue. tier4-e2e submit for pithead@78e5817327881ba84992b843e48c398fd69e1781 refused twice with 503 draining: the runner is shutting down. The runner re-checks it (first at 2026-11-01T15:14Z, at most 5 times).
6 remaining items
test(integration): drop explanatory comments and reject a one-sided u…
pithead-developer commentedon Nov 10, 2026
Questions before work continues (answer here, then remove the
questionlabel):pithead-architect commentedon Nov 10, 2026
Ruling: Take all three defaults. (1) Split: PR #3828 keeps the DIY lifecycle restart, restore and reset-recovery checks as
Part of #3402, with noCloses. The appliance reboot wiring intests/os/phases/(the stack phase), the guest-side form of the checks and the red-at-found-SHA proofs go into a new issue. Its acceptance criteria are copied word for word from #3402: the stack phase at RC4 eba5c14 is red on checks 2 and 3 and green on develop; check 5 is red at RC2 f5a5ad0 after a reboot with dashboard authentication on; check 1's live proof is the #3375 stack leg; the selftest is globbed, not sourced. It is proven with atier4-kvmjob per runbooks/ops/rules.md rule 9. (2) File that issue yourself. Use the six-section format, the same milestone as #3402, and link it as a native sub-issue of #3402. After #3828 merges, #3402 stays open and waits on that issue. (3) Keep thePOI_PROBES_ALLOWED=1limit as a statement in the PR body and as an acceptance line in the follow-up: the KVM reset leg must prove or replace the one-probe allowance. Do not put it in a source comment, because no-comments-in-code applies in every repo. Before you say Ready for review: head 9d73296 changestests/integrationafter the green jobs 3711 and 3717. Run one fresh tier4-e2elifecyclejob on the final head, quote it withbench-ci evidence, and show every GitHub check green on that head. List these choices under "Decisions taken" in the PR body, then post "Ready for review" so the round-1 return gets re-reviewed against the narrowed scope.test(integration): assert user-visible health after lifecycle steps (#…
pithead-developer commentedon Nov 12, 2026
Blocked on #3981. Blocked on pithead#3981, the native sub-issue carrying this issue's remaining acceptance criteria. Finished: PR #3828 merged to develop-v2.1.0 on 2026-11-10 at head 9d73296, adding post_op_invariants (tests/integration/lib/post-op-invariants.sh) after the DIY lifecycle restart, backup-restore and reset-recovery steps, with selftests globbed by the Makefile; proof on the PR body (bench-ci job 3738@9d7329699dc1de9618c8c12761a478d53df6228e, tier4-e2e lifecycle, 271 pass 0 fail 2 by-design skips; all GitHub checks green on that head; reviewer round-2 PASS). Remaining work per the owner-architect ruling of 2026-11-10 is split into pithead#3981 (open, same milestone, sub-issue of this one): guest-side form of the checks after the reboots in tests/os/phases/ with tier4-kvm proof, the red-at-found-SHA proofs (stack phase red on checks 2 and 3 at RC4 eba5c14, check 5 red at RC2 f5a5ad0 after a reboot with dashboard authentication on), and proving or replacing the POI_PROBES_ALLOWED=1 one-probe allowance on a KVM reset leg. Unblocks when #3981 closes with its red/green jobs quoted; this issue then needs only closure. The earlier native blocker #3913 is closed and self-clears.
The runner resumes this issue when that one closes.
pithead-architect commentedon Nov 27, 2026
Release regroom (owner request, 2026-11-27): moved from v2.0.8 to v2.1.2. Blocked by #3981 (2.1.0); test work cannot land before it.