<?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>237095</bug_id>
          
          <creation_ts>2022-02-23 11:21:59 -0800</creation_ts>
          <short_desc>[ Mac EWS ] imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004.html is a flaky text failure</short_desc>
          <delta_ts>2022-07-08 03:03: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>Service Workers</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Jenner">jenner</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>cdumez</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1845232</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-02-23 11:21:59 -0800</bug_when>
    <thetext>imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004.html

is a flaky text failure on macOS, and is affecting EWS as well.

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fworkers%2Fsemantics%2Fmultiple-workers%2F004.html&amp;platform=mac

LINK TO EWS FAILURE:
https://ews-build.webkit.org/#/builders/60/builds/24663

TEXT DIFF:
-PASS shared worker with multiple documents
+Harness Error (TIMEOUT), message = null
 
+NOTRUN shared worker with multiple documents
+

DIFF URL:
https://build.webkit.org/results/Apple-BigSur-Release-AppleSilicon-WK2-Tests/r290366%20(6732)/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004-pretty-diff.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1845233</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-23 11:22:25 -0800</bug_when>
    <thetext>&lt;rdar://problem/89367636&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1845236</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-02-23 11:29:18 -0800</bug_when>
    <thetext>Added [ Pass Failure ] expectation here to speed up EWS:

https://trac.webkit.org/changeset/290386/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1845263</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-02-23 12:18:37 -0800</bug_when>
    <thetext>I did attempt to reproduce this failure at Monterey Production ToT. However, I was unsuccessful. I even took it all the way up to 1000 iterations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1845648</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-02-24 09:49:03 -0800</bug_when>
    <thetext>I added some logging in &lt;https://commits.webkit.org/r290439&gt; to help investigate via the bots since I wasn&apos;t able to reproduce locally yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876769</commentid>
    <comment_count>5</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-06-20 05:03:59 -0700</bug_when>
    <thetext>Added logging shows the following:
CONSOLE MESSAGE: Error: assert_equals: Worker Message Count expected 3 but got 0

Iframes are being loaded but one of the following hypothesis is probably true:
- shared worker might not being executed
- shared worker might not be receiving the connect event
- MessagePort postMessage sometimes does not work</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877272</commentid>
    <comment_count>6</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-06-22 04:59:08 -0700</bug_when>
    <thetext>One possibility is that we delay the connect event until we have a process to run the shared worker.
We then fire the connect event for all SharedWorker but we do not respect the order so the first port is related to the iframe SharedWorker instead of the main frame SharedWorker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877311</commentid>
    <comment_count>7</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-06-22 09:32:35 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/1684</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877635</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-06-23 05:44:08 -0700</bug_when>
    <thetext>Committed r295776 (251781@main): &lt;https://commits.webkit.org/251781@main&gt;

Reviewed commits have been landed. Closing PR #1684 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878053</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-06-23 17:50:21 -0700</bug_when>
    <thetext>This test is crashing in EWS:
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fworkers%2Fshared-worker-parse-error-failure.html
https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Big-Sur-Debug-WK2-Tests-EWS/e9afac16-33487/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878140</commentid>
    <comment_count>10</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-06-24 00:37:19 -0700</bug_when>
    <thetext>Added test is also flaky (fix available at https://bugs.webkit.org/show_bug.cgi?id=241957).
Given I will not be able to fix it very soon, let&apos;s revert this change for now in https://bugs.webkit.org/show_bug.cgi?id=241958.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878141</commentid>
    <comment_count>11</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-06-24 00:39:17 -0700</bug_when>
    <thetext>Reopening to fix the debug assertion and flaky test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878143</commentid>
    <comment_count>12</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-06-24 00:39:51 -0700</bug_when>
    <thetext>*** Bug 241957 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880507</commentid>
    <comment_count>13</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-07-04 05:57:02 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/2054</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1881610</commentid>
    <comment_count>14</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-07-08 03:03:48 -0700</bug_when>
    <thetext>Committed 252267@main (82a9cba78565): &lt;https://commits.webkit.org/252267@main&gt;

Reviewed commits have been landed. Closing PR #2054 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>