<?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>168150</bug_id>
          
          <creation_ts>2017-02-10 15:56:18 -0800</creation_ts>
          <short_desc>run-webkit-tests for iOS Simulator always complains that stopping WebKitTestRunnerApp.app times out</short_desc>
          <delta_ts>2017-02-14 08:35:09 -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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>lforschler</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1275599</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-02-10 15:56:18 -0800</bug_when>
    <thetext>563$ $ wktests --debug --ios-simulator LayoutTests/compositing/masks/
This machine could support 4 simulators, but is only configured for 3.
Please see &lt;https://trac.webkit.org/wiki/IncreasingKernelLimits&gt;.
Using port &apos;ios-simulator&apos;
Test configuration: &lt;, x86_64, debug&gt;
Placing test results in /Volumes/Data/Development/OSX/webkit/OpenSource/WebKitBuild/Debug-iphonesimulator/layout-test-results
Baseline search path: platform/ios-simulator-wk2 -&gt; platform/ios-simulator -&gt; platform/wk2 -&gt; generic
Using Debug build
Pixel tests disabled
Regular timeout: 30000, slow test timeout: 150000
Command line: /Volumes/Data/Development/OSX/webkit/OpenSource/WebKitBuild/Debug-iphonesimulator/WebKitTestRunnerApp.app -

Found 21 tests; running 19, skipping 2.

Running 19 tests

Creating app:/tmp/WebKitTestingSimulators/Simulator0.app
/tmp/WebKitTestingSimulators/Simulator0.app: replacing existing signature
Waiting for all iOS Simulators to finish booting.
Running 1 WebKitTestRunnerApp.app.

[16/19] compositing/masks/solid-color-masked.html passed unexpectedly                               
stopping WebKitTestRunnerApp.app(pid 84992) timed out, killing it   &lt;------------------- here

18 tests ran as expected, 1 didn&apos;t:


Expected to fail, but passed: (1)
  compositing/masks/solid-color-masked.html


I also this this when running DRT with -1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1275631</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-02-10 16:28:08 -0800</bug_when>
    <thetext>&lt;rdar://problem/30475467&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1275633</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-10 16:34:40 -0800</bug_when>
    <thetext>I can fix this, and I will shortly upload a patch which does.

That being said, I&apos;m not sure this is a bug.  This happens because simctl terminate does not, despite it&apos;s name, terminate the app it is given.  It simply sends it to a background state.  As a result, the process is still running.

We could send the process a SIGTERM after using simctl&apos;s api to terminate the app and it&apos;s process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1275634</commentid>
    <comment_count>3</comment_count>
      <attachid>301213</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-10 16:37:00 -0800</bug_when>
    <thetext>Created attachment 301213
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1275635</commentid>
    <comment_count>4</comment_count>
      <attachid>301213</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-02-10 16:39:03 -0800</bug_when>
    <thetext>Comment on attachment 301213
Patch

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

&gt; Tools/Scripts/webkitpy/port/simulator_process.py:134
&gt; +        os.kill(self._pid, signal.SIGTERM)

Do we need to give it some time to terminate? Overall, this sequence seems confusing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1275864</commentid>
    <comment_count>5</comment_count>
      <attachid>301213</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-11 15:02:35 -0800</bug_when>
    <thetext>Comment on attachment 301213
Patch

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

&gt;&gt; Tools/Scripts/webkitpy/port/simulator_process.py:134
&gt;&gt; +        os.kill(self._pid, signal.SIGTERM)
&gt; 
&gt; Do we need to give it some time to terminate? Overall, this sequence seems confusing.

I don&apos;t believe so.

Basically what&apos;s going on here is that self._device.terminate_app will not stop the app process.  SIGTERM should stop the process, if it does not, we will pass the pid to our executive class in server_process which does a more involved kill sequence which includes SIGKILL as well as SIGTERM.  This sequence will prevent the lines that Simon is seeing from being logged unless the processes failed to respond to the SIGTERM as expected.

As I mentioned, I don&apos;t really think this is broken at the moment, but if we wanted to suppress the logging line Simon is seeing, this would be the correct way to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276217</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-02-13 09:47:57 -0800</bug_when>
    <thetext>If we don&apos;t need to give it time, why do we need to call self._device.terminate_app right before sending the signal?

&gt; As I mentioned, I don&apos;t really think this is broken at the moment, but if we wanted to suppress the logging line Simon is seeing, this would be the correct way to do so.

We do not want spurious error messages in run-webkit-tests output, as that&apos;s super misleading. I suspect that it wastes time waiting for the timeout too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276248</commentid>
    <comment_count>7</comment_count>
      <attachid>301361</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-13 10:58:44 -0800</bug_when>
    <thetext>Created attachment 301361
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276251</commentid>
    <comment_count>8</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-13 11:00:32 -0800</bug_when>
    <thetext>(In reply to comment #6)

Ok, this is actually an issue.

I&apos;ve updated the patch.  The timeout is real, and is a regression caused by &lt;http://trac.webkit.org/changeset/211370&gt;.  It only would have effected things when the app being closed at the end of a test suite.

What I said in comment #1 is also true, hence the need to both terminate the app and terminate the process.  This is done to give the app a chance to gracefully exit before terminating the process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276280</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-02-13 12:00:12 -0800</bug_when>
    <thetext>&gt; This is done to give the app a chance to gracefully exit before terminating the process.

To give it a fair chance, how long should we wait before terminating?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276317</commentid>
    <comment_count>10</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-13 12:53:45 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; &gt; This is done to give the app a chance to gracefully exit before terminating the process.
&gt; 
&gt; To give it a fair chance, how long should we wait before terminating?

Unfortunately, this is going to depend on the app.

DumpRenderTree and WebKitTestRunner should be closed almost instantly.  Does a quarter second pause sound reasonable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276362</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-02-13 14:17:25 -0800</bug_when>
    <thetext>I don&apos;t know what number is OK, which is part of what makes me question giving the app an opportunity to close nicely. What will break if we always send the signal?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276386</commentid>
    <comment_count>12</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-13 15:00:26 -0800</bug_when>
    <thetext>(In reply to comment #11)
&gt; I don&apos;t know what number is OK, which is part of what makes me question
&gt; giving the app an opportunity to close nicely. What will break if we always
&gt; send the signal?

With the current implementation of DumpRenderTree and WebKitTestRunner, nothing will break.  Some other app may fail to save assets, gracefully close sockets, that sort of thing.  But in the case of DumpRenderTree and WebKitTestRunner, sending a SIGTERM shouldn&apos;t cause an problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276399</commentid>
    <comment_count>13</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-02-13 15:16:13 -0800</bug_when>
    <thetext>In this case, I suggest just always sending the signal, as we don&apos;t give the process any time to orderly terminate anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276405</commentid>
    <comment_count>14</comment_count>
      <attachid>301402</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-13 15:30:53 -0800</bug_when>
    <thetext>Created attachment 301402
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276415</commentid>
    <comment_count>15</comment_count>
      <attachid>301402</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2017-02-13 15:53:50 -0800</bug_when>
    <thetext>Comment on attachment 301402
Patch

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

&gt; Tools/Scripts/webkitpy/port/simulator_process.py:-133
&gt; -        self._device.terminate_app(self._bundle_id)

Last I recall this was the only function that called Device.terminate_app(). Is there reason to keep this function around?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276419</commentid>
    <comment_count>16</comment_count>
      <attachid>301402</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-13 16:03:03 -0800</bug_when>
    <thetext>Comment on attachment 301402
Patch

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

&gt;&gt; Tools/Scripts/webkitpy/port/simulator_process.py:-133
&gt;&gt; -        self._device.terminate_app(self._bundle_id)
&gt; 
&gt; Last I recall this was the only function that called Device.terminate_app(). Is there reason to keep this function around?

It is not used anywhere else.

Removing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276426</commentid>
    <comment_count>17</comment_count>
      <attachid>301411</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-02-13 16:15:04 -0800</bug_when>
    <thetext>Created attachment 301411
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276759</commentid>
    <comment_count>18</comment_count>
      <attachid>301411</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-02-14 08:35:03 -0800</bug_when>
    <thetext>Comment on attachment 301411
Patch

Clearing flags on attachment: 301411

Committed r212297: &lt;http://trac.webkit.org/changeset/212297&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276760</commentid>
    <comment_count>19</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-02-14 08:35:09 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>301213</attachid>
            <date>2017-02-10 16:37:00 -0800</date>
            <delta_ts>2017-02-13 10:58:40 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-168150-20170210163433.patch</filename>
            <type>text/plain</type>
            <size>1163</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlz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29weSkKQEAgLTEzMSw0ICsxMzEsNSBAQCBjbGFzcyBTaW11bGF0
b3JQcm9jZXNzKFNlcnZlclByb2Nlc3MpOgogCiAgICAgZGVmIF9raWxsKHNlbGYpOgogICAgICAg
ICBzZWxmLl9kZXZpY2UudGVybWluYXRlX2FwcChzZWxmLl9idW5kbGVfaWQpCisgICAgICAgIG9z
LmtpbGwoc2VsZi5fcGlkLCBzaWduYWwuU0lHVEVSTSkKICAgICAgICAgc3VwZXIoU2ltdWxhdG9y
UHJvY2Vzcywgc2VsZikuX2tpbGwoKQo=
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>301361</attachid>
            <date>2017-02-13 10:58:44 -0800</date>
            <delta_ts>2017-02-13 15:30:48 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-168150-20170213105612.patch</filename>
            <type>text/plain</type>
            <size>1428</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIxMjIzMykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDE3LTAyLTEzICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBydW4td2Via2l0LXRlc3RzIGZvciBpT1MgU2ltdWxhdG9yIGFsd2F5cyBj
b21wbGFpbnMgdGhhdCBzdG9wcGluZyBXZWJLaXRUZXN0UnVubmVyQXBwLmFwcCB0aW1lcyBvdXQK
KyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE2ODE1MAor
CisgICAgICAgIFJldmlld2VkIGJ5I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ZWxmLl9kZXZpY2UudGVybWlu
YXRlX2FwcChzZWxmLl9idW5kbGVfaWQpCi0gICAgICAgIHN1cGVyKFNpbXVsYXRvclByb2Nlc3Ms
IHNlbGYpLl9raWxsKCkKKyAgICAgICAgb3Mua2lsbChzZWxmLl9waWQsIHNpZ25hbC5TSUdURVJN
KQorICAgICAgICBzdXBlcihTaW11bGF0b3JQcm9jZXNzLCBzZWxmKS5zdG9wKHRpbWVvdXRfc2Vj
cykK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>301402</attachid>
            <date>2017-02-13 15:30:53 -0800</date>
            <delta_ts>2017-02-13 16:15:00 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-168150-20170213152821.patch</filename>
            <type>text/plain</type>
            <size>1428</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIxMjIzMykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDE3LTAyLTEzICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBydW4td2Via2l0LXRlc3RzIGZvciBpT1MgU2ltdWxhdG9yIGFsd2F5cyBj
b21wbGFpbnMgdGhhdCBzdG9wcGluZyBXZWJLaXRUZXN0UnVubmVyQXBwLmFwcCB0aW1lcyBvdXQK
KyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE2ODE1MAor
CisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogU2NyaXB0
cy93ZWJraX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YpLl9raWxsKCkKKyAgICBkZWYgc3RvcChzZWxmLCB0aW1l
b3V0X3NlY3M9My4wKToKKyAgICAgICAgb3Mua2lsbChzZWxmLl9waWQsIHNpZ25hbC5TSUdURVJN
KQorICAgICAgICBzdXBlcihTaW11bGF0b3JQcm9jZXNzLCBzZWxmKS5zdG9wKHRpbWVvdXRfc2Vj
cykK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>301411</attachid>
            <date>2017-02-13 16:15:04 -0800</date>
            <delta_ts>2017-02-14 08:35:03 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-168150-20170213161232.patch</filename>
            <type>text/plain</type>
            <size>2238</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIxMjI1NikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE3IEBACisyMDE3LTAyLTEzICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBydW4td2Via2l0LXRlc3RzIGZvciBpT1MgU2ltdWxhdG9yIGFsd2F5cyBj
b21wbGFpbnMgdGhhdCBzdG9wcGluZyBXZWJLaXRUZXN0UnVubmVyQXBwLmFwcCB0aW1lcyBvdXQK
KyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE2ODE1MAor
CisgICAgICAgIFJldmlld2VkIGJ5IEFsZXhleSBQcm9za3VyeWFrb3YuCisKKyAgICAgICAgKiBT
Y3JpcHRzL3dlYmtpdHB5L3BvcnQvc2ltdWxhdG9yX3Byb2Nlc3MucHk6Cisg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faWRdLCByZXR1cm5fZXhpdF9jb2RlPVRydWUpCi0K
ICAgICBkZWYgX19lcV9fKHNlbGYsIG90aGVyKToKICAgICAgICAgcmV0dXJuIHNlbGYudWRpZCA9
PSBvdGhlci51ZGlkCiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>