Skip to content

test: give the helper timeout test an endless output so it cannot finish first - #79

Merged
Project516 merged 1 commit into
masterfrom
test/helper-timeout-race
Oct 6, 2026
Merged

Project516 merged 1 commit into
masterfrom
test/helper-timeout-race

Conversation

@Project516

Copy link
Copy Markdown
Owner

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 with Cannot 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 -re is 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.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: cb8690d2-5f04-4cf4-b817-79152e71eb06
📥 Commits

Reviewing files that changed from the base of the PR and between 9b51f5c and 6e8baa2.

📒 Files selected for processing (1)
  • tests/ffmpeg-helpers.test.mjs
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@project516-review-bot project516-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Project516
Project516 merged commit fe6644e into master Oct 6, 2026
19 checks passed
@Project516
Project516 deleted the test/helper-timeout-race branch October 6, 2026 00:44
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