<?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>193734</bug_id>
          
          <creation_ts>2019-01-23 12:44:31 -0800</creation_ts>
          <short_desc>webkitpy: Wait longer when launching WebKitTestRunner</short_desc>
          <delta_ts>2019-01-24 08:37:05 -0800</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>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="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>lforschler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1497500</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-01-23 12:44:31 -0800</bug_when>
    <thetext>Originally, I only saw this problem when booting simulators. Recently, I saw this timeout hit well after the simulators were booted. The wait time was a bit arbitrary in the first place, I&apos;d like to increase it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497502</commentid>
    <comment_count>1</comment_count>
      <attachid>359924</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-01-23 12:49:33 -0800</bug_when>
    <thetext>Created attachment 359924
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497535</commentid>
    <comment_count>2</comment_count>
      <attachid>359924</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-01-23 13:28:41 -0800</bug_when>
    <thetext>Comment on attachment 359924
Patch

Clearing flags on attachment: 359924

Committed r240356: &lt;https://trac.webkit.org/changeset/240356&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497536</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-01-23 13:28:42 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497537</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-01-23 13:29:29 -0800</bug_when>
    <thetext>&lt;rdar://problem/47491778&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497668</commentid>
    <comment_count>5</comment_count>
      <attachid>359924</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2019-01-23 17:41:22 -0800</bug_when>
    <thetext>Comment on attachment 359924
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=359924&amp;action=review

&gt; Tools/Scripts/webkitpy/port/simulator_process.py:98
&gt; +        with Timeout(15, RuntimeError(&apos;Timed out waiting for pid {} to connect at port {}&apos;.format(self._pid, self._target_host.listening_port()))):

I did a double take when I saw this change. This timeout value seems to be following Moore&apos;s law. Check it out:

3 seconds @ &lt;http://trac.webkit.org/r211370&gt; (01/30/2017)
6 seconds @ &lt;http://trac.webkit.org/r214896 &gt; (04/04/2017)
*NOW* 15 seconds  (01/23/2019)

We are wasting engineering hours progressively increasing this value. I think we should just save us 10 years and pick ~3072 seconds :P. All joking aside, too bad we cannot do anything better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497818</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-01-24 08:37:05 -0800</bug_when>
    <thetext>(In reply to Daniel Bates from comment #5)
&gt; Comment on attachment 359924 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=359924&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/webkitpy/port/simulator_process.py:98
&gt; &gt; +        with Timeout(15, RuntimeError(&apos;Timed out waiting for pid {} to connect at port {}&apos;.format(self._pid, self._target_host.listening_port()))):
&gt; 
&gt; I did a double take when I saw this change. This timeout value seems to be
&gt; following Moore&apos;s law. Check it out:
&gt; 
&gt; 3 seconds @ &lt;http://trac.webkit.org/r211370&gt; (01/30/2017)
&gt; 6 seconds @ &lt;http://trac.webkit.org/r214896 &gt; (04/04/2017)
&gt; *NOW* 15 seconds  (01/23/2019)
&gt; 
&gt; We are wasting engineering hours progressively increasing this value. I
&gt; think we should just save us 10 years and pick ~3072 seconds :P. All joking
&gt; aside, too bad we cannot do anything better.

I wish I had a better answer. This is closely related to problems booting simulators, basically, simulators are quite slow. We were getting into cases where bots where 30 minutes into a test run and hit this timeout because the machine was stuck gathering crashlogs from another test run while trying to start up the test runner.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>359924</attachid>
            <date>2019-01-23 12:49:33 -0800</date>
            <delta_ts>2019-01-23 13:28:41 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-193734-20190123124933.patch</filename>
            <type>text/plain</type>
            <size>1794</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29sc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