Bug 167266

Summary: LayoutTest media/modern-media-controls/media-controller/media-controller-auto-hide-mouse-enter-over-controls-bar.html is a flaky failure
Product: WebKit Reporter: Ryan Haddad <ryanhaddad>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: REOPENED ---    
Severity: Normal CC: graouts
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Ryan Haddad 2017-01-20 16:34:02 PST
LayoutTest media/modern-media-controls/media-controller/media-controller-auto-hide-mouse-enter-over-controls-bar.html is a flaky failure

https://build.webkit.org/results/Apple%20Sierra%20Release%20WK2%20(Tests)/r210992%20(2866)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=media%2Fmodern-media-controls%2Fmedia-controller%2Fmedia-controller-auto-hide-mouse-enter-over-controls-bar.html

--- /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/media/modern-media-controls/media-controller/media-controller-auto-hide-mouse-enter-over-controls-bar-expected.txt
+++ /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/media/modern-media-controls/media-controller/media-controller-auto-hide-mouse-enter-over-controls-bar-actual.txt
@@ -7,7 +7,7 @@
 PASS controlsBar.classList.contains('faded') is false
 
 Auto-hide timer has elapsed, controls bar should be faded.
-PASS controlsBar.classList.contains('faded') is true
+FAIL controlsBar.classList.contains('faded') should be true. Was false.
 
 Mouse moved over the media, controls bar should be visible.
 PASS controlsBar.classList.contains('faded') is false
Comment 1 Ryan Haddad 2017-01-20 16:37:18 PST
Marked test as flaky in http://trac.webkit.org/projects/webkit/changeset/211000
Comment 2 Antoine Quint 2017-01-25 05:38:27 PST
This is tricky because this test, and a host of others, is timing-sensitive by design since it's testing the auto-hide timer. The test checks as close as possible to the auto-hide delay that the controls are still visible, and then again as soon as possible after the auto-hide delay has elapsed to check that the controls are no longer visible. So in certain cases, probably where the system is under pressure and timers run late, we get in cases where the check prior to the timer firing fails because we've actually run past auto-hide delay. We're going to have to find a different way to test this.
Comment 3 Antoine Quint 2017-01-31 03:01:01 PST
Committed r211424: <http://trac.webkit.org/changeset/211424>
Comment 5 Alexey Proskuryakov 2017-01-31 14:32:06 PST
This test has 300ms timeouts. This never works in layout tests - due to scheduler operation, a process may not get any time for longer than than.
Comment 6 Ryan Haddad 2017-01-31 14:34:02 PST
Marked as flaky again in http://trac.webkit.org/projects/webkit/changeset/211447
Comment 7 Antoine Quint 2017-02-01 00:11:41 PST
(In reply to comment #5)
> This test has 300ms timeouts. This never works in layout tests - due to
> scheduler operation, a process may not get any time for longer than than.

What do you mean by "never works in layout tests"? Clearly it does the majority of the time.