Skip to content

test(engine): give the ffmpeg-bound grouping mixes their 30s timeout - #3398

Merged
miguel-heygen merged 1 commit into
mainfrom
fix-audiomixer-test-timeout
Aug 21, 2026
Merged

test(engine): give the ffmpeg-bound grouping mixes their 30s timeout#3398
miguel-heygen merged 1 commit into
mainfrom
fix-audiomixer-test-timeout

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

Adds the per-test 30_000 timeout to the five tests in packages/engine/src/services/audioMixer.grouping.test.ts.

Why

These tests spawn real ffmpeg per assertion and were running on vitest's 5s default. On slow Windows runners the FX-chain and envelope cases land right at the line and intermittently fail "Tests on windows-latest" for PRs that touch nothing in the engine (observed twice on an unrelated docs/registry PR, including once at 5.02s). The other ffmpeg-bound engine suite, videoFrameExtractor.test.ts, already carries per-test 30_000 timeouts; this brings the grouping suite in line.

How

}, 30_000); on each of the five it blocks. No logic changes.

Test plan

  • vitest run src/services/audioMixer.grouping.test.ts: 5/5 pass locally (2.4s on this machine; the margin matters only on the slow runners).
  • oxfmt --check clean.

audioMixer.grouping.test.ts spawns real ffmpeg per assertion and ran on
vitest's 5s default; on slow Windows runners the FX-chain and envelope
cases land right at the line and fail runs that touch nothing in the
engine. The other ffmpeg-bound engine suites (videoFrameExtractor)
already carry a per-test 30_000 timeout; this brings the grouping suite
in line.
@miguel-heygen
miguel-heygen merged commit 77566a1 into main Aug 21, 2026
54 checks passed
@miguel-heygen
miguel-heygen deleted the fix-audiomixer-test-timeout branch August 21, 2026 19:01
vanceingalls added a commit that referenced this pull request Aug 21, 2026
`routing isolation` timed out at 30,000ms on the Windows runner again (#3401).
It is not a hang and not that PR's doing — that diff touches no engine code, and
on main's last passing Windows run the same test measured 10,050ms with the file
at 19,446ms. A ~10s test under a 30s cap on a runner with this much variance
fails on any bad host; 120s is ~12x the healthy time, so a timeout should mean a
real stall again.

Written as per-test arguments, replacing #3398's 30s ones. My earlier attempt at
this (#3397) added `vi.setConfig({ testTimeout: 60_000 })` instead, which would
have merged and changed nothing: an explicit per-test argument overrides the
file-level config. Verified directly — a 50ms argument beats a 60s setConfig.
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