Skip to content

docs(tests/os): document the rig phase, and stop crediting the commit gate to the update phase - #878

Merged
VijitSingh97 merged 1 commit into
develop-v2from
docs/os-harness-readme-rig-phase
Aug 4, 2026
Merged

docs(tests/os): document the rig phase, and stop crediting the commit gate to the update phase#878
VijitSingh97 merged 1 commit into
develop-v2from
docs/os-harness-readme-rig-phase

Conversation

@VijitSingh97

Copy link
Copy Markdown
Collaborator

What

tests/os/README.md documented four phases and a five-phase all. rig — the leg that proves the other machine this image installs (#797 R4, already on develop-v2) — was missing from the phase list, from the --phase enumeration, and from the opening line. The only way to find it was to read run.sh.

Two accuracy fixes came out of the same pass:

  • The update phase does not use pithead doctor --json. It commits with rauc status mark-good and rolls off with rauc status mark-bad booted (_commit_cmd / _rollback_cmd in tests/os/run.sh, and the leg-2/leg-3 assertions that call them). The doctor gate belongs to the appliance's own boot path, and it is the provision phase that asserts it both ways — pass on a healthy still-syncing stack, refuse once monerod is stopped. The claim moved to the phase that actually makes it.
  • The provision phase's reboot leg was undocumented — the stack has to return unaided through pithead-boot, which is the assertion guarding a miner that sits dark after every power blip.

Why it looked wrong

This started against an older cut of the branch, where the README still described rugix-ctrl and an "open leg / no SSH" Status section. That version was already replaced on develop-v2 by fcb9184 and 4cba93f. Rebased onto develop-v2, the residual gap is what this PR fixes — no rewrite, no churn against the version that just landed.

Verification

make lint-md and make lint-docs-voice both pass (this file is covered by each). Every claim in the diff is derived from tests/os/run.sh on develop-v2; nothing else changed.

No behaviour change — the code was already right, the doc was not.

🤖 Generated with Claude Code

…ot the update phase's

The README documented four phases and a five-phase `all`. `rig` — the leg that proves the
other machine this image installs (#797 R4) — was missing from the phase list, from the
`--phase` enumeration, and from the opening line, so the only way to find it was to read
run.sh.

Two accuracy fixes alongside it:

- the update phase commits with `rauc status mark-good` and rolls off with
  `rauc status mark-bad booted`. It never calls `pithead doctor --json` — that gate belongs
  to the appliance's own boot path, and it is the provision phase that asserts it both ways.
- the provision phase's reboot leg and commit-gate assertions were undocumented.

No behaviour change; the code was already right.
@VijitSingh97
VijitSingh97 merged commit b9922b5 into develop-v2 Aug 4, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant