Skip to content

Restore-unit-capture selftest lacks the pregate evidence helper #3795

Closed

Description

@pithead-developer

What's the problem

The restore-unit-capture selftest fixture does not define harness_clear_pregate_evidence, which the extracted e2e main now calls. The fixture stops before exercising the intended capture-refusal and read-only paths, and its EXIT handler records unintended fixture restoration calls.

What it impacts

The required Shell tests (standalone suites + tooling) check fails on PR #3512. This is a selftest fixture failure; a live restoration defect is not established.

How I found it

Job 124297737522 at f9905ce06da9c329c0fc7cb9015076056a554eb8 reports selftest-restore-unit-capture.sh: line 173: harness_clear_pregate_evidence: command not found, followed by restore-unit-capture self-test: 47 passed, 6 failed and exit 1. The fixture stubs harness_clear_check_evidence, but not the pregate helper. Its file and the helper implementation are unchanged from PR #3512's base. Open-issue searches for the selftest and helper found no canonical owner.

How important is it

Required-check blocker: unrelated changes inheriting this fixture cannot complete their integration selftests, and the intended refusal assertions are not reached.

Acceptance criteria

  • The fixture reaches its intended failed-capture, interrupted-capture and read-only paths without missing helper errors.
  • Preserve assertions that capture refusal and interruption cause no provisioning, backup, wallet capture, borrowing, deployment or restoration mutation.
  • The focused selftest and required standalone/tooling check pass; show the existing fixture failing before the fix.

Possible solutions

Update the isolated fixture to provide the current e2e helper contract, or load the relevant real helper with safe fixture dependencies. Do not weaken the refusal, interruption or read-only assertions.

Activity

  1. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    The identical fixture failure also blocks PR #2728 at 9ccf2d1: standalone/tooling job 124299599190 in run 41124558530 reports harness_clear_pregate_evidence: command not found, then restore-unit-capture self-test: 47 passed, 6 failed, and exits 1. The candidate does not change that fixture or the e2e helper.

  2. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    The same failure blocks PR #3789 / issue #3786 at 119faabf71928092cc2af4bdb944eb5134c3b97d. Standalone/tooling job 124310175133 reports selftest-restore-unit-capture.sh: line 173: harness_clear_pregate_evidence: command not found, then restore-unit-capture self-test: 47 passed, 6 failed; make test-integration-selftest exits 2. The candidate changes only donation tests and their documentation; the fixture, e2e.sh and detached-harness helper are unchanged from its base. The required Dashboard Docker-stage check passes. PR #3789 is waiting for this canonical fixture fix before integrating it and obtaining new-head CI evidence.

  3. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    The same failure occurs on Overview PR #3790 at 28ea9a3cef2b39a2a4169a6eb4b5e26aaf1bdb38: Shell job 124313578971 reports selftest-restore-unit-capture.sh: line 173: harness_clear_pregate_evidence: command not found, then restore-unit-capture self-test: 47 passed, 6 failed and exit 1. The Overview diff does not touch this fixture or helper. Reusing this issue as the owner of that required-check failure; no assertions are weakened in the Overview PR.

  4. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    The same fixture failure blocks Earnings PR #3784 at 4cd66fae2b31197b2627699015443ccc0a7d51c9. Standalone/tooling job 124343791275 fails in make test-integration-selftest: selftest-restore-unit-capture.sh:173 reports harness_clear_pregate_evidence: command not found, followed by restore-unit-capture self-test: 47 passed, 6 failed; make exits 2.

    gh api --allow-escape-sequences repos/p2pool-starter-stack/pithead/actions/jobs/124343791275/logs exited 0 and supplied the retained raw evidence. The Earnings diff changes none of the fixture, e2e.sh or lib/detached-harness.sh. Reusing #3795 and its fix PR #3796; no separate defect or workaround is added. After the fix lands, the Earnings branch will merge the updated base and obtain new-head required-check evidence.

  5. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    Matching recurrence from #3761 / PR #3762: standalone job 124302606486 at 7fa53f4be0f50cb771f618f5062eb406f06be40b fails the restore-unit-capture fixture with harness_clear_pregate_evidence: command not found, followed by restore-unit-capture self-test: 47 passed, 6 failed. The retained log confirms the missing helper prevents the intended refusal and read-only checks. The Cosign dependency diff does not touch the e2e controller, helper or fixture. No duplicate issue, retry or unrelated fixture change was made in #3761.

  6. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    Matching recurrence from issue #2546 / PR #3785 at 6c36b13a8fe415ef988747ab2f584cf481d0c0a1: standalone/tooling job 124348746802 fails make test-integration-selftest with selftest-restore-unit-capture.sh:173: harness_clear_pregate_evidence: command not found, then restore-unit-capture self-test: 47 passed, 6 failed; make exits 2.

    gh api --allow-escape-sequences repos/p2pool-starter-stack/pithead/actions/jobs/124348746802/logs exits 0 and supplies the retained raw evidence. The fixture stubs only the former cleanup helper while the extracted real preflight calls the replacement. The fixture, e2e preflight and detached-harness helper all match the current base unchanged. Reusing this issue and fix PR #3796; no duplicate defect, retry or workaround is added. PR #3785 will merge the updated base and obtain new-head CI evidence after the fix lands.

  7. pithead-developer commented on Oct 31, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3796.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions