Skip to content

Flaky test: herdr-core worktree_control a_pane_reports_each_running_process_once_and_never_the_systems_pids #746

Closed

Description

@yansfil

herdr-core live::worktree_control::tests::a_pane_reports_each_running_process_once_and_never_the_systems_pids failed and passed on the same SHA (22171da, a merge of main 9f14487 into the instant-pane-topology branch; herdr-core/src/worktree_control.rs is identical to main).

  • First run: bash scripts/verify-cargo.sh test (plain cargo test, all lib tests in one process), macOS, 1-minute load about 20.
  • Failure: worktree_control.rs:2870, left: [58114, 62833, 62852, 62891], right: [58114].
  • Passed three times in a row in isolation (verify-cargo.sh nextest -E 'test(a_pane_reports_each_running_process_once_and_never_the_systems_pids)').

Likely cause: the test uses the test process's own pid as the pane's shell and asserts that only that pid is reported. Under cargo test every test runs as a thread of that one process, so children other tests spawn at the same moment are its descendants and are reported too. Under nextest each test is its own process, which is why it passes there.

Added by 6d12944 (#721). Deadline: 2026-10-14.

Activity

  1. added
    quarantine
    on Oct 7, 2026
  2. yansfil commented on Oct 7, 2026

    @yansfil
    ContributorAuthor

    Reproduced 5 of 5 under bash scripts/verify-cargo.sh test -p herdr-core --lib on 22171da (load 20-34). Printing the extra pids' names shows they are other tests' children, none from the test itself: [(test binary), git, git, git, git] and [(test binary), zsh, bash, bash, git, xcode-select, git, git, git]. Under plain cargo test the test's own pid has every concurrently running test's children as descendants, so the assertion only holds under nextest's process-per-test. A fix would give the test a child process of its own to stand for the shell (and assert that child is reported once), instead of the test process's pid.

  3. added a commit that references this issue on Oct 7, 2026
    3494adb
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

    quarantine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions