Skip to content

Tests: more time for the sound tests (unblocks publishing 4.4.0) - #29

Merged
hamza-aamer merged 1 commit into
mainfrom
fix/audio-test-timeout
Nov 26, 2026
Merged

hamza-aamer merged 1 commit into
mainfrom
fix/audio-test-timeout

Conversation

@hamza-aamer

Copy link
Copy Markdown
Contributor

Publishing 4.4.0 failed in its pre-publish tests: predicts the same from 48 kHz microphone input exceeded Jest's default 5 s timeout. The publish job runs npm test with coverage, and under coverage instrumentation the runner resamples seconds of 48 kHz sound slowly. The test itself passed: in the PR run it finished within the time limit.

The sound tests now get 30 s. Measured without instrumentation, the resampler converts 5 s of 48 kHz sound in 137 ms (2.7 % of real time), so live use is not affected.

Merging this reruns the publish job. The version is still 4.4.0, newer than npm's 4.2.0. Part of edge-ml/edge-ml#100.

The publish job runs the tests with coverage instrumentation, under which
resampling seconds of 48 kHz sound in the 48 kHz test took over Jest's
default 5 s on the runner, so publishing 4.4.0 stopped there. Without
instrumentation, 5 s of sound resample in about 0.15 s.

Part of edge-ml/edge-ml#100
@hamza-aamer
hamza-aamer merged commit 4126098 into main Nov 26, 2026
2 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