Repository navigation
Allow for audio padding in the hook length check - #290
Conversation
The move-hook test adds up three parts. Its comment says each can round up to a whole frame, and the video length check allows three frames, but the reported length was held to 0.1s. That length sums each part's container duration, which can also carry audio padding past its last frame, so the Windows runner's 6.13s against 6.0s failed. The reported length now gets the same three frames plus 0.05s.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Captions follow each part's probed length, so the audio padding allowed for in the total length also builds up across the two joins. On the Windows runner the last word landed at 5.285s against 5.2s, past the 0.05s tolerance. The three-part test now allows 0.15s; the words are a second apart, so it still checks which source second each one comes from.
What this does
test_move_plays_the_hook_first_and_drops_it_from_the_bodyfails on the Windows runner (and on a re-run ofmain): the reported length is 6.13s against an expected 6.0s within 0.1s.The test adds up three parts. Its own comment says each part can round up to a whole frame, and the video length check allows three frames (3 / 25 = 0.12s). The reported length held to 0.1s is the sum of each part's container duration, which can also include audio padding past the last frame, so the same rounding leaves it about 0.01s over three frames. The reported length now gets three frames plus 0.05s. The video length, frame colors, tone and word timing assertions are unchanged.
How I tested it
The failing Windows job on #286, #287 and #288 reports
6.13 != 6.0 within 0.1. This PR's Windows job is the check.Checklist
npx tsc --noEmitandnpm testpass (pluspytest tests/if you touched the backend)Summary by CodeRabbit