Skip to content

network-sequence API allowlist live probe fails on the sequence re-run; the standalone network probe passes in the same job #698

Open

Description

@pithead-developer

What's the problem

In the rigforge tier4-e2e battery, the network-sequence group (connect → worker-api → api-impact → network, re-run in order in one process) fails API allowlist live probe failed, while the same probe (API allowlist rejects a second source while mining) passes in the standalone network phase six minutes earlier in the same job, on the same rig and config. The probe (tests/e2e-pithead-allowlist.sh, called from phase_network in tests/e2e-pithead.sh) exits with a bare exit 1 at about fifteen points and prints nothing, so the cause is unknown: leftover state from the earlier phases, the settle window after the worker restart, or the nft drop counter.

Moved from bench-ci#2544: the row and the phase are rigforge test code, and bench-ci only runs each phase over SSH.

What it impacts

Every rigforge tier4-e2e that includes network-sequence, develop nightlies and per-PR proofs. The row decides the job conclusion and cascades through --after dependencies (a stratum-auth job was cancelled as skipped: dependency job 4144 ended failure). It is part of the nightly failures tracked in rigforge#599.

How I found it

  • bench-ci evidence 4144@2f1b0c375691bd33fb10aa36308ab483b56f7938 (PR rigforge#694): 71 pass, 1 fail, 1 skip (missing 1); failed row [network-sequence] API allowlist live probe failed. The standalone network phase passed all 10 assertions, including the allowlist row, about six minutes before network-sequence failed the same probe.
  • Control on bare develop with no candidate: bench-ci evidence 4049@d071b3d65bce3c08851e2f624cc8fdd595fadae6 shows the same counts (71/1/1) and the same single failed row.
  • In job 4049 the sequence's probe failed 36 s after the control step, against 56 s for the passing standalone run, so it exits early. The only artifact for the phase is the ✗ line; no stderr.
  • No bench downtime overlapped either run; the rig was reserved, restored and healthy.

How important is it

Medium-high while it persists: deterministic across two submissions 25 hours apart, it turns every battery with network-sequence red and pushes a foreign failure onto unrelated PRs.

Acceptance criteria

  • On failure the probe names the step that failed: namespace setup, the 200 check, second-source refusal, drop-counter delta, or hashrate.
  • The cause is identified from a re-run of the sequence and fixed, so a job running network then network-sequence ends with the sequence's allowlist row green.
  • A probe-environment failure (bench timing or state) is reported as an error, never as a red product row.

Possible solutions

Add per-step diagnostics to api_allowlist_probe, re-run the sequence, then compare the nft rigforge api chain state and the second source between the standalone and sequence runs. If the diagnostics show the bench leaving state between phases, file a bench-ci issue with the job id and commit. A rigforge e2e PR that is red only on this row cites this issue as the owner of that row.

Activity

  1. added
    bug
    testing
    needs-triage
    on Nov 17, 2026
  2. added
    size:M
    on Nov 17, 2026
  3. pithead-developer commented on Nov 19, 2026

    @pithead-developer
    ContributorAuthor

    Moved to v1.19.1. A fleet-history review of every failed run found the same pattern. Each one that reached the allowlist probe failed at "API allowlist live probe failed", and the failing runs finished about one config apply sooner than passing runs. The leading hypothesis is a warm-up race in the probe's last step.

    • The probe runs two config applies, and each restarts the miner.
    • It then reads the miner's hashrate exactly once and requires a value above 0.
    • Right after a restart, XMRig's 10 s hashrate window is still empty.

    This explains most failing runs but not all. One failed at the length of a passing run, so it is a hypothesis, not a confirmed cause.

    Requested fix, both parts in one change:

    1. Give every exit 1 in tests/e2e-pithead-allowlist.sh a one-line stderr message naming the step, and keep jq's stderr, so the next red run names the failing step.
    2. Replace the single hashrate read with a bounded poll, retrying every 3 s for up to about 90 s, the way api-impact waits for hashrate. Put it ahead of the first curl.

    Add a stub case for "hashrate null at first, valid later" in tests/test-api-allowlist-probe.sh. If a run still fails with the poll in place, the new messages will show the real step.

  4. added
    flaky
    and removed
    needs-triage
    on Nov 19, 2026
  5. pithead-developer commented on Nov 21, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient bench_outage condition, not on another issue. job 683 preflight: configured mining transport from reserved worker: timeout; /benches shows stack-unhealthy and paused intervals at that time. The runner re-checks it (first at 2026-11-21T03:26Z, at most 5 times).

  6. pithead-developer commented on Nov 21, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2695. Blocked on bench-ci#2695. Both tier-4 attempts on PR #769 head 34c68d9 (jobs 683 and 684, phases network,network-sequence) ended error at preflight with "configured mining transport unavailable (timeout)". They failed about 48 s in, before any candidate phase ran, and no /benches downtime interval covers job 684's run window. The same defect is already tracked on bench-ci#2695, so I added both jobs there and commented on the PR. Finished: the allowlist probe diagnostics and hashrate poll, the dashboard phase fix, stub tests, the verifier pass and all ten GitHub checks green on the head. An earlier job on the previous head passed network and network-sequence with 33 assertions and 0 failed. The dashboard phase has no bench proof because the bench sets no dashboard URL. Once #2695 is fixed, resubmit the same network,network-sequence job on this head and add its unedited bench-ci evidence to the PR body.

    The runner resumes this issue when that one closes.

  7. added
    blocked
    on Nov 21, 2026
  8. removed
    blocked
    on Nov 30, 2026
  9. pithead-developer commented on Nov 30, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2694. Still blocked, now on bench-ci#2694. bench-ci#2695 was closed as its duplicate, and #2694 is still open and holds the same failure and the proposed fix. Jobs 683 and 684 on PR #769 head 34c68d9 (phases network,network-sequence) ended error at preflight with "configured mining transport unavailable (timeout)", before any candidate phase ran. Finished: the change, the verifier pass and all ten GitHub checks on that head. An earlier job on the previous head passed network and network-sequence with 33 assertions and 0 failed. Once #2694 is fixed, resubmit the same network,network-sequence job on this head and add its unedited bench-ci evidence to the PR body. I commented the new blocker on the PR.

    The runner resumes this issue when that one closes.

  10. added
    blocked
    on Nov 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

    blockedbugflakysize:Mtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions