Skip to content

test flake: probe_timeout_covers_a_blocked_stdout_read hits ETXTBSY under parallel load #440

Backlog

Description

@AzeezIsh

video_decode_ffmpeg::hour_tests::probe_timeout_covers_a_blocked_stdout_read (crates/spark-model/src/video_decode_ffmpeg_hour_tests.rs:70-88) fails intermittently under full-suite parallel load with Text file busy (os error 26). It happens when the test execs the fake ffprobe script it just wrote to /tmp. It failed twice in cargo test --workspace --locked on sparky (aarch64, 1.93.1) while gating #397, and passes alone (1/1). Nothing in #397 touched it.

This is the classic write-then-exec race (ETXTBSY): another thread forks while the script's write fd is still open, so the child inherits it. Usual fixes: write the script, close it and sync_all() before chmod + exec, retry exec on ETXTBSY, or write it once per test binary behind a OnceLock.

🤖 Generated with Claude Code

Activity

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