Bug 179778

Summary: LayoutTest http/tests/workers/service/registration-clear-redundant-worker.html is a flaky failure
Product: WebKit Reporter: Ryan Haddad <ryanhaddad>
Component: New BugsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, cdumez, commit-queue, ggaren, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=179751
https://bugs.webkit.org/show_bug.cgi?id=179745
Attachments:
Description Flags
Patch
none
Patch none

Description Ryan Haddad 2017-11-16 09:37:49 PST
LayoutTest http/tests/workers/service/registration-clear-redundant-worker.html is a flaky failure

https://build.webkit.org/results/Apple%20El%20Capitan%20Release%20WK2%20(Tests)/r224920%20(6022)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fworkers%2Fservice%2Fregistration-clear-redundant-worker.html

--- /Volumes/Data/slave/elcapitan-release-tests-wk2/build/layout-test-results/http/tests/workers/service/registration-clear-redundant-worker-expected.txt
+++ /Volumes/Data/slave/elcapitan-release-tests-wk2/build/layout-test-results/http/tests/workers/service/registration-clear-redundant-worker-actual.txt
@@ -2,5 +2,5 @@
 PASS: Worker became redundant after unregistering
 PASS: registration.installing is null
 PASS: registration.waiting is null
-PASS: registration.active is null
+FAIL: registration.active should be null
Comment 1 Ryan Haddad 2017-11-16 09:38:14 PST
This test was added with https://trac.webkit.org/changeset/224710/webkit
Comment 2 Chris Dumez 2017-11-16 09:38:58 PST
Ok, will take a look.
Comment 4 Ryan Haddad 2017-11-29 16:39:32 PST
Marked test as flaky in https://trac.webkit.org/changeset/225304/webkit
Comment 5 Chris Dumez 2017-11-29 16:40:42 PST
(In reply to Ryan Haddad from comment #4)
> Marked test as flaky in https://trac.webkit.org/changeset/225304/webkit

Ok, I'll take another look then.
Comment 6 Chris Dumez 2017-11-29 16:44:36 PST
Was able to reproduce like so:
Tools/Scripts/run-webkit-tests --repeat-each=100 http/tests/workers/service/registration-clear-redundant-worker.html -f
Comment 7 Chris Dumez 2017-11-29 16:53:01 PST
Created attachment 327927 [details]
Patch
Comment 8 Chris Dumez 2017-11-29 16:53:52 PST
Created attachment 327928 [details]
Patch
Comment 9 youenn fablet 2017-11-29 16:58:59 PST
Comment on attachment 327928 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=327928&action=review

> LayoutTests/http/tests/workers/service/registration-clear-redundant-worker.html:28
> +                handle = setInterval(function() {

Maybe we could add a limit to the number of retries to allow gracefully failing instead of timing out.
Something like 100 tries every 10 ms for instance.
Comment 10 WebKit Commit Bot 2017-11-29 18:31:47 PST
Comment on attachment 327928 [details]
Patch

Clearing flags on attachment: 327928

Committed r225312: <https://trac.webkit.org/changeset/225312>
Comment 11 WebKit Commit Bot 2017-11-29 18:31:48 PST
All reviewed patches have been landed.  Closing bug.
Comment 12 Radar WebKit Bug Importer 2017-11-29 18:33:06 PST
<rdar://problem/35763630>