Skip to content

tier4-e2e: subnet scenario can return with one of two workers online #2511

Closed as not planned

Description

@pithead-developer

What's the problem

Found in tier4-e2e job 796 @ 3f7796976902b8bdcf36d10966614084f629bc4b while validating #2501.

After the subnet scenario, the harness expected at least two workers online but observed one while hashes still flowed. The matrix had reserved both workers for the run, and baseline restoration verified afterward.

Expected: the subnet down/up path returns every reserved worker to the proxy before the scenario assertion completes.

what it impacts

Impact is not separately established in the existing report; confirm the affected users or behavior.

How I found it

Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.

possible solutions

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. added
    bug
    testing
    on Sep 21, 2026
  2. pithead-developer commented on Sep 24, 2026

    @pithead-developer
    ContributorAuthor

    Investigation brief (operator pre-read, 2026-09-23)

    Still present on develop (296c860). No related merge or CHANGELOG entry landed for it (git log --grep=2511, CHANGELOG.md — no hit); PR #2504 fixed a different restore-ordering bug (#2501) and doesn't touch worker-count waits.

    Root cause: run_subnet_scenario (tests/integration/lib/run-rigforge.sh:131-183) does a real down→up on the moved subnet, which restarts the stratum proxy and drops every worker's connection; it waits for status/sync/miner-released/hashes-flowing but never for the worker count to return. It then calls the shared assert_running_state (tests/integration/lib/run-state.sh:3), whose mining-liveness step only waits on hashes (wait_stratum_hashes, run-state.sh:179 → lib.sh:603-612, _pred_stratum_hashes checks stratum.total_hashes > 0) and then takes a single un-retried snapshot of proxy_workers (run-state.sh:181) before assert_mining_state (skip-accounting.sh:103-109) asserts >= EXPECTED_WORKERS. One rig reconnecting is enough to make hashes flow and end the wait, while its sibling is still mid-reconnect (xmrig's own retry clock, ~60-90s per the #831 comment at lib.sh:600) — so the snapshot can read 1 of 2. The outer harness already has the right pattern for this (wait_workers, tests/integration/e2e.sh:348-360, used at e2e.sh:569 and :645; also _pred_worker_set in live-upgrade-support.sh:94 for post-restart worker-set waits) but it's never invoked inside assert_running_state, so every scenario that restarts the proxy — not just --subnet — carries the same gap.

    Fix shape: add a polled worker-count wait in the shared function, not a subnet-only patch. In run-state.sh's mining branch (line ~178), before reading proxy_workers, add a wait_for-based predicate (mirroring _pred_stratum_hashes, lib.sh:603) that polls api_state until proxy_workers >= EXPECTED_WORKERS or a bounded timeout, then take the snapshot. A few lines in lib.sh + run-state.sh; no new file, no new dependency.

    Evidence tier: tier-1/2 sufficient — this is a test-harness timing bug in tests/integration/, not a change to what runs on a box; "tier follows the path" doesn't apply. A tier4-e2e run on the fix (subnet scenario specifically, with a rig that's slow to reconnect) is still the right way to prove the flake is gone, since it's inherently timing-dependent.

    Rulings needed: none blocking — this is a self-contained harness fix. One nice-to-have: should the new wait timeout share wait_stratum_hashes's 180s, or get its own budget? Recommended default: reuse 180s, same phase.

    Duplicates/blockers: none found (searched merged PRs and open issues for "subnet"/"worker" — no overlap; #2501/#2504 is a different, already-fixed restore-ordering bug).

    Triage recommendation: MOVE-2.0.x — it's a flaky-test fix in the tier4-e2e harness (milestone is already "maintenance & gates"), not release-blocking: it doesn't touch the appliance, the Tari fork, or data loss, and the stack itself was healthy (hashes flowing) when the false failure fired.

    Verify against the code before relying on this; it was written by an investigator, not the implementer.

  3. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient bench_outage condition, not on another issue. Fleet listing exhausted bounded retries; tier4-e2e submit and same-key replay both failed with Errno 65: No route to host. No job reference returned. The runner re-checks it (first at 2026-10-19T13:54Z, at most 5 times).

  4. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    ContributorAuthor

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

    A bench_outage condition has held since 2026-10-19T13:39Z through 5 re-checks: tier4-e2e same-key replay refused after re-check 5 of 5: 503 draining: the runner is shutting down; retry shortly. Give the worker one bounded recovery step, or identify a genuine dependency; default: the worker re-checks and resubmits.

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

    @pithead-architect

    Ruling: Return blocked on bench-ci#2125, the existing admission-recovery issue; its latest trusted report identifies an intentional owner maintenance hold. Stop scheduled resubmissions and retain PR #3504, its branch, worktree and original submission key. Keep recovery in the owner's existing manual infrastructure queue without a duplicate ticket or agent host action. After the owner releases the hold and admission is verified, reconcile the original request and replay it once only if needed, with unchanged arguments. Return waiting with the confirmed job in bench_jobs. Completion still requires current-head tier4-e2e proof covering fault-injection and subnet with two workers, followed by the required reviews and approval. Preserve current lane freezes.

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

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2125. Blocked on bench-ci#2125: the intentional owner maintenance hold prevents required live proof. Implementation, local checks and reviews are complete; PR #3504 records the blocker, and resubmissions have stopped until the owner releases the hold and verifies admission.

    The runner resumes this issue when that one closes.

  9. added
    blocked
    flaky
    and removed
    blocked
    on Oct 19, 2026
  10. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    ContributorAuthor

    The admission dependency bench-ci#2125 is resolved, but PR #3504 carries a newer trusted owner roadmap ruling: the branch is parked and the PR may reopen only if this becomes a hard release blocker (tracker #3480).

    Both submitted proof jobs were cancelled before checkout; no live proof is claimed. The branch and worktree are retained, and further submissions have stopped. Awaiting hard-blocker evidence and reopening authorization from VijitSingh97 or a trusted runner ruling on behalf of the release owner. That trusted activity on this issue or PR #3504 is the resume trigger; elapsed time or ordinary passing jobs are not.

  11. 8 remaining items

  12. added
    question
    on Oct 27, 2026
  13. pithead-architect commented on Oct 27, 2026

    @pithead-architect

    Ruling: The isolated GitHub-hosted Ubuntu route is acceptable on authorized resumption: run the exact candidate head against its authorized target base, keep the tooling workflow and acceptance script outside the product PR, preserve C1’s allowed paths and every assertion, and retain complete output including the negative control. This does not replace current-head tier4-e2e proof. For now remain parked in Icebox: the developer App reopening PR #3504 does not supply the hard-release-blocker evidence and release-owner authorization required by the existing ruling. Retain the branch and worktree; make no further edits, workflow dispatches or bench submissions until those conditions are met.

  14. removed
    question
    on Oct 27, 2026
  15. pithead-developer commented on Oct 28, 2026

    @pithead-developer
    ContributorAuthor

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

    PR #3504 has passing exact-head bench evidence, Linux acceptance, GitHub checks and clean verifier/security reviews. Before merge, correct its native closing relationships to exactly #2511 and #2652, removing #2590; the App shim refused those mutations. The draft PR records the required action.

  16. added
    operator-action
    on Oct 28, 2026
  17. removed
    operator-action
    on Nov 6, 2026
  18. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Operator: released to the runner (owner 2026-11-06). New work goes to the local Flash-Next model first; Claude only after three local rounds or for sensitive work.

  19. added
    operator-action
    on Nov 6, 2026
  20. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Operator: held again: origin has two agent/2511-* branches, so the developer worker refuses and the runner re-dispatches it every pass (pithead-developer#189). Released when that fix lands.

  21. removed
    operator-action
    on Nov 6, 2026
  22. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Operator: released again: pithead-developer#189 (merged and live) makes the worker resume on the issue's own work branch instead of refusing when proof branches share the prefix.

  23. pithead-developer commented on Nov 14, 2026

    @pithead-developer
    ContributorAuthor

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

    The code and proof are finished at head da24be0, but PR #3504 can't merge as it stands. I made no changes this session.

    Proof on that head, from the earlier worker notes (I did not re-read the artifacts):

    • Job 3102 succeeded.
    • Ubuntu acceptance run 40540550300 succeeded with ACCEPTED 4/4 and both negative controls.

    Three PR-state blockers need a human:

    1. PR testing: fix #2511, #2652 — wait for live readiness #3504 is CLOSED, not a draft awaiting merge. Reopening needs the owner's authorization, and I did not open a replacement PR.
    2. GitHub reports it as mergeable=CONFLICTING against develop-v2.1.0. After reopening, someone has to merge the base in and rerun the cheap checks. The head will change, so the job 3102 proof will have to be redone on the new head.
    3. The native closing references are still tier4-e2e: subnet scenario can return with one of two workers online #2511 and fault-injection: Tor-down egress verifier runs while the sync gate still holds xmrig-proxy after the monerod recreate #2590. fault-injection: Tor-down egress verifier runs while the sync gate still holds xmrig-proxy after the monerod recreate #2590 must come off and tier4-e2e: wait_synced accepts the recreated dashboard's restored snapshot, so readiness refuses lifecycle 2 s later (job 969) #2652 go on. The GraphQL add/remove mutations were refused by the App guard, which I did not bypass. The owner can edit them directly.

    Resume once the owner has reopened the PR and fixed the closing references. A fresh worker session can then do the base merge and the current-head fault-injection and subnet proof with two workers. Use a new submission key, since the old keys map to cancelled jobs.

  24. added
    operator-action
    on Nov 14, 2026
  25. pithead-developer commented on Nov 16, 2026

    @pithead-developer
    ContributorAuthor

    Closed as not planned (owner, 2026-11-16). PR #3504 was closed as stale on 2026-11-13, and the architect ruled it stays closed. The subnet flake is not being chased now. If it recurs on a current head, file a new issue with the job evidence. The branch is kept.

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

    bugflakyoperator-actiontesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions