Skip to content

Tests: render_video retry test independent of worker timing - #150

Merged
jeremymanning merged 1 commit into
masterfrom
fix-video-retry-test
Nov 22, 2026
Merged

jeremymanning merged 1 commit into
masterfrom
fix-video-retry-test

Conversation

@jeremymanning

Copy link
Copy Markdown
Member

The CI run on master for #149 failed in test (3.10) on tests/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_video stops 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

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
@jeremymanning
jeremymanning merged commit bda8d7c into master Nov 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant