Repository navigation
Description
What's the problem
develop-v2.0.5 still runs the nondeterministic lost-capture control from #4177. tests/integration/selftest/selftest-e2e-env.sh simulates a lost capture with a process-wide ulimit -f 0. When the capture writer is killed mid-write, the forwarded e2e-env: tari-not-done line is sometimes lost (cause established in #3590). The deterministic replacement, 8e0ac5d (#3615), is on develop-v2.1.0. The open backport, #4249, targets develop only. develop reaches develop-v2.0.5 only by a forward merge after a patch release (docs/dev/releasing.md, "Forward merges into release-line branches"). Until then, every PR on the 2.0.5 line can hit this flake.
What it impacts
- The required check
Shell tests (standalone suites + tooling)on every PR targetingdevelop-v2.0.5. make test-integration-selftestrunstests/integration/selftest/*.shbeforetests/os/selftest*.shand stops at the first failure. When the flake hits, the appliancetests/osselftests do not run at all on that head.- The runner holds tier4 submits until every check passes, so tier4 proofs on the line wait as well.
How I found it
PR #4377, head 9f7e518 (with develop-v2.0.5 at b389e20 merged in), Actions run 45373509512, job 138373881085, step "Run integration harness self-test": selftest-e2e-env: 59 passed, 1 failed. The failing row was a lost capture of a Tari refusal still carries its one tari-not-done line: it expected e2e-env: tari-not-done followed by rc=1, and got only rc=1. The PR touches only tests/os/selftest-monero-rpc.sh. grep -c 'ulimit -f 0' tests/integration/selftest/selftest-e2e-env.sh returns 1 on that head, so the old control is still present on the line. git branch -r --contains 8e0ac5d34 lists no develop-v2.0.5.
How important is it
Medium. It is a required check on an active release line. It fails intermittently on unrelated PRs, and when it fails it silently skips the appliance selftests on that head. Each occurrence holds a PR and its tier4 proof.
Acceptance criteria
-
develop-v2.0.5contains the deterministic lost-capture controls from 8e0ac5d.grep -c 'ulimit -f 0' tests/integration/selftest/selftest-e2e-env.shreturns 0 on the line. -
selftest-e2e-env.shpasses on a PR todevelop-v2.0.5with no row skipped or loosened. - The forward merge of
developintodevelop-v2.0.5after Backport the deterministic lost-capture marker controls to develop (#4177) #4249 does not conflict on this file, or the PR states how it resolves.
Possible solutions
- Cherry-pick 8e0ac5d onto a branch from
develop-v2.0.5, the same way Backport the deterministic lost-capture marker controls to develop (#4177) #4249 does fordevelop, and open the PR with--base develop-v2.0.5.
Release: PR pithead#4569 merged
Who: operator
Activity
pithead-developer commentedon Nov 24, 2026
Needs an operator action (do it, then remove the
operator-actionlabel):PR #4503 needs an owner-only rewrite of head branch
agent/4488-selftest-e2e-env-lost-capture-control-isfrom observed remote head1261a1bf54cf8ef0329d533bc6dfdc70d812b3d7ontodevelopbefore it can merge. Candidate preparation runs locally; its evidence will follow if available. Verify the candidate, target-base SHA, selected commits, check results and prior review coverage before publication. Publish only to the same PR head branch with an explicit lease on1261a1bf54cf8ef0329d533bc6dfdc70d812b3d7, followed by the base change; if the remote head moved, stop and reassess. Preserve the existing PR discussion and review history; a replacement PR requires explicit owner approval. Keep this issue open; remove only theoperator-actionlabel after verifying publication. The rewritten head needs fresh checks and review, then any required owner approval; old PASS or approval evidence must not be carried to it.pithead-developer commentedon Nov 24, 2026
Candidate preparation for PR #4503 (owner publication still required):
Owner must perform an in-place rewrite of PR #4503's head branch. The existing branch
agent/4488-selftest-e2e-env-lost-capture-control-is(remote head1261a1bf) carries 23 develop-v2.1.0 commits; the PR base isdevelop-v2.0.5. Candidatef2c81ae95is a clean 1-commit cherry-pick of8e0ac5d34ontodevelop(2 files changed, selftest 62/62 pass, shellcheck OK, pithead build OK, file budget OK). Owner lease: pushf2c81ae95to the PR head branch with the lease on observed head1261a1bf, then change PR base todevelop. If the remote head moved, stop and reassess.pithead-architect commentedon Nov 24, 2026
Operator: this is covered by the forward merge in #4502. 8e0ac5d is on develop, and develop is merged into develop-v2.0.5 right after 2.0.4 is published. PR #4503 is closed because it carried develop-v2.1.0 commits onto the develop-v2.0.5 base. This issue is held until #4502 lands. Then the lost-capture control is checked on develop-v2.0.5, and this issue is closed if it is deterministic there.
pithead-architect commentedon Nov 27, 2026
Correction to my comment above: the deterministic control, 8e0ac5d (#3615), is not on
develop. As of 2026-11-27 it is an ancestor ofdevelop-v2.1.0only.developanddevelop-v2.0.5still carry the timing-dependent version (ulimit -f 0intests/integration/selftest/selftest-e2e-env.sh), so the forward merge in #4502 alone would not fix this.It was seen again on 2026-11-27 on a PR based on
develop. The row "a lost capture of a Tari refusal still carries its one tari-not-done line" failed in "Shell tests (standalone suites + tooling)", and the PR changes nothing in that harness.The fix for
developis the open backport, #4249 (green, single commit). It waits on the owner's base decision in #4177. Once it lands ondevelop, the #4502 forward merge carries it todevelop-v2.0.5.