Skip to content

Replace the bench lock protocol and parent-lock handshake with a generic optional lock #4232

Open

Description

@pithead-developer

What's the problem

tests/integration/lib.sh rig_lock uses the fleet lock, holder and proof paths copied from RigForge. parent-lock.sh implements an inherited-descriptor handshake only so the bench-ci runner can hold the lock.

What it impacts

The live harness needs a fleet-shaped root path; about 15 selftests and several docs encode the protocol.

How I found it

Inventory 2026-11-17: tests/integration/lib.sh, lib/parent-lock.sh, rig-key-ledger, wallet recovery, e2e.sh, run.sh, selftests, release-server and testing docs.

How important is it

P3-hardening, large effort. Shares the contract with RigForge (p2pool-starter-stack/rigforge#735); change in the same cycle.

Acceptance criteria

  • One generic lock via PITHEAD_E2E_LOCK_FILE with a user-writable default, holder breadcrumb beside it, exit 75 when busy.
  • parent-lock.sh and RIG_LOCK_PARENT_* removed; selftests updated.
  • Selftests pass with neither bench-ci nor pd installed.

Possible solutions

bench-ci holds its own lock around the job, so no descriptor passes into the harness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-hardeningrefactortesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions