Repository navigation
Description
What's the problem
Part of #2476. Owner priority (2026-10-27): build the opt-in donation feature now, shipping dark. Routing, config rendering and the firewall can be unit-tested, but whether a real xmrig-proxy accepts a third pool, honours its socks5, flips back, and keeps rigs attached is a live question. The only live routing proof today is the XvB one: --xvb-routing-smoke (tests/integration/lib/live-xvb-support.sh:152-300, flag at lib/run-cli.sh:72-76, :275-278, allowlist at lib/harness-args.sh:19, dispatch at run.sh:300). Nothing proves the donation path, and benches must never dial the real project endpoint.
Add a phase --donation-routing-smoke, modelled on run_xvb_routing_smoke, that uses the fake stratum from {{A7}} as a stub endpoint:
- Baseline: healthy stack, miners hashing, the proxy on the P2Pool route (
_pred_proxy_route,live-xvb-support.sh:79;proxy_active_route,proxy_active_poolandproxy_active_socks5inlib/live-state-support.sh:178-182). - Off by default: with
donation.enabledunset, the route does not change across one full controller cycle (600 s,dashboard/mining_dashboard/config/config.py:144). - Enable at the 10 % cap (a 60 s slice lands in the first cycle) with the stub as the destination and
donation.tortrue: the proxy flips to the stub pool and back; during the slice the active pool carries the Torsocks5(aslive-xvb-support.sh:276asserts for XvB); workers stay attached (proxy_workersunchanged); hashes advance (_pred_hashes_advanced,:71). - With XvB on (when the box has it enabled), the XvB slice length is unchanged by the project slice.
- Refusing endpoint: restart the stub in
refusemode; the slice ends early, the route is back on P2Pool and the donation status isfallback(the fail-open behavior of {{A10}}). - Disable: no further slice over the next cycle; the original config, runtime wiring, route, workers and hashes restore exactly (
restore_xvb_originalat:10is the pattern).
Injecting the stub: the destination is an image constant, not a config key ({{A2}}), so the harness must replace it without adding a production override. The proposal is a harness-only override that mounts a replacement constants file read-only into the dashboard container for the run and removes it on restore; nothing in docker-compose.yml, build/ or the dashboard reads an environment variable for it. The PR decides the exact mechanism and states it; the constraint is that the shipped image has no way to be redirected.
File budgets (docs/dev/file-budget.tsv): lib/run-cli.sh is at 410 of 410, lib.sh at 686 of 686, e2e.sh at 677 of 684 and selftest/selftest-e2e-phases.sh at 501 of 501. Put the phase in a new tests/integration/lib/live-donation-support.sh, make the flag edits net zero in run-cli.sh (move an existing block out if needed), and put the selftest rows in a new file beside selftest-e2e-harness-args.sh.
What it impacts
The live harness only; no product behavior. It is the evidence that makes the routing change reviewable, and the evidence preflight for any compose or build change.
How I found it
Read-only scan of origin/develop-v2.1.0 at 02852bd on 2026-10-27 from the paths above and docs/dev/integration-testing.md:248 (the flag table). Nothing was executed. Unknown: whether xmrig-proxy accepts the fake's job template and an onion-less stub through the Tor SOCKS, how long the whole phase takes (the XvB smoke takes tens of minutes), and which bench roles can run it. The phase needs miners and, like the XvB smoke, may need a PPLNS share; the PR states which assertions need which input and skips with a named reason (it_skip_leg) when an input is missing.
How important is it
High inside this lane: it is the only proof of the real proxy behavior. Not a merge blocker for the dark build, a blocker for go-live.
Acceptance criteria
--donation-routing-smokeis in theharness-args.shallowlist and its error message (:19, :34), in therun-cli.shusage, parsing and the--no-mining-assertsrefusal (:72-76, :275-278, :406-407), and dispatched fromrun.sh:300's neighbourhood.- The six legs above are assertions with names; each failure captures artifacts (
capture_artifacts) and restores the baseline before returning, as the XvB smoke does. - A selftest (new file) shows the flag is accepted by
--harness-arg, refused without--safety-backupif the phase needs it, and that a failed leg still runs the restore. docs/dev/integration-testing.md(the flag table at:248) anddocs/dev/testing-strategy.md(:457, :478) describe the phase.- No file named above grows past its ceiling; no ceiling is raised. The bench-ci registration ({{A12b}}) lands first or together.
- A bench run on the PR head is cited in the PR description (
tier4-e2e, modetargeted, with--harness-arg --donation-routing-smoke), with a stub endpoint only. make test-integration-selftest,make testandmake lint-shpass. No new explanatory code comments.
Possible solutions
- Mount a replacement constants file for the run (proposed above).
- A second dashboard image tag built for the phase with test constants: a stronger separation, a heavier harness, and a build-path dependency.
- Hold this phase until the real endpoint exists and add a live onion reachability leg: proves more, and the owner has not provisioned the endpoint; the stub phase is still needed for repeatable runs.
Part of #2476. Depends on {{A7}}, {{A8}} and {{A10}}.
Activity
pithead-developer commentedon Nov 16, 2026
Blocked on #3701.
Blocked on #3704.
Dependency marker for the dashboard. The native blocked-by links on this issue already name these open blockers, and the tick removes
blockedwhen every one of them closes.