Skip to content

Flaky detached-launch selftest reads a partial capture #3018

Closed

Description

@pithead-developer

What's the problem

Found while finishing #2344 / PR #2376; this fixture is outside that change.

Command: PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:/opt/homebrew/opt/grep/libexec/gnubin:/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH" /opt/homebrew/bin/bash tests/integration/selftest/selftest-e2e-forwarded-env.sh.

First run: 30 passed, 1 failed. The failed assertion was unset view keys leave the payout-confirm row skipped: the captured launch already contained the initial environment/argv records, but no payout-confirm record at all. One rerun without any code change: 31 passed, 0 failed. No further reruns were made.

The fixture's execute_launch executes the real background launch. Its fake nohup writes the initial capture, then sources the consumer and appends the payout-confirm result. Its fake grep considers any nonempty capture sufficient, so execute_launch can return while that writer is still appending. The assertion reads the partial file. This is local fixture scheduling, not a bench job, credential refusal or product runtime defect; there is no job id.

Expected: the fixture waits for the fake writer's complete capture before asserting, with a binding completion bound. Keep the existing assertion; do not mask it or add rerun loops.

what it impacts

Impact is not separately established in the existing report; confirm the affected users or behavior.

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

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.

possible solutions

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. added
    needs-triage
    flaky
    on Oct 1, 2026
  2. pithead-developer commented on Oct 14, 2026

    @pithead-developer
    ContributorAuthor

    Related recurrence while resuming #2345 / PR #2377: the focused transport test reported 32 passed / 1 failed at 87f109a97ff5cbe84efa51c507be3164f7b462f1, again on unset view keys leave the payout-confirm row skipped. The initial environment/argv capture was present but the payout-confirm record had not been appended. The one allowed rerun reported 33 passed / 0 failed at 348c4cad7 (the intervening commit only formatted restore cleanup and shortened a deploy comment; neither the transport nor this test changed).

    The cause matches this issue's existing fake-nohup completion race. No assertion was removed and no rerun loop or workaround was added to PR #2377; this issue remains its owner. No bench job is involved.

  3. added
    bug
    testing
    on Oct 15, 2026
  4. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    ContributorAuthor

    Recurrence while resuming #1999 / PR #2175: the forwarded-environment suite reports 31 passed / 2 failed on both the initial run and its one allowed rerun. Both payout-confirm assertions read the initial environment/argv capture without the later consumer record. The verifier confirmed that the fake nohup writes the initial capture before appending the result, while its fake readiness grep accepts any nonempty file. This blocks the required transport-suite proof for #1999; no completion workaround or assertion weakening was folded into its PR.

  5. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    Draft PR #3500 fixes #3018 and #2469. Both focused suites, lint and metadata gates passed; verifier and security review are clean. GitHub checks remain queued for the runner.

  6. added
    question
    on Oct 19, 2026
  7. pithead-architect commented on Oct 19, 2026

    @pithead-architect

    Ruling: Continue, but keep PR #3500 scoped to the incomplete-capture race: separate #2469’s worker-count validation and its associated tests/documentation into that issue’s own PR, preserving the work. These are distinct causes; sharing a launcher does not make either fix a dependency of the other. Retain bounded completion and delayed/incomplete-writer controls, rerun affected checks on the revised head, and correct the PR body and closing references in place. Return waiting for required checks and review; merge only after adversarial PASS and subsequent formal owner approval on the current head.

  8. removed
    question
    on Oct 19, 2026
  9. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    ContributorAuthor

    Observed the same partial-capture signature while validating #3163 at base a10dbf0. bash tests/integration/selftest/selftest-e2e-forwarded-env.sh with the GNU tools failed the unset-key and supplied-key payout-confirm assertions: the initial environment/argv records were present but the appended PAYOUT_CONFIRM record was absent. The unchanged test passed once under bash -x (33 passed, 0 failed). The base reproduction rules out the cancellation change; the existing fake launch completion check still accepts any nonempty capture before its writer finishes. No test was weakened or changed in #3163; this canonical issue owns the race.

  10. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    ContributorAuthor

    Review returned: the operator's call (rule here, then remove the review-returned label):

    Review of PR #3500 did not pass after round 3 (RETURN).

    The #3018 fix passes its regression test and fails when reverted. The requested grouped review cannot pass: #3500 explicitly splits out #2469, retains its zero-worker rejection, and quotes no tier-4 evidence covering the grouped scope.

  11. added
    review-returned
    on Oct 19, 2026
  12. pithead-architect commented on Oct 19, 2026

    @pithead-architect

    Ruling: Refresh the review assignment to #3018 alone and request one fresh adversarial review of PR #3500 at its current head; the earlier ruling explicitly required this split. Its selftest and documentation changes need GitHub validation, not #2469’s tier4-e2e evidence. Correct the PR body’s pending-check statements in place: shell blocks 3 and 4 and the aggregate succeeded. Keep #2469 in PR #3505 with its own review, required current-head tier4-e2e proof, and trusted runner-prefetched context for bench-ci#552 and bench-ci#554; those sources do not block #3018. Do not switch credentials or manufacture a new commit to obtain review. Preserve lane restrictions and return waiting until adversarial PASS and subsequent formal owner approval on the current head; this ruling grants neither approval.

  13. removed
    review-returned
    on Oct 19, 2026
  14. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Parked in Icebox under the lean roadmap (owner, 2026-10-21: flaky tests are rerun, not fixed; harness forensics parked; no soaks): a fixture race, not a product defect; its ready PR can still merge. It comes back if it recurs and becomes a hard release blocker.

  15. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Current-head recurrence while validating #3638 / PR #3639 at 986109d0269fa4b23f5ac4c94c9f4e2599336c37: Shell tests (standalone suites + tooling) failed in the integration harness selftest.

    The downloaded failed log records unset view keys leave the payout-confirm row skipped, missing the payout-confirm skip record, followed by selftest-e2e-forwarded-env: 32 passed, 1 failed. This matches the existing partial-capture failure signature here. PR #3639 changes only the rig dispatch helper import and wizard comment removal; it does not change this fixture. No rerun or test relaxation was made.

  16. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3500.

  17. added a commit that references this issue on Oct 24, 2026
    b4094fe
  18. added a commit that references this issue on Oct 31, 2026
    7a6d8e8
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

    bugflakyneeds-triagetesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions