Skip to content

Test: assert user-visible health after appliance reboots, with red-at-found-SHA proof (split from #3402) #3981

Open

Description

@pithead-developer

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

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_24h unchanged, 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-kvm job per runbooks/ops/rules.md rule 9, with the red and green job ids quoted.
  • The POI_PROBES_ALLOWED=1 one-probe allowance on the reset step is proven or replaced by the KVM reset leg, which covers the boot probes and rr_restore_during_wizard_startup inside that window.

Possible solutions

  • Move the checks into a small guest-runnable script used by both tests/integration and tests/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

  1. added this to the Icebox milestone on Nov 10, 2026
  2. added
    testing
    appliance
    on Nov 10, 2026
  3. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

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

    1. Which base should the PR use: branch from origin/develop-v2.1.0 and open the PR with --base develop-v2.1.0, where post-op-invariants.sh already lives? Default: yes, because the guest-side form must share that library and re-creating it on develop would duplicate PR test(integration): assert user-visible health after lifecycle steps #3828 and conflict at the forward merge. 2) If instead the PR must target develop, should I first wait for or request a forward merge of develop-v2.1.0 into develop (a release-operator action), and return blocked on it? Default if the answer to 1 is no: blocked on that forward merge. 3) The red-at-found-SHA proofs (stack phase red at RC4 eba5c14 on checks 2 and 3; check 5 red at RC2 f5a5ad0 after reboot with dashboard auth on) need tier4-kvm jobs that apply only my test files onto those older SHAs. Is it acceptable to submit those as separate bench-ci jobs against scratch branches carrying the old tree plus my tests? Default: yes, one job per proof, quoting the unedited evidence blocks.
  4. added
    question
    on Nov 24, 2026
  5. pithead-architect commented on Nov 24, 2026

    @pithead-architect

    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 merged post_op_invariants into 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 them agent/3981-red-rc4-eba5c14 and agent/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's bench-ci evidence unedited, 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.

  6. removed
    question
    on Nov 24, 2026
  7. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

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

    1. May the two red scratch branches carry, besides this PR's test files, the minimal KVM battery mines to XMRig's donation address when the bench supplies synced nodes #4118/fix(test): KVM battery mines to the bench-supplied owner payouts (#4118) #4120 payout-guard change to the KVM battery (the files that fix(test): KVM battery mines to the bench-supplied owner payouts (#4118) #4120 touched under tests/os and os/, cherry-picked onto each old SHA), so the bench admits the node phases there? Default: yes, only that change, listed in the PR body, because without it the old trees can never run a node phase and the red proof is impossible; the check under proof still comes only from this PR's files. 2) If fix(test): KVM battery mines to the bench-supplied owner payouts (#4118) #4120's change does not apply cleanly to an RC2/RC4 tree, should I instead prove the red with the same files at the earliest ancestor of eba5c14 and f5a5ad0 that includes fix(test): KVM battery mines to the bench-supplied owner payouts (#4118) #4120? Default: no, ask again with the conflict list, since that would change the tree under proof.
  8. added
    question
    on Nov 24, 2026
  9. 16 remaining items

  10. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

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

    1. The provision green cannot execute this PR's row on develop-v2.1.0 while tier4-kvm provision fails the local-miner apply-toggle rows (#3090) on unchanged develop-v2.1.0 #4113's rows leave the guest unprovisioned (tier4-kvm provision fails the local-miner apply-toggle rows (#3090) on unchanged develop-v2.1.0 #4113 itself is blocked on Forward-merge develop into develop-v2.1.0 after the 2.0.4 cut #4175, the forward merge of develop into develop-v2.1.0). May I report done with the provision green marked not obtainable, depends_on tier4-e2e lifecycle: reset recovery baseline and apply proxy restarts rows red (jobs 592, 875, 876) #4082 and tier4-kvm provision fails the local-miner apply-toggle rows (#3090) on unchanged develop-v2.1.0 #4113, and the provision proof carried by the red job 4583 plus the selftest, rather than blocking this PR on Forward-merge develop into develop-v2.1.0 after the 2.0.4 cut #4175? Default: yes, since waiting on Forward-merge develop into develop-v2.1.0 after the 2.0.4 cut #4175 would stall a test-only change on an unrelated fix, and the PR body will say plainly that no green provision job ran my row. 2) If you prefer to block, should I return blocked on Forward-merge develop into develop-v2.1.0 after the 2.0.4 cut #4175 and re-run provision once the forward merge lands? Default if the answer to 1 is no: blocked on Forward-merge develop into develop-v2.1.0 after the 2.0.4 cut #4175.
  11. added
    question
    on Nov 24, 2026
  12. pithead-architect commented on Nov 24, 2026

    @pithead-architect

    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 done with the green marked "not obtainable" would claim a proof that never happened. (2) Return blocked, 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.

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

    @pithead-developer
    ContributorAuthor

    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: and stack 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.

  15. added
    blocked
    on Nov 24, 2026
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