Repository navigation
test: give the helper timeout test an endless output so it cannot finish first - #79
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
The PR fixes a flaky test by making the transcode output endless (-vf loop=loop=-1:size=1) so that only the 1 ms timeout can terminate it. Previously a 1-second clip could finish before the timeout on fast runners, causing the test to fail.
review-bot, model nvidia/nemotron-3-ultra-550b-a55b:free, verdict approve
What
The
transcode()"stops after the timeout" helper test now loops the first frame forever (-vf loop=loop=-1:size=1), so only the timeout can end the run.Why
The test gave a 1 ms timeout to a transcode of a 1 second clip. On a fast runner ffmpeg sometimes finishes first,
transcode()resolves, and the test fails withCannot read properties of undefined (reading 'message'). That happened on #75 (run 37392625809,node-tests, st core), and #75's previous run passed the same test. #64 fixed the same race in the core timeout tests with-re.transcode()only takes output arguments, so-reis not available here, and an endless output works instead. If the timeout ever stops working, the test now fails on mocha's 60 s timeout instead of passing by luck.Testing
CI. Not run locally, because the helper tests need a built core.