RESOLVED FIXED Bug 233737
[Gstreamer] test http/tests/security/webaudio-render-remote-audio-allowed-crossorigin.html fails
https://bugs.webkit.org/show_bug.cgi?id=233737
Summary [Gstreamer] test http/tests/security/webaudio-render-remote-audio-allowed-cro...
Arcady Goldmints-Orlov
Reported 2021-12-01 16:59:43 PST
In r284365 the test http/tests/security/webaudio-render-remote-audio-allowed-crossorigin-redirect.html was fixed to give some more time to the frequency analyzer to detect activity. The same fix needs to be applied to http/tests/security/webaudio-render-remote-audio-allowed-crossorigin.html
Attachments
Patch (1.88 KB, patch)
2021-12-01 17:03 PST, Arcady Goldmints-Orlov
no flags
Patch (1.87 KB, patch)
2021-12-02 11:15 PST, Arcady Goldmints-Orlov
no flags
Arcady Goldmints-Orlov
Comment 1 2021-12-01 17:03:09 PST
Philippe Normand
Comment 2 2021-12-02 00:45:08 PST
I'm not sure adding a new timer is the solution here, it might just make the test flaky :(
Enrique Ocaña
Comment 3 2021-12-02 09:49:24 PST
In a 40 cores machine loaded with "stress -c 400" (10 times more than what the machine can process, showing a load of 395 when running top) the loop that samples the frequency data every 30 ms usually doesn't need extra iterations to get non-silence values. I ran the test (modified to end one second later on purpose) several times and I think only once or twice I got the need of one or two extra iterations at most. 100 ms would allow 3 extra iterations of the frequency sampler. I think that's enough, even on a loaded machine. If I was a reviewer (I'm not), I would accept the patch as is and increase the timeout if the test ever fails (flakes) again.
Philippe Normand
Comment 4 2021-12-02 10:21:16 PST
Comment on attachment 445637 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=445637&action=review > LayoutTests/http/tests/security/webaudio-render-remote-audio-allowed-crossorigin.html:46 > + }, 100); ok then please fix indentation here and you'll get the r+ you deserve
Arcady Goldmints-Orlov
Comment 5 2021-12-02 11:15:29 PST
EWS
Comment 6 2021-12-03 00:50:33 PST
Committed r286486 (244825@main): <https://commits.webkit.org/244825@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 445749 [details].
Radar WebKit Bug Importer
Comment 7 2021-12-03 00:51:21 PST
Note You need to log in before you can comment on or make changes to this bug.