Repository navigation
Closed
Closed
Copy link
Description
What's the problem
Test debt from 2.0.0 RC testing, for 2.0.1 (owner, 2026-10-11: every defect an RC cut finds must be caught by automated tests going forward).
What slipped
Gate-harness rows read live state once, know only some in-flight statuses, assume the operator's environment, or truncate evidence:
- Flaky KVM provision: dashboard-password repoint read 'previewed' as final while the commit was still claimed #3344: a commit read as final while still
previewed(in-flight list, tests/os/appliance-config-approval-leg.sh:141). - e2e #2654 missing-image step keeps only up's last 15 lines, hiding a failed pull (RC3 2438 vs 430) #3345: a failed
upkeeps its last 15 lines, hiding the pull error (tests/integration/lib/run-lifecycle.sh:39; same tail at :338). - e2e readiness checks Monero once (no wait), so a just-restarted monerod fails the run as an environment error #3371 and Image-upgrade rollback check reads live worker reconnection immediately (no wait), so an exact rollback can fail on workers/proxy-workers #3372 (open; PRs fix(tests): wait for Monero release readiness #3392, test(upgrade): wait for rollback workers to reconnect #3393): readiness asked Monero once; the rollback compared worker rows once.
- Earlier: Integration reset-restore probe aborts on remote guests: ${TMPDIR:?} is unset over SSH (RC3 KVM stack phase) #3342 (TMPDIR unset over SSH), KVM update leg 4 reads /api/state once right after Caddy answers; a not-yet-ready dashboard fails it as 'no os_update' #3244 and flaky: KVM rig phase probes the control port once and races RigForge's async listener #3170 (one-shot reads).
- Makefile:52-53 stops at the first red selftest: PR fix(os): recover disconnected active local miner #3386's selftest failed on an unset TMPDIR and skipped the 13 tests/os selftests sorted after it.
what it impacts
Where it runs
Tier-1 CI: make test-integration-selftest, run by the "Shell tests (standalone suites + tooling)" job (.github/workflows/shell.yml:142-146); item 5 by make test-tools (.github/workflows/shell.yml:147-148).
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
Cost
S per wait; seconds of runtime.
acceptance criteria
Done when
- Red where each defect lives: Flaky KVM provision: dashboard-password repoint read 'previewed' as final while the commit was still claimed #3344 and e2e #2654 missing-image step keeps only up's last 15 lines, hiding a failed pull (RC3 2438 vs 430) #3345 on current develop; e2e readiness checks Monero once (no wait), so a just-restarted monerod fails the run as an environment error #3371 and Image-upgrade rollback check reads live worker reconnection immediately (no wait), so an exact rollback can fail on workers/proxy-workers #3372 on the RC4 harness (eba5c14); item 3 on PR fix(os): recover disconnected active local miner #3386's first head (b663898); item 5 on develop.
- Green with the fixes.
- Files match the Makefile globs (registered, not sourced); the PR quotes a red and a green run.
possible solutions
Test to build
fake_eventual(new, tests/integration/lib/, used by tests/integration/selftest/.sh and tests/os/selftest.sh): a file-backed read counter, because predicates run inside$(...). Modes: not ready for N polls then ready, flapping, never converging. Not-ready payloads cover every non-terminal result status the host writes (previewed: lib/pithead/43-control-approval-and-preview.sh:290; running: lib/pithead/46-control-worker-ops.sh:112; accepted: :195).- One selftest case per live-state wait in tests/integration/lib and tests/os, inventoried from
wait_for(tests/integration/lib.sh:491),_pred_functions and hand-rolled loops such as tests/os/appliance-config-approval-leg.sh:139. Late convergence passes; never converging fails after the bound and names the last status. - Run every selftest under
env -iwith a minimal PATH. - A stub prints a cause line then 30+ filler lines; assert the cause survives in the console or saved log (tests/integration/lib/run-lifecycle.sh:39, :338).
- Makefile:52-53 runs every file and fails at the end; a
make test-toolscheck fails on|| exitin those loops.
Metadata
Metadata
Assignees
Labels
testingTests, CI, and test infrastructure
Activity
pithead-developer commentedon Oct 21, 2026
Grouped with #3400, but PR #3580 does not close it: PR #3580 says: Per the operator ruling, #3401 stays separate under the existing holds; PRs #3519 and #3523 remain closed. #3402 needs separate lifecycle and appliance proof and is outside this change. No RigForge product fix, release or pin change is included.. Released for its own pick.
pithead-developer commentedon Oct 21, 2026
Parked in Icebox (operator, 2026-10-21): harness mechanics are parked under the owner's lean roadmap, and flaky results are rerun, not engineered around. It comes back only on the owner's word or if it becomes a hard release blocker.
pithead-developer commentedon Oct 27, 2026
Grouped with #3399, but PR #3720 does not close it: Shared eventual-consistency infrastructure is independent of the documentation oracle and requires separate integration/appliance harness work.. Released for its own pick.
pithead-developer commentedon Oct 27, 2026
Blocked on #3344. #3401’s required green regressions need the fixes owned by #3344 (PR #3519) and #3345 (PR #3523), both still open and absent from the target branch. Reconnaissance and untrusted-diff inspection are complete; the worktree is clean, with no edits or tests run. Resume after both fixes land to add shared coverage without duplicating their implementation.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 30, 2026
The #3344 prerequisite is resolved by merged PR #3519. The remaining prerequisite is #3345, owned by PR #3523: the current
develop-v2.1.0still truncates both failed lifecycle transcripts withtail -n 15, so #3401's required early-cause retention regression cannot pass yet.Finished: issue and linked-work reconnaissance, inspection of the earlier untrusted working state, and a fresh target-branch check. The worktree remains clean; no implementation, tests, bench job or PR for #3401 has been created. Resume once #3345's fix is merged into the target branch; its existing PR owner and the runner can clear this prerequisite through the normal proof and review process. This avoids duplicating its active implementation.
pithead-developer commentedon Oct 30, 2026
Blocked on #3345. #3344 is resolved, but #3345 remains open in PR #3523. The target branch still truncates lifecycle failure output, preventing #3401’s required full-output regression from passing; the existing PR must land before work resumes. Posted the updated blocker on #3401; reconnaissance is complete and the worktree remains clean, with no edits or tests run.
The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 1, 2026
Questions before work continues (answer here, then remove the
questionlabel):Should boolean waits such as SSH, setup-page and serial readiness gain new last-observation diagnostics, or retain their existing failure/named-timeout behavior while final-status diagnostics apply to control-result polls (default: retain existing boolean contracts, because adding diagnostics changes live harness behavior beyond test coverage)?
pithead-architect commentedon Nov 1, 2026
Ruling: Take your default. Boolean waits (SSH, setup page, serial readiness) keep their current behaviour: on timeout they fail with their named timeout. They get no new last-observation output. The "names the last status" clause in item 2 now applies only to polls that read a result status. Those are the control-result and commit polls, with the in-flight statuses previewed, running and accepted. For those polls, the timeout message must print the last status it read. The reason: adding diagnostics to boolean waits changes live tier-4 legs. That needs its own tier4-kvm/tier4-e2e proof, which goes against this issue's test-only scope and against the lean-roadmap park of harness mechanics. Do this, in order. (1) Finish the item 2 inventory: one selftest per live-state wait in tests/integration/lib and tests/os. For a boolean wait, the case shows that late convergence passes and that never converging fails after the bound with its named timeout. For a status poll, never converging must fail and print the last status. Show one mutation red and then green for each kind: remove the bound or the in-flight condition. (2) Do not edit live wait functions or legs. If one has to change, the PR touches a box path and needs a tier-4 job on its head (tier4-kvm for tests/os legs). (3) Under "Decisions taken" in the PR body, record this narrowing of item 2, citing this ruling. Remove the draft paragraph that says an owner interpretation is pending. (4) Before you return done, get the Linux CI verdict on the current head for every selftest you changed. Quote it from
gh pr checks. A local run does not count as evidence either way. The PR body must name the tier-1 row. The rest of the body rules apply.pithead-developer commentedon Nov 1, 2026
Waiting on a transient bench_outage condition, not on another issue. tier4-e2e submit (phases=hardening) refused twice with 503 draining: the runner is shutting down; no job created. The runner re-checks it (first at 2026-11-01T13:39Z, at most 5 times).
pithead-developer commentedon Nov 2, 2026
Blocked on #3844. Blocked on #3844, whose fix is PR #3845. At head ce2a4dc the only non-passing check is "Container bridge awk portability (Debian 12)". Its log shows "Bridge awk: 45 passed, 0 failed", then the script's last line
[ "$PASS" -eq 9 ]fails the make target. That script is unchanged by this PR and fails the same way on develop-v2.1.0, so a fix here would duplicate #3845. Finished: every other check passes, including "Shell tests (standalone suites + tooling)" and the fake-daemon mini-stack, and tier-4 job 3321 (hardening) passed on this head, with its unedited evidence block in the PR body. This clears when #3845 merges and #3844 closes; the runner then resumes the session, I merge the base into the branch and re-read the check on the new head. I posted this explanation as a PR comment.The runner resumes this issue when that one closes.
testing: fix #3401 — model eventual consistency in gate harness waits (…
pithead-developer commentedon Nov 2, 2026
Merged in #3821.