<?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>161142</bug_id>
          
          <creation_ts>2016-08-24 09:44:27 -0700</creation_ts>
          <short_desc>REGRESSION (r204844): imported/w3c/web-platform-tests/html/dom/interfaces.html is a flaky failure</short_desc>
          <delta_ts>2016-08-27 07:59:31 -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>Tools / Tests</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=161067</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=161145</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=161231</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>161290</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>cdumez</cc>
    
    <cc>lforschler</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1222675</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-08-24 09:44:27 -0700</bug_when>
    <thetext>https://build.webkit.org/results/Apple%20El%20Capitan%20Release%20WK1%20(Tests)/r204895%20(9065)/imported/w3c/web-platform-tests/html/dom/interfaces-diff.txt has stared to flakily fail yesterday:

@@ -1,3 +1,4 @@
+Blocked access to external URL http://www1.localhost:8800/
 CONSOLE MESSAGE: line 236: callback not yet supported
 CONSOLE MESSAGE: line 236: callback not yet supported
 CONSOLE MESSAGE: line 236: callback not yet supported

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;showExpectations=true&amp;revision=204895&amp;tests=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fdom%2Finterfaces.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1222677</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-08-24 09:47:09 -0700</bug_when>
    <thetext>There is a number of tests using www1.localhost, which are almost certainly not doing anything useful in our environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1222692</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-08-24 10:09:04 -0700</bug_when>
    <thetext>Temporarily marked as flaky in &lt;http://trac.webkit.org/changeset/204902&gt;. I&apos;ll investigate later today but this is likely caused by the testRunner.setCanOpenWindows() call I added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1222695</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2016-08-24 10:11:05 -0700</bug_when>
    <thetext>&gt; +Blocked access to external URL http://www1.localhost:8800/

If the issue is about trying to get http://www1.localhost:8800/, the test might need to be changed here and in WPT repo.

For fetch tests, we fixed this issue through /LayoutTests/imported/w3c/web-platform-tests/fetch/api/resources/get-host-info.sub.js.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1222709</commentid>
    <comment_count>4</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2016-08-24 10:33:07 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; &gt; +Blocked access to external URL http://www1.localhost:8800/
&gt; 
&gt; If the issue is about trying to get http://www1.localhost:8800/, the test
&gt; might need to be changed here and in WPT repo.
&gt; 
&gt; For fetch tests, we fixed this issue through
&gt; /LayoutTests/imported/w3c/web-platform-tests/fetch/api/resources/get-host-
&gt; info.sub.js.

Doing a quick grep at imported tests in WebKit, there are about 30 files to change.
I&apos;ll try to check how we could apply the same solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1222711</commentid>
    <comment_count>5</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2016-08-24 10:33:26 -0700</bug_when>
    <thetext>... tomorrow</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1222742</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-08-24 11:11:16 -0700</bug_when>
    <thetext>Thanks for looking Youenn, this is likely the source of the flakiness of the newly imported html/browsers tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1222770</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-08-24 12:08:01 -0700</bug_when>
    <thetext>Skipped tests trying to load www1.localhost via &lt;http://trac.webkit.org/changeset/204915&gt; instead of skipping imported/w3c/web-platform-tests/html/dom/interfaces.html.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223015</commentid>
    <comment_count>8</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2016-08-25 02:35:50 -0700</bug_when>
    <thetext>I uploaded some PR to fix some of these issues.
See https://github.com/w3c/web-platform-tests/pull/3543 and https://github.com/w3c/web-platform-tests/pull/3544.

Some WPT tests use 3 domains while we only have two in WebKit (localhost and 127.0.0.1). Can we find a way to have 3 domains in WebKit bots?

See for instance:
- html/infrastructure/urls/dynamic-changes-to-base-urls/dynamic-urls.sub.xhtml
- html/browsers/origin/cross-origin-objects/cross-origin-objects.sub.html
- dom/events/EventListener-incumbent-global-1.sub.html
- dom/events/EventListener-incumbent-global-2.sub.html

Maybe some of these tests could be modified to only use 2 domains.
In the meantime, maybe we should remove these tests and stop importing them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223094</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-08-25 09:54:52 -0700</bug_when>
    <thetext>&gt; we only have two in WebKit (localhost and 127.0.0.1)

There are also have http vs https, and several ports (8000 and 8080 for httpd).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223096</commentid>
    <comment_count>10</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2016-08-25 09:58:55 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; &gt; we only have two in WebKit (localhost and 127.0.0.1)
&gt; 
&gt; There are also have http vs https, and several ports (8000 and 8080 for
&gt; httpd).

It is 2 domains, not only 2 origins unfortunately.
This has an impact on cookies for instance.
Also, is subdomain relationship (localhost &lt;-&gt; www.localhost) used in some cases?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223102</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-08-25 10:06:45 -0700</bug_when>
    <thetext>Do any of the tests that you listed as impacted test cookies? That&apos;s not clear from the names.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223103</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-08-25 10:07:50 -0700</bug_when>
    <thetext>We can test some sub-domain functionality by allowing changing the domain from 127.0.0.1 to 0.0.1 (only in tests, as opt-in IIRC). That&apos;s not a very good solution, of course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223113</commentid>
    <comment_count>13</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2016-08-25 10:16:51 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; Do any of the tests that you listed as impacted test cookies? That&apos;s not
&gt; clear from the names.

I haven&apos;t precisely checked for these tests.
They seem to be more related to frame/iframe.

There is one fetch api test that is about that, see fetch/api/cors-cookies.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223293</commentid>
    <comment_count>14</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-08-25 15:51:54 -0700</bug_when>
    <thetext>This test now passes on regular bots, but it&apos;s super flaky on EWS:

@@ -5,6 +5,7 @@
 CONSOLE MESSAGE: line 236: callback not yet supported
 CONSOLE MESSAGE: line 236: callback not yet supported
 CONSOLE MESSAGE: line 236: callback not yet supported
+CONSOLE MESSAGE: WebSocket network error: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
 HTML IDL tests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223297</commentid>
    <comment_count>15</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-08-25 15:56:13 -0700</bug_when>
    <thetext>(In reply to comment #14)
&gt; This test now passes on regular bots, but it&apos;s super flaky on EWS:
&gt; 
&gt; @@ -5,6 +5,7 @@
&gt;  CONSOLE MESSAGE: line 236: callback not yet supported
&gt;  CONSOLE MESSAGE: line 236: callback not yet supported
&gt;  CONSOLE MESSAGE: line 236: callback not yet supported
&gt; +CONSOLE MESSAGE: WebSocket network error: The operation couldn’t be
&gt; completed. (kCFErrorDomainCFNetwork error 2.)
&gt;  HTML IDL tests

This is a different error and is probably related to the fact that this tests has checks related to WebSocket. I&apos;ll investigate but in the mean time, we can probably comment out the WebSocket checks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223443</commentid>
    <comment_count>16</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2016-08-26 02:01:30 -0700</bug_when>
    <thetext>(In reply to comment #15)
&gt; (In reply to comment #14)
&gt; &gt; This test now passes on regular bots, but it&apos;s super flaky on EWS:
&gt; &gt; 
&gt; &gt; @@ -5,6 +5,7 @@
&gt; &gt;  CONSOLE MESSAGE: line 236: callback not yet supported
&gt; &gt;  CONSOLE MESSAGE: line 236: callback not yet supported
&gt; &gt;  CONSOLE MESSAGE: line 236: callback not yet supported
&gt; &gt; +CONSOLE MESSAGE: WebSocket network error: The operation couldn’t be
&gt; &gt; completed. (kCFErrorDomainCFNetwork error 2.)
&gt; &gt;  HTML IDL tests
&gt; 
&gt; This is a different error and is probably related to the fact that this
&gt; tests has checks related to WebSocket. I&apos;ll investigate but in the mean
&gt; time, we can probably comment out the WebSocket checks.

I filed bug 161231 to update wpt tests. I&apos;ll handle that issue as part of this one.
That should also fix some issues with ww1.localhost URLs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223732</commentid>
    <comment_count>17</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-08-26 14:56:57 -0700</bug_when>
    <thetext>(In reply to comment #14)
&gt; This test now passes on regular bots, but it&apos;s super flaky on EWS:
&gt; 
&gt; @@ -5,6 +5,7 @@
&gt;  CONSOLE MESSAGE: line 236: callback not yet supported
&gt;  CONSOLE MESSAGE: line 236: callback not yet supported
&gt;  CONSOLE MESSAGE: line 236: callback not yet supported
&gt; +CONSOLE MESSAGE: WebSocket network error: The operation couldn’t be
&gt; completed. (kCFErrorDomainCFNetwork error 2.)
&gt;  HTML IDL tests

Temporarily skipped test in https://trac.webkit.org/changeset/205049</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>