Skip to content

Replace the bench-fleet rig lock convention with a neutral single-rig lock #735

Open

Description

@pithead-developer

What's the problem

rig_lock in e2e-real.sh and e2e-pithead.sh defaults to the bench fleet's shared lock and holder breadcrumb names, written so RigForge gates and Pithead e2e never overlap. About 170 lines of unit tests in tests/run.sh cover it. The rig-named 'busy' messages in both scripts belong to the same contract.

What it impacts

Contributors see a fleet convention and need a root-writable shared path. Names tie RigForge to the other tenant on the bench.

How I found it

Inventory 2026-11-17: tests/e2e-real.sh, tests/e2e-pithead.sh, tests/run.sh lock unit block.

How important is it

P4-code-health; not blocking since RIG_LOCK_FILE, HOLDER and WAIT are already overridable. Medium effort; shares the lock contract with Pithead (p2pool-starter-stack/pithead#4232), change both in the same cycle.

Acceptance criteria

  • Default lock is neutrally named and documented as preventing two gates on one rig, with no mention of Pithead e2e or a bench.
  • Busy messages are generic (no rig hostname).
  • bench-ci sets the env itself and old and new lock names are both honoured by bench-ci before this lands.
  • tests/run.sh lock unit tests updated; make test passes with neither bench-ci nor pd installed.

Possible solutions

Rename defaults and keep the env overrides; or delete the lock and let bench-ci hold it around the job.

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
    P4-code-health
    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

    P4-code-healthoperator-holdrefactortesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions