Skip to content

Flaky test: mimo_music test_real_timeout_reaps_renderer reads the renderer pid file before it exists #5429

Open

Description

@AdamRajfer

resources_servers/mimo_music/tests/test_app.py::test_real_timeout_reaps_renderer failed once in CI and passed when the same job was re-run on the same commit, so it looks like a timing race in the test rather than a code change.

Symptom

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-8/test_real_timeout_reaps_render0/pid'

The test runs the real 1 s scorer timeout and then reads the renderer's pid file. In the failing run the file did not exist yet when the test read it, which suggests the renderer had not written its pid before the timeout path ran, or the file is read before it is guaranteed to exist.

Runs (same commit, same job)

Possible directions

  • Wait for the pid file to appear (with a bound) before asserting the renderer was reaped, or have the renderer write its pid before it can be timed out.
  • Or assert reaping without relying on the pid file's existence at a fixed moment.

The change under test in that run did not touch resources_servers/mimo_music/.

🤖 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