Repository navigation
Tests: render_video retry test independent of worker timing - #150
Merged
Merged
Conversation
The failing chunk now raises only once the other chunks' frames are written, so which frames the other workers finished is fixed; the assertion is that every such frame was drawn exactly once (before: at least 4 of 8, which failed on CI when the other workers were stopped mid-chunk). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtyroRyyp5UK7L9zwqxL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CI run on master for #149 failed in
test (3.10)ontests/test_video.py::test_render_video_retries_only_the_missing_frames(assert np.int64(3) >= 4); the same test passed on the pull request and on Python 3.13.The test assumed that at least one other chunk had finished when the failing chunk raised.
render_videostops the other workers on a failure, so how many of their frames exist depends on timing. The failing chunk in the test now raises only once the other chunks' frames are written, and the assertion is stricter: every such frame was drawn exactly once. No package code changes.Checks: the test passed 15 of 15 local runs;
pytest -m "not slow"and the doctests pass locally. The race itself was not reproduced locally; the diagnosis is from the CI output and the code.🤖 Generated with Claude Code
https://claude.ai/code/session_01DcKtyroRyyp5UK7L9zwqxL