You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky test: mimo_music test_real_timeout_reaps_renderer reads the renderer pid file before it exists #5429
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.
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/.
Activity