Repository navigation
tests: fix #3972, #3980 — verify the borrowed rig reload and the clearnet fixture apply - #4621
pithead-developer[bot] wants to merge 11 commits into
Conversation
…nostics Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> (cherry picked from commit 4bf1a24)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> (cherry picked from commit e4f262f)
…gnostic Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> (cherry picked from commit 09282a3)
…d selftest Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> (cherry picked from commit b3278a0)
…e 2.1.0 restore helper Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
FAIL What I investigatedThe unit-level work is sound, but the PR has no tier4-e2e or tier4-kvm job on head 6be6f5c, and the body says "tier-4 pending". Both issues' acceptance criteria are bench behaviours, and the diff touches
Reviewed head: What are the gaps
|
|
FAIL What I investigatedRe-review at the unchanged head 6be6f5c (no code diff since round 1; only the PR body and bench evidence changed). I re-derived the four quoted bench-ci jobs, read their logs and artifacts, and compared tier4-e2e job 757 with three same-day jobs on the same bench from other heads. The one red row in job 757 is caused by this PR, not by #2890/#4345 as the body says: the PR renames the rig's stratum worker to
Reviewed head: What are the gaps
|
…t apply tail Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pply tail cannot be redacted Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Blocked on p2pool-starter-stack/bench-ci#2830. The e2e job on b14b71a (768@b14b71a9c69554d09e57d306716096bf18e2b2c2) aborted at the telemetry schema row ( |
…ame out of the log, tighten the clearnet fixture self-test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Blocked on #4677 (develop's tor image no longer builds).
|
What's the problem
Part of #3972
Part of #3980
miner_reloadreturned success although the job's user may onlysudo systemctl stop/startand cannot signal the root process, andwait_workerscounted any worker on the proxy, so worker-dependent e2e rows could pass without the borrowed rig (e2e borrow never moves a bench's own root-run miner, and the worker gate still passes #3972).reserved_node_clearnet_fixturediscarded itspithead applyoutput, applied right after a control restart, and never retried, so one transient conflict failed a ~60-minuteprovisionproof with no cause in the log (tier4-kvm: reserved-node clearnet fixture's host-side apply fails intermittently right after a control commit #3980).Replaces #3990, whose branch carried
develop-v2.1.0commits thatdeveloplacks. The five commits are cherry-picked onto currentdevelop; the only conflict (borrow-fixture.sh,FAILOVER_POOL_PORTbesideMINER_WORKER_NAME) keeps both lines.How I fixed it
miner_reload(now intests/integration/lib/borrow-fixture.sh, withwait_workers) triesrestart, thensudo stop+start, then the user unit, and returns success only when that unit's MainPID changed. There is no signal fallback: a signal proves no reload, so a rig with no restartable unit fails loudly. After astop, a failedstartis retried once; if it still fails the reload fails (the rig stays stopped and the restore path reports it).rig-idpithead-e2e. A rig whose config already names the bench keeps that pool and its ownrig-id, so the dashboard and the rig-control phase still find it under its own name.repoint_minerthen records the bench pool'srig-id, and every worker gate (borrow, each re-arm attempt, rotate) waits for an online worker with that name in/api/state.workers[].name. A pool with no or an emptyrig-iduses its stratumuser, the name xmrig-proxy lists it under. The gate's log lines never print that name, because a stratumusercan be a payout address. A pool with neither, or an unsafe name, falls back to counting proxy workers, with a warning. Because the rig's own pool is no longer tagged, thee2e.shrecovery arm that stripspithead-e2epools leaves it alone, as ondevelop.tests/os/appliance-clearnet-fixture.sh(the node-runtime leg was at its file-budget ceiling). It waits for an idle control runner and a free mutation lock, then retries a failed apply once. Each failed attempt adds its exit status and an output tail to the failure row; the tail is passed throughos_redact_addr(tests/os/lib/redact-addr.sh, the appliance address and secret redactor) and then clipped byscripts/sanitize-test-log.sh. If redaction fails, the tail is withheld and the row says so. Shortcut: "control runner answering" is checked as the path unit active, the service not activating and a free mutation lock; upgrade when the runner exposes a readiness probe. The fixture keeps its scratch output in a privatemktemp -ddirectory and removes it on every path.docs/dev/integration-testing.mdanddocs/dev/testing-strategy.md; budget ceilings lowered for the two files that shrank.onlinestatus, which stays true up to 300 s after a worker's last share; upgrade when the dashboard exposes per-worker connection state.Here is the proof
miner_reloadfails loudly when nothing reloaded.selftest-borrow-reload.shcovers refused restart, refused stop and no user unit; 4 of its checks fail with the old body.rig-idor stratumuser, and the selftests show another worker does not satisfy it. Live proof pending in the same e2e job.lendable_rigs0), so the remote-rig half cannot run.[redacted-address]).provisionruns at one head. Pending: two tier4-kvmprovisionjobs on the final head.selftest-borrow-reload.sh16 passed (the duplicate signal check is replaced by an empty-rig-idcase that fails with the old jq expression);selftest-borrow-rearm.sh45 passed;appliance-node-runtime-leg.sh --self-testpassed, and it fails with the lock check removed and with a literal$'\n'in the row; shellcheck at warning level clean apart from SC2337, which the local 0.12.0 reports on untouched lines (the pin is 0.11.0);make lint-pithead-buildOK;make lint-file-budgetpasses on a test merge withdevelopand fails on the unmerged head only becausedeveloplowered an unrelated ceiling.Build image (tor)fails because the pinned Alpine tor package is gone, as it does for every head until Pin-bump workflows push their branch but cannot open the PR #4677 is fixed.Shell tests (pithead suite, block 5)failed one assertion outside this diff (a multi-line stamp is refused,tests/stack/appliance/test-appliance-build-compose-source.sh).develop's own Shell run passed it at 17ae627. It will be re-examined after mergingdevelop.selftest-borrow-reload.sh15 passed, 0 failed (4 of them fail with the fixture from 6be6f5c: the re-arm gate now drives the realrepoint_miner, a pre-existing pool keepsrig7, an untagged pool stays untagged with the count fallback, an unsaferig-idis refused);selftest-borrow-rearm.sh45 passed;appliance-node-runtime-leg.sh --self-testpassed, and it fails when the tail skipsos_redact_addr(a 95-character address must read[redacted-address]); shellcheck at warning level clean;make lint-file-budgetandmake lint-pithead-buildOK after mergingdevelop.bench-ci job 768@b14b71a9c69554d09e57d306716096bf18e2b2c2 · pithead · tier4-e2e
Generated by
bench-ci evidence 768@b14b71a9c69554d09e57d306716096bf18e2b2c2; re-run it to check.bench-ci job 685@b14b71a9c69554d09e57d306716096bf18e2b2c2 · pithead · tier4-kvm
options: {"old_image": false, "phases": ["provision"]}
status: completed · conclusion: failure · exit 1 · 46m 50s
baseline verified: yes · rig restored: n/a
node guard: not recorded · no comparison recorded
steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
host audit: job 685: docker object inventory unavailable
rows: 317 pass · 2 fail · 6 skip (missing 6)
image sha256: system.img 05d124b8d3e07bbd22fb0dad1cd36d3e4ac31f5ed0f73aab1094ceb8081ddc0e
failed rows:
Generated by
bench-ci evidence 685@b14b71a9c69554d09e57d306716096bf18e2b2c2; re-run it to check.768: on the self-borrowing bench the rig's own pool was kept untouched, but it carries no
rig-id, so the gate fell back to the count (! the bench pool carries no usable rig-id, then✓ 1 worker(s) mining through the test bench). Head 1fa668f therefore gates on the pool's stratumuserwhen it has norig-id. The run then aborted attelemetry DB is valid … (#196)withschema drift in: worker_history, before rigforge-control. That is bench state, not this PR: the previous job on the same bench, 766@014e5e7b (the branch of Dashboard: fix #4520 — record and plot an honest, source-named per-rig hashrate #4542, which addsrateandsourcecolumns toworker_history), failed the same row just before, and this PR touches no dashboard code. Filed as bench-ci#2830.685: the reserved-node leg passed after the clearnet fixture (
approved endpoints passed host preflight…,approved-node fixture restored…). The only red rows are the two migration-leg rows fromold_image=false(bench-ci#2747). Thetests/os/files are unchanged since b14b71a.Head 1fa668f:
selftest-borrow-reload.sh16 passed (the stratum-user case fails on b14b71a's fixture);selftest-borrow-rearm.sh45 passed. bench-ci#2830 is closed: the rig bench's database was restored on 12-01, and bench-ci#2902 added a guard. Later e2e jobs on that bench passed the schema row.Previous head 6be6f5c. The first attempt ran none of this PR's rows: the e2e job was routed to a bench lending 0 rigs (bench-ci#2820), and the KVM job had
old_imageadded and found no 2.0.4 baseline (bench-ci#2747, occurrence added):bench-ci job 1120@6be6f5c65ff3e1a5a9efc7b8fa920bdf6dc5a64c · pithead · tier4-e2e
Generated by
bench-ci evidence 1120@6be6f5c65ff3e1a5a9efc7b8fa920bdf6dc5a64c; re-run it to check.bench-ci job 847@6be6f5c65ff3e1a5a9efc7b8fa920bdf6dc5a64c · pithead · tier4-kvm
options: {"old_image": true, "phases": ["provision"]}
status: completed · conclusion: failure · exit 1 · 11m 16s
baseline verified: yes · rig restored: n/a
node guard: not recorded · no comparison recorded
steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
host audit: job 847: docker object inventory unavailable
rows: 134 pass · 1 fail · 1 skip (missing 1)
image sha256: system.img 6fd9e5083b9d9f18806f235f077375e273b75bbb68e390e752cdc3ad3418aa84
failed rows:
Generated by
bench-ci evidence 847@6be6f5c65ff3e1a5a9efc7b8fa920bdf6dc5a64c; re-run it to check.Rerun on 6be6f5c:
bench-ci job 757@6be6f5c65ff3e1a5a9efc7b8fa920bdf6dc5a64c · pithead · tier4-e2e
Generated by
bench-ci evidence 757@6be6f5c65ff3e1a5a9efc7b8fa920bdf6dc5a64c; re-run it to check.bench-ci job 432@6be6f5c65ff3e1a5a9efc7b8fa920bdf6dc5a64c · pithead · tier4-kvm
options: {"old_image": false, "phases": ["provision"]}
status: completed · conclusion: failure · exit 1 · 41m 54s
baseline verified: yes · rig restored: n/a
node guard: not recorded · no comparison recorded
steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
host audit: job 432: docker object inventory unavailable
rows: 316 pass · 3 fail · 6 skip (missing 6)
image sha256: system.img 3bda7313c1738c7077c075ac359a2a8e8214b0cec2e8b526288a7542e49b9b76
failed rows:
Generated by
bench-ci evidence 432@6be6f5c65ff3e1a5a9efc7b8fa920bdf6dc5a64c; re-run it to check.757's red row was caused by this PR at 6be6f5c, not by rigforge-control setup: dashboard never re-reads the supplied rig within 120s after control setup (job 1698) #2890/bench rig: 'supplied rig exposes its enriched feed after control setup' has no owning issue — the rig refuses the derived read credential (stale http-auth-refusal) #4345. On the self-borrowing bench, the fixture renamed the rig's own pool to
rig-idpithead-e2e. The dashboard listed the rig under that name, andrun-rig-control.shnever found it under--rig-name(worker_found: false). rigforge-control failed, and lifecycle, auth-fail-closed and svc-restart were skipped, so no re-arm ran. The same phases passed on other heads on the same bench that day. Head b14b71a keeps the rig's ownrig-id(see How I fixed it).In 432, the reserved-node leg passed end to end after the clearnet fixture:
approved endpoints passed host preflight and p2pool consumed Tari chain_id from the current startupandapproved-node fixture restored the original local-node configuration. The red rows are not this PR's: two are migration-leg rows fromold_image=false(bench-ci#2747). The third,guest healthy Tor recovery refusal proof failed, runs before the fixture, is in files this PR does not touch, and is filed as provision: the guest healthy Tor recovery refusal row fails without saying why #4652.Ponytail pass: nothing cut beyond what tests: fix #3972, #3980 — verify the borrowed rig reload and the clearnet fixture apply #3990 already trimmed; the new file is a budget-forced split.