Bug 242658

Summary: [ macOS ] http/tests/media/user-gesture-preserved-across-xmlhttprequest.html is a flaky failure
Product: WebKit Reporter: Hercules Hjalmarsson <hhjalmarsson>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: achristensen, ap, dino, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Hercules Hjalmarsson 2022-07-12 14:55:35 PDT
http/tests/media/user-gesture-preserved-across-xmlhttprequest.html

Is a flaky text failure on macOS ToT.

HISTORY:
https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Fmedia%2Fuser-gesture-preserved-across-xmlhttprequest.html

DIFF:
--- /Volumes/Data/worker/Apple-Monterey-Debug-WK2-Tests/build/layout-test-results/http/tests/media/user-gesture-preserved-across-xmlhttprequest-expected.txt
+++ /Volumes/Data/worker/Apple-Monterey-Debug-WK2-Tests/build/layout-test-results/http/tests/media/user-gesture-preserved-across-xmlhttprequest-actual.txt
@@ -35,7 +35,7 @@
 sending XHR, delay = 100
 EVENT(load): readyState = 4
 RUN(shouldResolve(mediaElement.play()).then(testComplete, testComplete))
-Promise resolved OK
+Promise rejected FAIL
 
 ** NO gesture -> XHR -> timeout -> video playback: should fail
 EVENT(canplaythrough)

DIFF URL:
https://build.webkit.org/results/Apple-Monterey-Debug-WK2-Tests/252380@main%20(5225)/http/tests/media/user-gesture-preserved-across-xmlhttprequest-pretty-diff.html
Comment 1 Hercules Hjalmarsson 2022-07-12 14:57:00 PDT
I was able to reproduce the text failure on macOS ToT by running command:

run-webkit-tests --debug -f --force --iterations 1000 --exit-after-n-failures 1 --clobber-old-results http/tests/media/user-gesture-preserved-across-xmlhttprequest.html
Comment 2 Radar WebKit Bug Importer 2022-07-12 14:57:52 PDT
<rdar://problem/96912318>
Comment 3 EWS 2022-07-12 15:20:05 PDT
Test gardening commit 252394@main (9c8e21dda821): <https://commits.webkit.org/252394@main>

Reviewed commits have been landed. Closing PR #2343 and removing active labels.
Comment 4 Hercules Hjalmarsson 2022-07-12 16:13:34 PDT
No available revisions to reproduce issue on commit 250047@main suspected to be causing the flaky failure.