Skip to content

Rig-miner shell fixture does not arm errexit in its required control #3782

Description

@pithead-developer

What's the problem

The rig-miner fixture fails its required control: control: the errexit runner is armed receives survived. The following best-effort reclaim assertions therefore do not establish their advertised errexit contract.

What it impacts

Required Shell tests (pithead suite, block 5) and aggregate shell checks on develop and PR #3624, which resolves #3623.

How I found it

PR run 41105706213 at 17009a45d773fddc3adc7018166892c21ccd714c reports this exact failure. Develop run 41096015927 at 4fcbeed0293f8a8c3072372717307663e30498a8 independently reports the same control failure. tests/stack/appliance/test-appliance-rig-miner.sh is identical on both heads. The underlying reason the runner suppresses errexit has not been established.

How important is it

High for required CI: the base branch gate fails, and the test cannot currently prove the boot failure-handling contract it claims to exercise.

Acceptance criteria

  • Run the fixture through its registered Linux shell-suite entry point with the armed-runner control passing.
  • Prove the runner exits on a bare failing command before printing survived.
  • Retain the real provision-local-miner reclaim-failure assertions and demonstrate that best-effort failure still succeeds under genuinely active errexit.
  • Make block 5 and the aggregate shell check pass without weakening or skipping assertions.

Possible solutions

Investigate the source/call context of run_rig_errexit and isolate its execution from conditions that suppress errexit. Preserve sandboxing and production behavior; fix the fixture at its shared cause.

Activity

  1. added
    needs-triage
    on Oct 30, 2026
  2. added
    bug
    testing
    on Oct 30, 2026
  3. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    Additional occurrence from #3431 / draft PR #3552 at 596aa54c4a90eca7a1f77a5824c8edce8960fee5: shell block 5 fails control: the errexit runner is armed because it prints survived. The raw failing assertion and helper were inspected; neither is changed by #3552.

    A reviewed correction already exists: #3763 / PR #3764 merged into develop-v2.1.0 as dd3b2cb66701c0f3415fda6316cbdbdc4668eda5. It reuses run_sourced_e for an independent shell and strengthens the negative control; that helper also exists on develop. Please reuse the reviewed correction for this branch rather than a parallel implementation. #3763 was automatically closed again after a reopen, so this issue remains the develop prerequisite. Concurrent duplicate #3787 is closed.

  4. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    Should I resume PR #3779 against develop for both issues, including a portable live-process fixture for #3783 (default: resume that PR because the reported failures affect develop and it already owns the overlapping correction)?

  5. added
    question
    on Oct 30, 2026
  6. pithead-architect commented on Oct 30, 2026

    @pithead-architect

    Ruling: Yes. Resume PR #3779 against develop for #3782 and #3783, retaining the reviewed #3764 correction in tests/stack/appliance/test-appliance-rig-miner.sh. Replace the renamed-sleep assumption in tests/integration/selftest/selftest-hugepage-probe.sh with a bounded portable live process, preserving identity, PID/start-time, hugetlb/thread assertions, negative controls and cleanup; the runner-image pin alone does not satisfy #3783. Through the registered Linux entry points, demonstrate the bare-failure control exiting before survived, real reclaim failure succeeding under active errexit, and the live-process fixture red before and green after its correction. Keep the change scoped to fixtures/workflows, update the PR’s issue links and executed proof in place, and require completed green Actions, current-head agent PASS, then fresh formal owner approval. Continue without another permission checkpoint.

  7. removed
    question
    on Oct 30, 2026
  8. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

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

    Prepared 922a67d23c1f4c9368b7928ba08ce4bfd54ec1ae directly on develop-v2.1.0 with only the fixture change; lint, metadata gates and both code reviews passed. The runner’s pre-push hook rejected the explicitly requested force-with-lease push, leaving the remote unchanged. Before merge, the operator must publish this prepared head through an approved exception, retarget PR #3779 to develop-v2.1.0, and renew Actions and approval; the PR records the evidence.

  9. added
    operator-action
    on Oct 30, 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

    bugneeds-triageoperator-actiontesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions