Skip to content

Make the control-replay e2e phases generic (no bench-ci fixture, reservation unit or runner lock bypass) #734

Open

Description

@pithead-developer

What's the problem

The replay gate authorizes only with a runner-private fixture, a bench reservation systemd unit and a runner context JSON, and dies otherwise. REPLAY_RUNNER_LOCK bypasses rig_lock only for this. tests/test-control-replay.sh hard-codes the same unit name, fixture and refusal text.

What it impacts

The control-replay-thermal and control-replay-pools phases cannot run anywhere but a bench-ci job. The hardware-free test encodes bench behavior.

How I found it

Inventory 2026-11-17: tests/e2e-control-replay.sh (unit-name regex near the top), tests/e2e-pithead.sh (fixture marker, holder skip), tests/test-control-replay.sh.

How important is it

P3-hardening; it is the one place the test code cannot run without bench-ci. Medium effort.

Acceptance criteria

  • Phases take a documented opt-in env for the pools probe JSON and the normal rig_lock; with it unset they skip cleanly. Generic documented env inputs are allowed by the ruling, so this is rename and decouple, not removal.
  • The generic env name is chosen in this issue; p2pool-starter-stack/bench-ci#2558 maps the existing runner input to it before the rename lands.
  • No fixture marker, reservation-unit regex or runner lock bypass remains.
  • test-control-replay.sh asserts skip and refuse behavior with neutral names.
  • A clean clone runs the affected tests with neither bench-ci nor pd installed.

Possible solutions

Generic env such as E2E_REPLAY_POOLS_PROBE replacing the current probe input; bench-ci maps its fixture to it and holds the lock itself. Alternative: move the replay phases out of RigForge into bench-ci.

Release: date 2026-12-04
Who: operator

Activity

  1. added this to the v1.20.0 milestone on Nov 17, 2026
  2. added
    refactor
    testing
    P3-hardening
    on Nov 17, 2026
  3. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    Needs an operator action (do it, then remove the operator-action label):

    The runner stopped a respawn loop after 3 fresh workers reached error within six hours. Inspect the repeated outcome, then remove this label to release one new worker.

  4. added
    operator-action
    on Nov 23, 2026
  5. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.24.0. Trimmed from v1.20.0 (update API only) per the owner. Standalone-neutrality cleanup.

  6. added
    operator-hold
    and removed
    operator-action
    on Dec 1, 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

    P3-hardeningoperator-holdrefactortesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions