You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tier4-e2e row #1397 (p2pool merge-mining gRPC round-trip) fails falsely on a long-running stack whose log rotated #3298
The check looks for a MergeMiningClientTari line in the first 2000 lines after p2pool's container started. In a mode: check run against a long-running stack, the container's json-file log (3×10 MB) can rotate that startup line away. On 2026-10-09 this happened after about 4,500 get_miner_data errors while monerod was down.
The row then fails with "p2pool built no merge-mining client, or the log could not be read". Yet p2pool held established TCP connections to Tari's merge-mining gRPC port and was building templates normally. The bench job was 2387, tier4-e2e mode: check: 78 pass, 1 fail (this row).
Ask: tell the two cases apart.
If the oldest retained log line is newer than the container's StartedAt, the startup evidence is gone. Report the row as missing (skip) with that reason, or fall back to a live probe: an established connection from p2pool's network namespace to the configured merge-mine port, or a fresh merge-mining log line.
Keep failing when the full log is present and has no client line.
Filed by the devops pass while working p2pool-starter-stack/bench-ci#1647.
Moved from p2pool-starter-stack/bench-ci#1651 by operator ruling: the row assertion is tests/integration/lib/mergemine-probe.sh and the log retention is the docker-compose.yml logging block, both pithead's.
Fix direction: when the oldest retained p2pool log line is newer than the container StartedAt, fall back to a live proof (established connection from p2pool's network namespace to the configured merge-mine gRPC port, or a fresh MergeMiningClientTari line in the current window). Only when the full log is present and has no client line does the row stay red. If neither live proof is reachable, report missing with the rotation reason, never pass. Raising retention is not the fix. Evidence: rotated case red then green against a fixture log whose first line postdates StartedAt, plus one tier4-e2e mode: check job on the head.
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.
Questions before work continues (answer here, then remove the question label):
May I classify startup evidence as lost only when the oldest retained timestamp is more than 60 seconds after StartedAt, rather than merely newer? My default is a 60-second allowance because ordinary startup logging also follows StartedAt, and the probe documents merge-mining initialization around 17.5 seconds; a literal comparison could incorrectly skip a broken client with complete logs.
Ruling: Take the 60-second startup allowance in tests/integration/lib/mergemine-probe.sh, documenting it as a conservative heuristic rather than proof of rotation. A merely later first timestamp must not turn a missing client into a skip: within the allowance, retain the existing failure; beyond it, use the approved live connection or fresh client-log proof, otherwise report missing with the evidence-loss reason, never pass. Known-complete startup logs without a client remain red. Cover normal delayed startup, the 60-second boundary, rotated logs with and without live proof, and the complete-log negative control; show the rotated regression red then green. Run one tier4-e2e mode: check job on the current head and quote its conclusion; return waiting with bench_jobs until it finishes.
Waiting on a transient bench_outage condition, not on another issue. bench-ci submit for tier4-e2e (targeted, workers 1) on b84036e failed twice with 'No route to host' from the configured bench URL; evidence reads also failed after 5 attempts. No job was created. Retry with idempotency key 9d3af017179d4f90b5a65e7bf597592c. The runner re-checks it (first at 2026-10-19T13:23Z, at most 5 times).
Questions before work continues (answer here, then remove the question label):
A bench_outage condition has held since 2026-10-19T13:08Z through 5 re-checks: bench-ci submit tier4-e2e (targeted, workers 1) on b84036e: 503 draining, then No route to host 2 minutes later, across 5 re-checks over several days. No job exists. Retry with --idempotency-key 9d3af017179d4f90b5a65e7bf597592c. Give the worker one bounded recovery step, or identify a genuine dependency; default: the worker re-checks and resubmits.
Ruling: Take one bounded recovery attempt when the configured lane permits: read health through the supported client once, then, only if admission is available, submit one targeted tier4-e2e job with one worker on b84036e using idempotency key 9d3af017179d4f90b5a65e7bf597592c. bench-ci#2109 reports connectivity recovered before a separate draining refusal, so neither symptom establishes the current cause. If routing still fails, reuse bench-ci#2109; if draining persists, find or file a separate recovery issue after checking for an existing owner hold. Route any required host change through that recovery issue as infra, with evidence, the proposed change, verification and rollback; do not clear drains or repair hosts. Retain this implementation issue, PR and worktree, and wait on the actual recovery rather than restarting capped retries. Once accepted, return waiting with the job in bench_jobs; after completion, read the owned row and replace pending/stale PR claims with generated current-head evidence. The semantic change in tests/integration/lib/mergemine-probe.sh requires fresh adversarial review, followed by formal owner approval on the current head. Keep the existing milestone and scheduling holds.
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.
Blocked on #3923. Blocked on the base-image CVE fixes, not on this diff. All five failing checks (Build image for dashboard, monero, p2pool, tor and xmrig-proxy) fail at the Trivy scan on head ab9853b. The apt CVE-2026-109518 affects every image and is tracked in #3923, with fix PR #3926. The musl-utils CVE-2026-107891 affects the tor image and is tracked in #3929, with fix PR #3930. Both fix PRs are open and unmerged, so develop-v2.1.0 itself is red and no head can pass those checks until they land. This PR changes only tests/integration and one docs page, so a fix here would be out of scope. Every other check on the head is green, and tier4-e2e job 783 (already in the PR body) passed the owned merge-mining rows. I posted the PR comment with this explanation. When #3926 and #3930 merge, merge develop-v2.1.0 into this branch, push, and re-check. A new head is needed for the reviewer to look again.
The runner resumes this issue when that one closes.
Blocked on #3940. Blocked on #3940. #3923 is closed, but #3926 merged into develop-v2.0.3, not into develop-v2.1.0 where this PR targets. I merged the current develop-v2.1.0 into the branch (head b8181ec) and the five Build image checks still fail at the Trivy scan. apt CVE-2026-109518 hits four images, and musl-utils CVE-2026-107891 hits tor (#3929/#3930). #3940 tracks the fix reaching develop-v2.1.0. This diff touches only tests/integration and one docs page, so I did not fold an image fix into it. Finished: the probe fix and rotation suite, the verifier pass, comment and doc fixes, and tier4-e2e job 783 on the previous head (owned merge-mining rows passed; the one red row is #3913's). After #3940 closes, merge the base again, push, confirm the five checks, and rerun tier4-e2e on the final head, since the head has changed. I posted this explanation on the PR.
The runner resumes this issue when that one closes.
Activity
pithead-developer commentedon Oct 14, 2026
Questions before work continues (answer here, then remove the
questionlabel):May I classify startup evidence as lost only when the oldest retained timestamp is more than 60 seconds after StartedAt, rather than merely newer? My default is a 60-second allowance because ordinary startup logging also follows StartedAt, and the probe documents merge-mining initialization around 17.5 seconds; a literal comparison could incorrectly skip a broken client with complete logs.
pithead-architect commentedon Oct 14, 2026
Ruling: Take the 60-second startup allowance in
tests/integration/lib/mergemine-probe.sh, documenting it as a conservative heuristic rather than proof of rotation. A merely later first timestamp must not turn a missing client into a skip: within the allowance, retain the existing failure; beyond it, use the approved live connection or fresh client-log proof, otherwise reportmissingwith the evidence-loss reason, never pass. Known-complete startup logs without a client remain red. Cover normal delayed startup, the 60-second boundary, rotated logs with and without live proof, and the complete-log negative control; show the rotated regression red then green. Run one tier4-e2emode: checkjob on the current head and quote its conclusion; returnwaitingwithbench_jobsuntil it finishes.pithead-developer commentedon Oct 19, 2026
Waiting on a transient bench_outage condition, not on another issue. bench-ci submit for tier4-e2e (targeted, workers 1) on b84036e failed twice with 'No route to host' from the configured bench URL; evidence reads also failed after 5 attempts. No job was created. Retry with idempotency key 9d3af017179d4f90b5a65e7bf597592c. The runner re-checks it (first at 2026-10-19T13:23Z, at most 5 times).
pithead-developer commentedon Oct 19, 2026
Questions before work continues (answer here, then remove the
questionlabel):A bench_outage condition has held since 2026-10-19T13:08Z through 5 re-checks: bench-ci submit tier4-e2e (targeted, workers 1) on b84036e: 503 draining, then No route to host 2 minutes later, across 5 re-checks over several days. No job exists. Retry with --idempotency-key 9d3af017179d4f90b5a65e7bf597592c. Give the worker one bounded recovery step, or identify a genuine dependency; default: the worker re-checks and resubmits.
pithead-architect commentedon Oct 19, 2026
Ruling: Take one bounded recovery attempt when the configured lane permits: read health through the supported client once, then, only if admission is available, submit one targeted tier4-e2e job with one worker on b84036e using idempotency key 9d3af017179d4f90b5a65e7bf597592c. bench-ci#2109 reports connectivity recovered before a separate draining refusal, so neither symptom establishes the current cause. If routing still fails, reuse bench-ci#2109; if draining persists, find or file a separate recovery issue after checking for an existing owner hold. Route any required host change through that recovery issue as
infra, with evidence, the proposed change, verification and rollback; do not clear drains or repair hosts. Retain this implementation issue, PR and worktree, and wait on the actual recovery rather than restarting capped retries. Once accepted, returnwaitingwith the job inbench_jobs; after completion, read the owned row and replace pending/stale PR claims with generated current-head evidence. The semantic change intests/integration/lib/mergemine-probe.shrequires fresh adversarial review, followed by formal owner approval on the current head. Keep the existing milestone and scheduling holds.12 remaining items
pithead-developer commentedon Nov 2, 2026
Operator: draft PR #3905 from the implementation session, held with
operator-actionfor operator review.pithead-developer commentedon Nov 6, 2026
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.
pithead-developer commentedon Nov 7, 2026
Blocked on #3923. Blocked on the base-image CVE fixes, not on this diff. All five failing checks (Build image for dashboard, monero, p2pool, tor and xmrig-proxy) fail at the Trivy scan on head ab9853b. The apt CVE-2026-109518 affects every image and is tracked in #3923, with fix PR #3926. The musl-utils CVE-2026-107891 affects the tor image and is tracked in #3929, with fix PR #3930. Both fix PRs are open and unmerged, so develop-v2.1.0 itself is red and no head can pass those checks until they land. This PR changes only
tests/integrationand one docs page, so a fix here would be out of scope. Every other check on the head is green, and tier4-e2e job 783 (already in the PR body) passed the owned merge-mining rows. I posted the PR comment with this explanation. When #3926 and #3930 merge, merge develop-v2.1.0 into this branch, push, and re-check. A new head is needed for the reviewer to look again.The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 8, 2026
Blocked on #3940. Blocked on #3940. #3923 is closed, but #3926 merged into develop-v2.0.3, not into develop-v2.1.0 where this PR targets. I merged the current develop-v2.1.0 into the branch (head b8181ec) and the five Build image checks still fail at the Trivy scan. apt CVE-2026-109518 hits four images, and musl-utils CVE-2026-107891 hits tor (#3929/#3930). #3940 tracks the fix reaching develop-v2.1.0. This diff touches only tests/integration and one docs page, so I did not fold an image fix into it. Finished: the probe fix and rotation suite, the verifier pass, comment and doc fixes, and tier4-e2e job 783 on the previous head (owned merge-mining rows passed; the one red row is #3913's). After #3940 closes, merge the base again, push, confirm the five checks, and rerun tier4-e2e on the final head, since the head has changed. I posted this explanation on the PR.
The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 12, 2026
Merged in #3905.
Handle rotated p2pool logs without false failures (#3905)