Bug 228801

Summary: [ MacOS wk1 Release ] media/video-page-visibility-restriction.html is flaky timing out
Product: WebKit Reporter: ayumi_kojima
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, eric.carlson, jer.noble, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description ayumi_kojima 2021-08-04 14:59:42 PDT
[ Mac wk1 Release ] media/video-page-visibility-restriction.html 

Is flaky timing out on MacOS wk1 Release. 

History: https://results.webkit.org/?suite=layout-tests&test=media%2Fvideo-page-visibility-restriction.html

Diff: 

--- /Volumes/Data/worker/bigsur-release-tests-wk1/build/layout-test-results/media/video-page-visibility-restriction-expected.txt
+++ /Volumes/Data/worker/bigsur-release-tests-wk1/build/layout-test-results/media/video-page-visibility-restriction-actual.txt
@@ -1,3 +1,4 @@
+FAIL: Timed out waiting for notifyDone to be called
 
 RUN(internals.setMediaElementRestrictions(video, "RequirePageVisibilityToPlayAudio"))
 RUN(video.src = findMediaFile("video", "content/test"))
@@ -9,6 +10,4 @@
 RUN(promise = video.play())
 Promise resolved OK
 RUN(internals.setPageVisibility(false))
-EVENT(pause)
-END OF TEST

Result page: https://build.webkit.org/results/Apple-BigSur-Release-WK1-Tests/r280358%20(4275)/results.html
Comment 1 Radar WebKit Bug Importer 2021-08-04 15:02:16 PDT
<rdar://problem/81535223>
Comment 2 ayumi_kojima 2021-08-04 15:12:56 PDT
I was not able to reproduce the issues on my Local machine (BigSur) using:

run-webkit-tests --iterations 1000 --exit-after-n-failures 1 --exit-after-n-crashes-or-timeouts 1 media/video-page-visibility-restriction.html -1 -f

But, it seems the test has been flaky since it was added at https://trac.webkit.org/changeset/280298/webkit
Comment 3 ayumi_kojima 2021-08-04 15:25:18 PDT
Updated test expectations https://trac.webkit.org/changeset/280667/webkit