<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>179351</bug_id>
          
          <creation_ts>2017-11-06 16:58:51 -0800</creation_ts>
          <short_desc>LayoutTest imported/w3c/web-platform-tests/service-workers/service-worker/worker-interception.https.html is a flaky failure</short_desc>
          <delta_ts>2018-05-22 15:07:51 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>182514</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>jlewis3</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1368845</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-11-06 16:58:51 -0800</bug_when>
    <thetext>LayoutTest imported/w3c/web-platform-tests/service-workers/service-worker/worker-interception.https.html is a flaky failure

https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/r224511%20(4032)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=imported%2Fw3c%2Fweb-platform-tests%2Fservice-workers%2Fservice-worker%2Fworker-interception.https.html

--- /Volumes/Data/slave/elcapitan-debug-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/service-workers/service-worker/worker-interception.https-expected.txt
+++ /Volumes/Data/slave/elcapitan-debug-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/service-workers/service-worker/worker-interception.https-actual.txt
@@ -1,8 +1,9 @@
 
+Harness Error (TIMEOUT), message = null
 
 PASS Verify worker script from uncontrolled document is intercepted by Service Worker 
 PASS Verify worker script intercepted by same-origin response succeeds 
 PASS Verify worker script intercepted by cors response succeeds 
 PASS Verify worker script intercepted by no-cors cross-origin response fails 
-FAIL Verify worker loads from controlled document are intercepted by Service Worker assert_equals: expected &quot;This load was successfully intercepted.&quot; but got &quot;{\&quot;error\&quot;: {\&quot;message\&quot;: \&quot;\&quot;, \&quot;code\&quot;: 404}}&quot;
+TIMEOUT Verify worker loads from controlled document are intercepted by Service Worker Test timed out</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370506</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-11-10 14:26:39 -0800</bug_when>
    <thetext>&lt;rdar://problem/35478178&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376824</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Lewis">jlewis3</who>
    <bug_when>2017-12-01 08:51:32 -0800</bug_when>
    <thetext>Marked as flaky:
https://trac.webkit.org/changeset/225393/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1396467</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-02-05 12:43:17 -0800</bug_when>
    <thetext>I see this crash locally when the test fails:
ASSERTION FAILED: !m_registrations.contains(data.registration.key)
/Volumes/Data/cdumez/WebKit/OpenSource/Source/WebCore/workers/service/server/SWServer.cpp(134) : void WebCore::SWServer::addRegistrationFromStore(WebCore::ServiceWorkerContextData &amp;&amp;)
1   0x11b5a640d WTFCrash
2   0x10f7baa3a WebCore::SWServer::addRegistrationFromStore(WebCore::ServiceWorkerContextData&amp;&amp;)
3   0x10f7b9d23 WebCore::RegistrationStore::addRegistrationFromDatabase(WebCore::ServiceWorkerContextData&amp;&amp;)
4   0x10f7b9ca7 WebCore::RegistrationDatabase::addRegistrationToStore(WebCore::ServiceWorkerContextData&amp;&amp;)
5   0x10f7d9a6a void WTF::callMemberFunctionForCrossThreadTaskImpl&lt;WebCore::RegistrationDatabase, void (WebCore::RegistrationDatabase::*)(WebCore::ServiceWorkerContextData&amp;&amp;), std::__1::tuple&lt;WebCore::ServiceWorkerContextData&gt;, 0ul&gt;(WebCore::RegistrationDatabase*, void (WebCore::RegistrationDatabase::*)(WebCore::ServiceWorkerContextData&amp;&amp;), std::__1::tuple&lt;WebCore::ServiceWorkerContextData&gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt;)
6   0x10f7d99a0 void WTF::callMemberFunctionForCrossThreadTask&lt;WebCore::RegistrationDatabase, void (WebCore::RegistrationDatabase::*)(WebCore::ServiceWorkerContextData&amp;&amp;), std::__1::tuple&lt;WebCore::ServiceWorkerContextData&gt;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt; &gt;(WebCore::RegistrationDatabase*, void (WebCore::RegistrationDatabase::*)(WebCore::ServiceWorkerContextData&amp;&amp;), std::__1::tuple&lt;WebCore::ServiceWorkerContextData&gt;&amp;&amp;)
7   0x10f7d9934 WTF::CrossThreadTask WTF::createCrossThreadTask&lt;WebCore::RegistrationDatabase, WebCore::ServiceWorkerContextData&amp;&amp;, WebCore::ServiceWorkerContextData&gt;(WebCore::RegistrationDatabase&amp;, void (WebCore::RegistrationDatabase::*)(WebCore::ServiceWorkerContextData&amp;&amp;), WebCore::ServiceWorkerContextData const&amp;)::&apos;lambda&apos;()::operator()()
8   0x10f7d9749 WTF::Function&lt;void ()&gt;::CallableWrapper&lt;WTF::CrossThreadTask WTF::createCrossThreadTask&lt;WebCore::RegistrationDatabase, WebCore::ServiceWorkerContextData&amp;&amp;, WebCore::ServiceWorkerContextData&gt;(WebCore::RegistrationDatabase&amp;, void (WebCore::RegistrationDatabase::*)(WebCore::ServiceWorkerContextData&amp;&amp;), WebCore::ServiceWorkerContextData const&amp;)::&apos;lambda&apos;()&gt;::call()
9   0x11b5c252b WTF::Function&lt;void ()&gt;::operator()() const
10  0x11b5c1be5 WTF::CrossThreadTask::performTask()
11  0x11b5c1c8d WTF::CrossThreadTaskHandler::handleTaskRepliesOnMainThread()
12  0x11b5c38f8 WTF::CrossThreadTaskHandler::postTaskReply(WTF::CrossThreadTask&amp;&amp;)::$_1::operator()() const
13  0x11b5c38b9 WTF::Function&lt;void ()&gt;::CallableWrapper&lt;WTF::CrossThreadTaskHandler::postTaskReply(WTF::CrossThreadTask&amp;&amp;)::$_1&gt;::call()
14  0x11b5c252b WTF::Function&lt;void ()&gt;::operator()() const
15  0x11b5e587b WTF::dispatchFunctionsFromMainThread()
16  0x11b5e8505 -[JSWTFMainThreadCaller call]
17  0x7fff2a5ede75 __NSThreadPerformPerform
18  0x7fff28409611 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
19  0x7fff284c0ecc __CFRunLoopDoSource0
20  0x7fff283ec6a0 __CFRunLoopDoSources0
21  0x7fff283ebb1d __CFRunLoopRun
22  0x7fff283eb377 CFRunLoopRunSpecific
23  0x7fff2a5a68d6 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
24  0x7fff2a5a67ae -[NSRunLoop(NSRunLoop) run]
25  0x7fff50f8af57 _xpc_objc_main
26  0x7fff50f89bd6 xpc_main
27  0x1021b313b main
28  0x7fff50c3c015 start
29  0x1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1396551</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-02-05 14:34:52 -0800</bug_when>
    <thetext>The issue is that all WebKitTestRunner share the same SW registration database :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1396590</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-02-05 15:35:12 -0800</bug_when>
    <thetext>Flakiness seems to be gone with the patch from Bug 182514 applied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1396599</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-02-05 15:55:06 -0800</bug_when>
    <thetext>(In reply to Chris Dumez from comment #5)
&gt; Flakiness seems to be gone with the patch from Bug 182514 applied.

I was wrong, the test is still flaky (it is just not flakily *crashing* anymore).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426340</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-05-22 15:07:51 -0700</bug_when>
    <thetext>This test is not marked as flaky anymore:
LayoutTests/TestExpectations:[ Debug ] imported/w3c/web-platform-tests/service-workers/service-worker/worker-interception.https.html [ Slow ]</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>