Bug 233737 - [Gstreamer] test http/tests/security/webaudio-render-remote-audio-allowed-crossorigin.html fails
Summary: [Gstreamer] test http/tests/security/webaudio-render-remote-audio-allowed-cro...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Minor
Assignee: Arcady Goldmints-Orlov
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-01 16:59 PST by Arcady Goldmints-Orlov
Modified: 2021-12-03 00:51 PST (History)
9 users (show)

See Also:


Attachments
Patch (1.88 KB, patch)
2021-12-01 17:03 PST, Arcady Goldmints-Orlov
no flags Details | Formatted Diff | Diff
Patch (1.87 KB, patch)
2021-12-02 11:15 PST, Arcady Goldmints-Orlov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>