<?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>155367</bug_id>
          
          <creation_ts>2016-03-11 09:45:38 -0800</creation_ts>
          <short_desc>Python test webkitpy.common.system.executive_unittest.ExecutiveTest.serial_test_kill_process is flaky</short_desc>
          <delta_ts>2016-04-12 20:57:33 -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>New Bugs</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=54790</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=98196</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Alexey Proskuryakov">ap</assigned_to>
          <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>glenn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1173753</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-03-11 09:45:38 -0800</bug_when>
    <thetext>webkitpy.common.system.executive_unittest.ExecutiveTest.serial_test_kill_process is flaky

This webkitpy test has been flaky and failing intermittently.

https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK2%20%28Tests%29/builds/4200
https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK2%20%28Tests%29/builds/4168
https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK2%20%28Tests%29/builds/4156

https://build.webkit.org/builders/Apple%20iOS%209%20Simulator%20Release%20WK2%20%28Tests%29/builds/3909
https://build.webkit.org/builders/Apple%20iOS%209%20Simulator%20Release%20WK2%20%28Tests%29/builds/3893
https://build.webkit.org/builders/Apple%20iOS%209%20Simulator%20Release%20WK2%20%28Tests%29/builds/3886

[1446/1451] webkitpy.common.system.executive_unittest.ExecutiveTest.serial_test_kill_process failed:
  Traceback (most recent call last):
    File &quot;/Volumes/Data/slave/elcapitan-release-tests-wk2/build/Tools/Scripts/webkitpy/common/system/executive_unittest.py&quot;, line 184, in serial_test_kill_process
      self.assertEqual(process.wait(), expected_exit_code)
  AssertionError: 0 != -15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183211</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-04-12 13:39:21 -0700</bug_when>
    <thetext>I think that this was introduced by this change, unclear if it was even intentional: &lt;http://trac.webkit.org/changeset/89400/trunk/Tools/Scripts/webkitpy/common/system/executive.py&gt;

Doing a non-blocking waitpid followed by another waitpid is super racy, and no wonder that the second one sometimes fails.

Can&apos;t say that I like overall design of this code either - it relies on an exception as part of normal operation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183220</commentid>
    <comment_count>2</comment_count>
      <attachid>276272</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-04-12 13:48:24 -0700</bug_when>
    <thetext>Created attachment 276272
proposed fix

Tests pass on Mac without this. I didn&apos;t test on Windows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183222</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-04-12 13:50:54 -0700</bug_when>
    <thetext>Attachment 276272 did not pass style-queue:


ERROR: Tools/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 1 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183247</commentid>
    <comment_count>4</comment_count>
      <attachid>276276</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-04-12 14:28:47 -0700</bug_when>
    <thetext>Created attachment 276276
proposed fix

With a proper ChangeLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183333</commentid>
    <comment_count>5</comment_count>
      <attachid>276276</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-04-12 20:57:29 -0700</bug_when>
    <thetext>Comment on attachment 276276
proposed fix

Clearing flags on attachment: 276276

Committed r199403: &lt;http://trac.webkit.org/changeset/199403&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183334</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-04-12 20:57:33 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>276272</attachid>
            <date>2016-04-12 13:48:24 -0700</date>
            <delta_ts>2016-04-12 14:28:47 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>ExecutiveTest.txt</filename>
            <type>text/plain</type>
            <size>1221</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE5OTM4MikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisy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CiAgICAgICAgICAgICAgICAgb3Mu
a2lsbChwaWQsIHNpZ25hbC5TSUdLSUxMKQotICAgICAgICAgICAgICAgIF8gPSBvcy53YWl0cGlk
KHBpZCwgb3MuV05PSEFORykKICAgICAgICAgICAgIGV4Y2VwdCBPU0Vycm9yLCBlOgogICAgICAg
ICAgICAgICAgIGlmIGUuZXJybm8gPT0gZXJybm8uRUFHQUlOOgogICAgICAgICAgICAgICAgICAg
ICBpZiByZXRyaWVzX2xlZnQgPD0gMDoK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>276276</attachid>
            <date>2016-04-12 14:28:47 -0700</date>
            <delta_ts>2016-04-12 20:57:29 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>ExecutiveTest.txt</filename>
            <type>text/plain</type>
            <size>1464</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE5OTM4MikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDE2LTA0LTEyICBBbGV4ZXkgUHJvc2t1cnlha292ICA8YXBAYXBwbGUuY29t
PgorCisgICAgICAgIFB5dGhvbiB0ZXN0IHdlYmtpdHB5LmNvbW1vbi5zeXN0ZW0uZXhlY3V0aXZl
X3VuaXR0ZXN0LkV4ZWN1dGl2ZVRlc3Quc2VyaWFsX3Rlc3Rfa2lsbF9wcm9jZXNzIGlzIGZsYWt5
CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNTUzNjcK
KworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K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ICAgICAgb3Mua2lsbChwaWQsIHNpZ25hbC5TSUdLSUxMKQotICAgICAgICAgICAgICAg
IF8gPSBvcy53YWl0cGlkKHBpZCwgb3MuV05PSEFORykKICAgICAgICAgICAgIGV4Y2VwdCBPU0Vy
cm9yLCBlOgogICAgICAgICAgICAgICAgIGlmIGUuZXJybm8gPT0gZXJybm8uRUFHQUlOOgogICAg
ICAgICAgICAgICAgICAgICBpZiByZXRyaWVzX2xlZnQgPD0gMDoK
</data>

          </attachment>
      

    </bug>

</bugzilla>