<?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>160017</bug_id>
          
          <creation_ts>2016-07-21 05:08:12 -0700</creation_ts>
          <short_desc>REGRESSION (r203142): Layout test js/regress-139548.html is 10x slower.</short_desc>
          <delta_ts>2023-10-19 00:07:16 -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>JavaScriptCore</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="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>fujii</cc>
    
    <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1213104</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-07-21 05:08:12 -0700</bug_when>
    <thetext>Since r203142 &lt;https://trac.webkit.org/changeset/203142&gt; the layout test js/regress-139548.html has become much (10x) slower. To the point that is now timing out on the GTK, EFL and ElCapitan leaks bots.

On the other Apple bots is also slow but is still no timing out.

Check: https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#tests=js%2Fregress-139548.html

On the GTK port I get this results:

r203142 : &quot;js/regress-139548.html took 25.0 seconds&quot;
r203141 : &quot;js/regress-139548.html took 2.5 seconds&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1213105</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-07-21 05:12:11 -0700</bug_when>
    <thetext>The tests seems quite sensible to the JSC_stackSizeInBytes value.

This patch makes it finish in 10 seconds instead of 25:


--- a/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
+++ b/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
@@ -75,7 +75,7 @@ def main(argv, stdout, stderr):
 
     try:
         # Force all tests to use a smaller stack so that stack overflow tests can run faster.
-        stackSizeInBytes = int(1.5 * 1024 * 1024)
+        stackSizeInBytes = int(0.5 * 1024 * 1024)
         options.additional_env_var.append(&apos;JSC_maxPerThreadStackUsage=&apos; + str(stackSizeInBytes))
         options.additional_env_var.append(&apos;__XPC_JSC_maxPerThreadStackUsage=&apos; + str(stackSizeInBytes))
         run_details = run(port, options, args, stderr)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1213172</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-07-21 10:20:25 -0700</bug_when>
    <thetext>I marked this test as slow for all platforms in https://trac.webkit.org/changeset/203509/trunk/LayoutTests/TestExpectations</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1213186</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2016-07-21 10:40:21 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; The tests seems quite sensible to the JSC_stackSizeInBytes value.
&gt; 
&gt; This patch makes it finish in 10 seconds instead of 25:
&gt; 
&gt; 
&gt; --- a/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
&gt; +++ b/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
&gt; @@ -75,7 +75,7 @@ def main(argv, stdout, stderr):
&gt;  
&gt;      try:
&gt;          # Force all tests to use a smaller stack so that stack overflow
&gt; tests can run faster.
&gt; -        stackSizeInBytes = int(1.5 * 1024 * 1024)
&gt; +        stackSizeInBytes = int(0.5 * 1024 * 1024)
&gt;          options.additional_env_var.append(&apos;JSC_maxPerThreadStackUsage=&apos; +
&gt; str(stackSizeInBytes))
&gt;         
&gt; options.additional_env_var.append(&apos;__XPC_JSC_maxPerThreadStackUsage=&apos; +
&gt; str(stackSizeInBytes))
&gt;          run_details = run(port, options, args, stderr)

We can&apos;t do this because it will cause other tests to fail.  This setting here is a broad brush and was picked to be 1.5M because that was found to be the minimum needed for all tests to pass.

Let&apos;s see if we can make this test behave better while still maintaining its original testing purpose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1231800</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-09-20 11:15:24 -0700</bug_when>
    <thetext>Marked test as flaky on mac-wk2 debug in http://trac.webkit.org/projects/webkit/changeset/206155</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986073</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-18 21:45:19 -0700</bug_when>
    <thetext>All ports are green recently. 
https://results.webkit.org/?suite=layout-tests&amp;test=js%2Fregress-139548.html
We can close this ticket.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986074</commentid>
    <comment_count>6</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-18 21:48:05 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/19268</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986095</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-19 00:06:23 -0700</bug_when>
    <thetext>Committed 269507@main (0ff06e582825): &lt;https://commits.webkit.org/269507@main&gt;

Reviewed commits have been landed. Closing PR #19268 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986096</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-19 00:07:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/117188481&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>