<?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>207401</bug_id>
          
          <creation_ts>2020-02-07 13:09:16 -0800</creation_ts>
          <short_desc>iPad testers failing to launch processes</short_desc>
          <delta_ts>2020-02-10 09:25:18 -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>ap</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>slewis</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1616324</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 13:09:16 -0800</bug_when>
    <thetext>Our iPad testers are consistently failing to launch processes. Reproducing the issue is difficult, even when attempting to do so on the bots themselves, but our automation is constantly struggling with this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616325</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 13:09:39 -0800</bug_when>
    <thetext>&lt;rdar://problem/58184777&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616332</commentid>
    <comment_count>2</comment_count>
      <attachid>390118</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 13:17:27 -0800</bug_when>
    <thetext>Created attachment 390118
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616339</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 13:35:18 -0800</bug_when>
    <thetext>I&apos;ve managed to reproduce this twice by running kill-old-processes right before running tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616382</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 14:45:42 -0800</bug_when>
    <thetext>Committed r256065: &lt;https://trac.webkit.org/changeset/256065&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616451</commentid>
    <comment_count>5</comment_count>
      <attachid>390118</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-02-07 16:29:09 -0800</bug_when>
    <thetext>Comment on attachment 390118
Patch

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

&gt; Tools/BuildSlaveSupport/kill-old-processes:102
&gt; +        &quot;Simulator.app&quot;,

This is surprising, apps don&apos;t usually have .app in the process name. Does this updated line have any effect now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616863</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-10 08:07:32 -0800</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #5)
&gt; Comment on attachment 390118 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=390118&amp;action=review
&gt; 
&gt; &gt; Tools/BuildSlaveSupport/kill-old-processes:102
&gt; &gt; +        &quot;Simulator.app&quot;,
&gt; 
&gt; This is surprising, apps don&apos;t usually have .app in the process name. Does
&gt; this updated line have any effect now?

It&apos;s in the path:
Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator

Not sure we should really be doing this at actually. This did fix our iPad testers, but it also hosed one of our iPhone bots in the process:
https://build.webkit.org/builders/Apple%20iOS%2013%20Simulator%20Release%20WK2%20%28Tests%29/builds/2490

That bot was in a pretty bad state, grabbed a sysdiagnose, but couldn&apos;t really do anything else. I restarted it and will continue to monitor it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616898</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-02-10 09:25:18 -0800</bug_when>
    <thetext>&gt; It&apos;s in the path: Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator

Elements in the tasksToKillMac array are passed to killall as regex matches: &apos;os.system(&quot;killall -9 -v -m &quot; + task)&apos;

This means that path isn&apos;t considered, just the process name. Also, it means that the dot in &quot;Simulator.app&quot; matches any character, which is not a big deal, but is unclean.

Try &quot;killall -9 -v -m Terminal.app&quot; in your Terminal session to confirm that it won&apos;t be killed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>390118</attachid>
            <date>2020-02-07 13:17:27 -0800</date>
            <delta_ts>2020-02-07 14:45:55 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-207401-20200207131721.patch</filename>
            <type>text/plain</type>
            <size>1407</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI1NjA1MikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpA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b2Nl
c3Nlcwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09Ci0tLSBUb29scy9CdWlsZFNsYXZlU3VwcG9ydC9raWxsLW9sZC1wcm9j
ZXNzZXMJKHJldmlzaW9uIDI1NjA1MSkKKysrIFRvb2xzL0J1aWxkU2xhdmVTdXBwb3J0L2tpbGwt
b2xkLXByb2Nlc3Nlcwkod29ya2luZyBjb3B5KQpAQCAtOTksNyArOTksNyBAQCBkZWYgbWFpbih1
c2VyPU5vbmUpOgogICAgICAgICAiV2ViUHJvY2VzcyIsCiAgICAgICAgICJ4Y29kZWJ1aWxkIiwK
ICAgICAgICAgIyBGSVhNRTogQ29uc2lkZXIgbW92aW5nIGlPUy1zcGVjaWZpYyB0YXNrcyB0byB0
aGVpciBvd24gbGlzdC4KLSAgICAgICAgIlNpbXVsYXRvciIsCisgICAgICAgICJTaW11bGF0b3Iu
YXBwIiwKICAgICBdCiAKICAgICB0YXNrVG9LaWxsVW5peCA9IFsK
</data>

          </attachment>
      

    </bug>

</bugzilla>