<?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>158480</bug_id>
          
          <creation_ts>2016-06-07 08:48:54 -0700</creation_ts>
          <short_desc>Investigate cause of flakiness in http/tests/websocket/tests/hybi/upgrade-simple-ws.html test</short_desc>
          <delta_ts>2025-08-22 10:11:14 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=158481</see_also>
          <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>143653</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>aestes</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>hppyromz</cc>
    
    <cc>lazynetpreneur</cc>
    
    <cc>peavo</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1200053</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-06-07 08:48:54 -0700</bug_when>
    <thetext>Investigate the cause of flakiness in the WebSocket upgrade code path:

Test: http/tests/websocket/tests/hybi/upgrade-simple-ws.html

The test is a flaky failure on El Capitan and iOS simulator. It is failing and crashing on Windows.

Recent failure:
&lt;https://build.webkit.org/builders/Apple%20El%20Capitan%20Debug%20WK1%20(Tests)/builds/5721&gt;

Flakiness dashboard:
&lt;https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=http%2Ftests%2Fwebsocket%2Ftests%2Fhybi%2Fupgrade-simple-ws.html&gt;

--- /Volumes/Data/slave/ios-simulator-9-release-tests-wk2/build/layout-test-results/http/tests/websocket/tests/hybi/upgrade-simple-ws-expected.txt
+++ /Volumes/Data/slave/ios-simulator-9-release-tests-wk2/build/layout-test-results/http/tests/websocket/tests/hybi/upgrade-simple-ws-actual.txt
@@ -4,8 +4,4 @@
 
 Created a socket to &apos;wss://127.0.0.1:9323/websocket/tests/hybi/simple&apos;; readyState 0.
 The &apos;ws&apos; protocol should be upgraded to &apos;wss&apos;. If this happens, we will connect properly and the test will succeed.
-Connected; readyState 1
-Resolved URL: wss://127.0.0.1:9323/websocket/tests/hybi/simple
-Received: &apos;Hello from Simple WSH.&apos;; readyState 1
-Closed; readyState 3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200113</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-06-07 10:32:03 -0700</bug_when>
    <thetext>About 1 in 1000 times I can get the test to time out, but I&apos;m not seeing other failures. Since this test relies on an external Python server to do its work, we might be running into some flakiness with that dependency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200305</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-06-07 20:15:43 -0700</bug_when>
    <thetext>Will it reproduce when forced to run many copies of itself in parallel?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999654</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-14 10:49:19 -0800</bug_when>
    <thetext>This seems to be skipped for all platform: https://searchfox.org/wubkat/rev/6ab17cf692e2176ae76cd00a44e48fb608faaf46/LayoutTests/TestExpectations#2536

Should we try to reenable it and run it again since AppleWin port is gone? or at least enable it for the platform where it is working?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999687</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-12-14 12:45:13 -0800</bug_when>
    <thetext>Good idea! If you post a PR and modify the test in some minor way, stress test EWS should execute it with multiple iterations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001259</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-20 19:34:41 -0800</bug_when>
    <thetext>Just for an update, I tried this in PR and it seems that this test definitely fails across all platform - https://github.com/WebKit/WebKit/pull/21887</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2137977</commentid>
    <comment_count>8</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-08-21 07:10:35 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/49715</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138284</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-08-22 10:10:39 -0700</bug_when>
    <thetext>Committed 299057@main (f4cdff05b82d): &lt;https://commits.webkit.org/299057@main&gt;

Reviewed commits have been landed. Closing PR #49715 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138285</commentid>
    <comment_count>10</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-08-22 10:11:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/158954229&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>