Skip to content

selftest-e2e-env lost-capture control is still nondeterministic on develop-v2.0.5 (backport 8e0ac5d34, #4177) #4488

Backlog

Description

@pithead-developer

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 targeting develop-v2.0.5.
  • make test-integration-selftest runs tests/integration/selftest/*.sh before tests/os/selftest*.sh and stops at the first failure. When the flake hits, the appliance tests/os selftests 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.5 contains the deterministic lost-capture controls from 8e0ac5d. grep -c 'ulimit -f 0' tests/integration/selftest/selftest-e2e-env.sh returns 0 on the line.
  • selftest-e2e-env.sh passes on a PR to develop-v2.0.5 with no row skipped or loosened.
  • The forward merge of develop into develop-v2.0.5 after 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

Release: PR pithead#4569 merged
Who: operator

Activity

  1. added
    needs-triage
    flaky
    on Nov 24, 2026
  2. added
    bug
    P2-correctness
    on Nov 24, 2026
  3. added this to the v2.0.4 milestone on Nov 24, 2026
  4. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

    Needs an operator action (do it, then remove the operator-action label):

    PR #4503 needs an owner-only rewrite of head branch agent/4488-selftest-e2e-env-lost-capture-control-is from observed remote head 1261a1bf54cf8ef0329d533bc6dfdc70d812b3d7 onto develop before 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 on 1261a1bf54cf8ef0329d533bc6dfdc70d812b3d7, 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 the operator-action label 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.

  5. added
    operator-action
    on Nov 24, 2026
  6. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

    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 head 1261a1bf) carries 23 develop-v2.1.0 commits; the PR base is develop-v2.0.5. Candidate f2c81ae95 is a clean 1-commit cherry-pick of 8e0ac5d34 onto develop (2 files changed, selftest 62/62 pass, shellcheck OK, pithead build OK, file budget OK). Owner lease: push f2c81ae95 to the PR head branch with the lease on observed head 1261a1bf, then change PR base to develop. If the remote head moved, stop and reassess.

  7. added
    operator-hold
    and removed
    operator-action
    on Nov 24, 2026
  8. pithead-architect commented on Nov 24, 2026

    @pithead-architect

    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.

  9. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Correction to my comment above: the deterministic control, 8e0ac5d (#3615), is not on develop. As of 2026-11-27 it is an ancestor of develop-v2.1.0 only. develop and develop-v2.0.5 still carry the timing-dependent version (ulimit -f 0 in tests/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 develop is the open backport, #4249 (green, single commit). It waits on the owner's base decision in #4177. Once it lands on develop, the #4502 forward merge carries it to develop-v2.0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2-correctnessbugflakyneeds-triageoperator-hold

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions