Skip to content

ci-fix: transient failures on run 25301191157 #2571

Closed as not planned
Closed as not planned

Description

@worktrunk-bot

CI run 25301191157 on commit ce66d9c (PR #2565 merge). Two unrelated failures; both look transient and self-recoverable on rerun. Filing as diagnosed only — no fix PR.

Failure 1: test (macos) — test_alias_approval_decline BrokenPipe

thread 'integration_tests::step_alias::test_alias_approval_decline' (492488) panicked at tests/integration_tests/step_alias.rs:569:35:
called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }

snapshot_alias_approval (tests/integration_tests/step_alias.rs:552) spawns wt step <alias> with piped stdin and writes n\n. The recorded snapshot (tests/snapshots/integration__integration_tests__step_alias__alias_approval_decline.snap) shows the child detects non-TTY immediately and exits with "Cannot prompt for approval in non-interactive environment" — it never reads stdin. The parent's stdin.write_all(b"n\n") is therefore racing the child's exit / pipe-close; on Linux the pipe buffer absorbs the write, on macOS the child can close the read end first and the parent sees EPIPE. First-seen on macOS; the helper has been in place since March 2026 (#1348). Class is the same as prior PTY/stdin-race flakes — running-tend says "exit without a PR".

If a maintainer wants a durable fix later, the small change is to tolerate BrokenPipe on the stdin write (or drop the unused approve parameter and use Stdio::null() for stdin, since the child never reads it):

if let Err(e) = stdin.write_all(response) {
    if e.kind() != std::io::ErrorKind::BrokenPipe {
        panic!("failed to write to child stdin: {e}");
    }
}

Failure 2: collect affected coverage (non-required) — cargo-affected ambiguous binary

FAIL [   0.013s] (3467/3471) wt-perf::bin/wt-perf tests::cmd_failure_annotates_name
cargo-affected runner-shim: failed to resolve binary_id for /home/runner/work/worktrunk/worktrunk/target/affected/build/debug/deps/wt_perf-7dd43b84888cebad: binary not found in map (path: /home/runner/work/worktrunk/worktrunk/target/affected/build/debug/deps/wt_perf-7dd43b84888cebad); target-name basename fallback ambiguous — 2 candidates share target name "wt_perf" ([wt-perf, wt-perf::bin/wt-perf]) and the marker probe matched 0 of them (none; candidates without markers: wt-perf::bin/wt-perf, wt-perf); re-run `cargo affected collect`

Third-party cargo-affected (max-sixty/cargo-affected) runner-shim hit a stale candidate map for wt-perf (its lib + bin share the target name) and its own marker probe matched zero candidates. The error message explicitly recommends re-run cargo affected collect. This is a non-required job in the ci.yaml matrix — the merge-blocking checks are test (linux|macos|windows) per .github/CLAUDE.md. Treating as transient.

Recommendation

Rerun the ci workflow on this commit. If test (macos) flakes again on test_alias_approval_decline, the harden-the-stdin-write fix above is small and worth landing.

Activity

  1. worktrunk-bot commented on May 4, 2026

    @worktrunk-bot
    CollaboratorAuthor

    Transient — closing as diagnosed.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions