Skip to content

Run the RigForge install-to-uninstall e2e on a fresh Ubuntu 24.04 KVM guest #663

Open

Description

@pithead-developer

What's the problem

RigForge's behaviour on a fresh Ubuntu host is proven only in pieces, and the pieces that need a reboot or a second network source are proven by hand. On develop:

  • Hosted stock-home job (PR fix: start DynamicUser receivers from private home checkouts #595): runs a real setup and apply, including a failed apply and its recovery, plus control enable and disable, on a fresh runner. It cannot reboot, it uses a closed loopback pool, and it checks only that uninstall exits zero.
  • Container e2e: stubs systemd, apt, mounts and hardware.
  • Manual real-rig gate (tests/e2e-real.sh, RELEASING.md step 2): the only place that checks reboot persistence, HugePages through the GRUB command line, a remote upgrade with real git, backup and restore, and the full uninstall revert.

The guest harness from #586 is PR #617: tests/e2e-docs-guest.sh and make e2e-docs-replay. It sits on develop-v1.19.0 and has never run. Its own text says "The AVX2 KVM docs-replay job ... has not run, so it does not close the issue", yet #586 was closed. This issue is that follow-up. Nothing creates the transient guest and the throwaway Stratum endpoint the harness needs.

On 2026-11-08 the owner directed that Ubuntu KVM e2e testing be part of the standard methodology for both RigForge and Pithead, replacing ad hoc sandbox deployment. The guest, the image pin, the Stratum fixture and the cleanup proof belong to the bench lane issue, p2pool-starter-stack/bench-ci#2418. This issue owns the in-guest harness and its assertions.

What it impacts

  • Rig operators installing on Ubuntu: regressions in first install, reboot autostart, GRUB and HugePages edits, the API firewall or uninstall reach a release unless the manual gate catches them. That gate depends on whichever rig is free.
  • Shared rig queue: rig e2e jobs queue on shared physical rigs. Define the complete RigForge behavior-to-gate proof manifest #625 records the fleet-wide shared e2e queue at a median wait of 195 min and a p90 of 895 min (2026-10-23 to 11-02). It has no RigForge-only split.

How I found it

On 2026-11-08 I read:

I also checked the bench tier catalogue, where RigForge tier4-kvm is rejected as not applicable. Related: #586, PR #617, #625 and PR #595.

How important is it

Medium-high. It is the owner's direction, and the release gate's reboot and uninstall checks have no automated equivalent that actually runs. It is not a user-facing fault today.

Acceptance criteria

  • The guest harness runs inside a fresh Ubuntu Server 24.04 guest provisioned by the bench lane. It runs at an exact candidate commit, not only the docs-pinned release, and reports one result per step:
    • the documented install, run verbatim, and a dry run that changes nothing;
    • setup, reboot and autostart, then accepted shares with no rejects on a throwaway Stratum endpoint, at donate level 0;
    • control enable, then one applied change and one rolled-back change;
    • a remote upgrade with real git, from the previous release tag to the candidate;
    • the API allowlist enforced from a second source, not loopback;
    • backup and restore;
    • uninstall followed by a reboot, with GRUB, fstab, limits, modules, units, listeners and the nft table restored;
    • appliance mode on a stock systemd guest.
  • The harness is on the branch the lane tests: develop, or develop-v1.19.0 until that merges. Once it is on develop, the nightly runs it from there.
  • tests/README.md and RELEASING.md step 2 name the guest lane in the layer table. The steps the lane covers leave the manual gate.
  • Real-hardware checks stay on real hardware: hashrate, tuning, MSR read-back, RAPL and thermal-sensor checks remain with tests/e2e-real.sh, the borrowed-rig tier4-e2e and the M11-M13 battery. The docs say so.
  • Each guest assertion is registered in the proof manifest (Define the complete RigForge behavior-to-gate proof manifest #625).

Possible solutions

  • Where the harness lives: promote the Automate docs replay, API allowlist, and uninstall checks #617 harness ahead of 1.19.0, or run the lane against develop-v1.19.0 until it merges.
  • Candidate mode: add a candidate-commit mode beside the docs-pinned mode. An N-1 to N upgrade needs both.
  • HugePages: 1 GiB pages may not be provable in a guest. Assert 2 MiB pages and the GRUB command line there.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    testing
    on Nov 8, 2026
  2. pithead-developer commented on Nov 19, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2594. Blocked on p2pool-starter-stack/bench-ci#2594. The PR's code, tests and docs are complete and all GitHub checks are green at head 986093d (local make test-suite green: 59 guest fixture rows + 22 driver unit tests; verifier and security passes clean; PR body rewritten to the required three sections). The required rigforge/tier4-kvm proof ran twice at this head (submission keys 4d238443-bae0-4aac-bc8d-91b8d87d8782 and fd2626b3-7074-49c0-96b9-044fc84abf5f); both completed failure exit 1 in ~4 s on the single lane bench with the single failing lane-runner row "libvirt default network address is readable" and "SKIP: the guest was not allocated" — the candidate never executed. GET /benches shows no downtime interval over either run window, so it is a persistent lane defect, not an outage; both unedited evidence blocks (jobs 586@986093d879... and 4278@986093d879...) are in the PR body and a blocker comment links them. Unblocks when bench-ci#2594 lands and a lane job at this head completes; then paste its evidence block and report done. The PR stays draft.

    The runner resumes this issue when that one closes.

  3. added
    blocked
    on Nov 19, 2026
  4. removed
    blocked
    on Nov 21, 2026
  5. pithead-developer commented on Nov 21, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2727. Resumed #663 after bench-ci#2594 landed: merged develop into the branch (head e9c5b24, file-budget gate clean, both branch suites green locally, all GitHub tiers 1–3 green) and resubmitted the tier4-kvm proof. Job 4386 got past the formerly broken pre-flight but died 93 s in, still lane-side: the serial log shows the lane's cloud-init seed installing qemu-guest-agent but never enabling/starting it, so the agent never comes up and the candidate never executes — filed as bench-ci#2727 (needs-triage) with the unedited evidence and the timeline. PR #742 body carries the new evidence block and a blocker comment was posted (#742 (comment)); the PR stays draft until a lane job completes at this head.

    The runner resumes this issue when that one closes.

  6. added
    blocked
    and removed
    blocked
    on Nov 21, 2026
  7. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2748. Job 4482@f30d2b45 errored again, but this time on a bench already at 3369cf7, which has the bench-ci#2746 fix. The serial log shows qemu-guest-agent now starts but times out waiting for dev-virtio-ports/org.qemu.guest_agent.0, so the lane's guest domain has no guest-agent virtio-serial channel. This is a lane defect, filed as bench-ci#2748, and the candidate never ran. The branch is unchanged: GitHub tiers 1–3 are green at f30d2b4 and the round-2 review found nothing. I commented the blocker on PR #742. To unblock, bench-ci#2748 has to be fixed and deployed to the tier4-kvm bench. Then resubmit tier4-kvm at f30d2b4 with --new-attempt, using the same note as before.

    The runner resumes this issue when that one closes.

  8. added
    blocked
    on Nov 23, 2026
  9. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.21.0. #733 (v1.21.0) depends on its proof, and it has an open PR.

  10. removed
    blocked
    on Nov 30, 2026
  11. pithead-developer commented on Nov 30, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2845. Job 4786@6253670 errored 7 s in: the lane's virt-install call rejects --channel option target_name (Unknown --channel options: ['target_name']). The agent-channel fix from bench-ci#2750 therefore stops the guest from being created at all, and the candidate never ran. This is a lane defect, filed as bench-ci#2845. Nothing in this branch changed: head 6253670 merges cleanly and all GitHub checks passed. I commented the blocker on PR #742. To unblock, bench-ci#2845 has to be fixed and deployed. Then resubmit tier4-kvm at 6253670 with --new-attempt.

    The runner resumes this issue when that one closes.

  12. added
    blocked
    and removed
    blocked
    on Nov 30, 2026
  13. pithead-developer commented on Dec 4, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2913. bench-ci#2845 is closed and its fix (#2896, 410de15) is merged. It is not deployed yet: every bench in GET /benches still reports a commit that predates 410de15, so a tier4-kvm resubmit would fail the same way as job 4786. I filed "Deploy pending: 410de15" as bench-ci#2913 (none existed) and posted the blocker on PR #742. The branch is unchanged: head 6253670 merges cleanly, GitHub checks passed, and the offline guest-battery suite passed. When the fleet reports a commit that includes 410de15, resubmit tier4-kvm for 6253670 with the original arguments and --new-attempt, then print the evidence block into the PR body.

    The runner resumes this issue when that one closes.

  14. added
    blocked
    and removed
    blocked
    on Dec 4, 2026
  15. pithead-developer commented on Dec 4, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2918. Job 4895@8f04c08 failed, and the cause is in the lane, not this branch. The guest booted, so the #2896 fix works. The commit's driver then refused the config the lane rendered: api_allow_from: "127.0.0.1/32, ::1/128", with the log line "FAIL: prepared config api_allow_from must be one valid address or network". RigForge accepts a single address or CIDR (rigforge.sh:555, docs/configuration.md:65), so the lane's two-entry value is invalid for the product, and the battery phases did not run. I filed bench-ci#2918 for it. The fix is to render 127.0.0.1/32, with a fixture check and a deploy. I posted the blocker on PR #742 and put the unedited evidence block in its body. Head 8f04c08 is otherwise unchanged: it merges cleanly, all 28 GitHub checks passed, and the offline guest-battery suite passed 59 of 59. Once #2918 is fixed and deployed, resubmit tier4-kvm for 8f04c08 with --new-attempt.

    The runner resumes this issue when that one closes.

  16. added
    blocked
    on Dec 4, 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

    blockedenhancementtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions