Repository navigation
Tests: more time for the sound tests (unblocks publishing 4.4.0) - #29
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Publishing 4.4.0 failed in its pre-publish tests:
predicts the same from 48 kHz microphone inputexceeded Jest's default 5 s timeout. The publish job runsnpm testwith 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.