Bug 233737

Summary: [Gstreamer] test http/tests/security/webaudio-render-remote-audio-allowed-crossorigin.html fails
Product: WebKit Reporter: Arcady Goldmints-Orlov <crzwdjk>
Component: Tools / TestsAssignee: Arcady Goldmints-Orlov <crzwdjk>
Status: RESOLVED FIXED    
Severity: Minor CC: eocanha, eric.carlson, ews-watchlist, glenn, jer.noble, philipj, pnormand, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch
none
Patch none

Description Arcady Goldmints-Orlov 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
Comment 1 Arcady Goldmints-Orlov 2021-12-01 17:03:09 PST
Created attachment 445637 [details]
Patch
Comment 2 Philippe Normand 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 :(
Comment 3 Enrique OcaƱa 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.
Comment 4 Philippe Normand 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
Comment 5 Arcady Goldmints-Orlov 2021-12-02 11:15:29 PST
Created attachment 445749 [details]
Patch
Comment 6 EWS 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].
Comment 7 Radar WebKit Bug Importer 2021-12-03 00:51:21 PST
<rdar://problem/86008091>