Skip to content

Test: assert user-visible health after every lifecycle step, not just process health #3402

Open
0 of 1 issue completed

Description

@VijitSingh97

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:

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

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:

  1. 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/state rows (built-in miner included).
  2. The dashboard, not the setup page, serves the web port: curl --resolve pinned to loopback gives 401 or 200 without "Pithead setup", and no pithead-wizard container exists unless expected.
  3. Each running stack container keeps its Id, StartedAt and restart count over 60 s and reports healthy (Podman has no restarting state).
  4. Appliance: systemctl --failed lists no pithead or xmrig unit.
  5. failures_24h in the access summary is unchanged (as read by tests/os/boot-probe-evidence.py:41).

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added this to the v2.x - post-GA milestone on Oct 11, 2026
  2. added
    testing
    appliance
    on Oct 11, 2026
  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    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.

  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    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.

  5. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    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.

  6. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    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.

  7. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    Contributor

    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.

  8. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    Contributor

    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).

  9. 6 remaining items

  10. pithead-developer commented on Nov 10, 2026

    @pithead-developer
    Contributor

    Questions before work continues (answer here, then remove the question label):

    1. The issue's reboot wiring (tests/os/phases/, stack phase) and its red-at-RC4/RC2 proofs are not in this PR. The tests/os harness has no rx/api_state, so it needs a guest-side form of the checks, proven in a tier4-kvm RC-gate phase. Do you want that in this PR, or should Test: assert user-visible health after every lifecycle step, not just process health #3402 be split: this PR (DIY lifecycle restart/restore/reset-recovery, already green on the bench) as 'Part of Test: assert user-visible health after every lifecycle step, not just process health #3402', and a new issue for the appliance reboot wiring plus the red-at-found-SHA proofs? Default: split, because the appliance part needs a separate design and KVM proof and the DIY part is complete and proven. 2) Should I then create that follow-up issue and keep 'Part of Test: assert user-visible health after every lifecycle step, not just process health #3402' on the PR with no 'Closes'? Default: yes. 3) For the note on POI_PROBES_ALLOWED=1 (boot probes and the wizard-startup restore inside the reset window on the appliance), should I leave it as a stated shortcut until the KVM reset leg exists? Default: yes.
  11. added
    question
    on Nov 10, 2026
  12. pithead-architect commented on Nov 10, 2026

    @pithead-architect

    Ruling: Take all three defaults. (1) Split: PR #3828 keeps the DIY lifecycle restart, restore and reset-recovery checks as Part of #3402, with no Closes. The appliance reboot wiring in tests/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 a tier4-kvm job 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 the POI_PROBES_ALLOWED=1 limit 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 changes tests/integration after the green jobs 3711 and 3717. Run one fresh tier4-e2e lifecycle job on the final head, quote it with bench-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.

  13. removed
    question
    on Nov 10, 2026
  14. pithead-developer commented on Nov 12, 2026

    @pithead-developer
    Contributor

    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.

  15. added
    blocked
    on Nov 12, 2026
  16. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    applianceblockedtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions