<?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>161699</bug_id>
          
          <creation_ts>2016-09-07 10:59:29 -0700</creation_ts>
          <short_desc>Run spindumps on timeout on iOS 9 Simulator Release WK2 (Tests)</short_desc>
          <delta_ts>2016-09-14 08:18:17 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 9.3</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=161696</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=161964</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="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>lforschler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1227260</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-07 10:59:29 -0700</bug_when>
    <thetext>This bug is meant to help debug https://bugs.webkit.org/show_bug.cgi?id=161696.  Spindumps are large, so they are only being selectively enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227261</commentid>
    <comment_count>1</comment_count>
      <attachid>288162</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-07 11:00:21 -0700</bug_when>
    <thetext>Created attachment 288162
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227269</commentid>
    <comment_count>2</comment_count>
      <attachid>288162</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2016-09-07 11:33:25 -0700</bug_when>
    <thetext>Comment on attachment 288162
Patch

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

&gt; Tools/ChangeLog:3
&gt; +        Run spindumps on timeout on iOS 9 WK 2release simulators.

&quot;iOS 9 WK 2release simulators&quot; =&gt; &quot;iOS 9 Simulator Release WK2 (Tests) bots&quot;

&gt; Tools/ChangeLog:9
&gt; +        (RunWebKitTests): Disable sample on timeout for everything except iOS 9 WK2 release simulators.

Do we know how much more time this may introduce for a test cycle?

&gt; Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:350
&gt; +    if WithProperties(&quot;%(buildername)s&quot;) != &quot;Apple iOS 9 Simulator Release WK2 (Tests)&quot;:
&gt; +        command.append(&quot;--no-sample-on-timeout&quot;)

Does this work? From my understanding the values of Buildbot properties are not available until start() is called. Also, please add a test for this change. The unit tests for Buildbot are in file &lt;https://trac.webkit.org/browser/trunk/Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py&gt;. You can run the tests by invoking &quot;python mastercfg_unittest.py&quot; inside directory Tools/BuildSlaveSupport/build.webkit.org-config.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227272</commentid>
    <comment_count>3</comment_count>
      <attachid>288162</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-07 11:56:56 -0700</bug_when>
    <thetext>Comment on attachment 288162
Patch

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

&gt;&gt; Tools/ChangeLog:9
&gt;&gt; +        (RunWebKitTests): Disable sample on timeout for everything except iOS 9 WK2 release simulators.
&gt; 
&gt; Do we know how much more time this may introduce for a test cycle?

The issue won&apos;t be time (it&apos;s about 30 seconds per timeout test, so basically doubling the timeout time) it will be memory

&gt;&gt; Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:350
&gt;&gt; +        command.append(&quot;--no-sample-on-timeout&quot;)
&gt; 
&gt; Does this work? From my understanding the values of Buildbot properties are not available until start() is called. Also, please add a test for this change. The unit tests for Buildbot are in file &lt;https://trac.webkit.org/browser/trunk/Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py&gt;. You can run the tests by invoking &quot;python mastercfg_unittest.py&quot; inside directory Tools/BuildSlaveSupport/build.webkit.org-config.

Well, I&apos;m parsing the builder-name instead of the platform.  From my understanding, the builder-name is defined in the constructor, after all, we actually use the builder name in the constructor already (line 341).  I used the builder-name instead on the platform name since this change is specifically targeting a builder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227363</commentid>
    <comment_count>4</comment_count>
      <attachid>288190</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-07 14:48:43 -0700</bug_when>
    <thetext>Created attachment 288190
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227365</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-07 14:50:32 -0700</bug_when>
    <thetext>Adding Unit Tests for this requires infrastructure we currently do not have.  Local testing has confirmed this patch, and a later patch will include Unit Tests for RunWebKitTests more generally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227395</commentid>
    <comment_count>6</comment_count>
      <attachid>288190</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-09-07 16:22:03 -0700</bug_when>
    <thetext>Comment on attachment 288190
Patch

Seems like concerns have been addressed, rs=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227408</commentid>
    <comment_count>7</comment_count>
      <attachid>288190</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2016-09-07 16:45:08 -0700</bug_when>
    <thetext>Comment on attachment 288190
Patch

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

&gt; Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:360
&gt; +        if WithProperties(&quot;%(buildername)s&quot;) != &quot;Apple iOS 9 Simulator Release WK2 (Tests)&quot;:

Is there a way we can do this an avoid hardcoding some or all of the name of this bot? I mean, we will setup bots for iOS 10 soon.

On another note, it seems excessive to interpolate the value of a Buildbot property using WithProperties() as a means to gets its value. I suggest we use self.getProperty(X) to get the value directly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227419</commentid>
    <comment_count>8</comment_count>
      <attachid>288190</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-09-07 17:02:39 -0700</bug_when>
    <thetext>Comment on attachment 288190
Patch

Clearing flags on attachment: 288190

Committed r205573: &lt;http://trac.webkit.org/changeset/205573&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227420</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-09-07 17:02:43 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227820</commentid>
    <comment_count>10</comment_count>
      <attachid>288190</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-08 14:33:04 -0700</bug_when>
    <thetext>Comment on attachment 288190
Patch

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

&gt;&gt; Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:360
&gt;&gt; +        if WithProperties(&quot;%(buildername)s&quot;) != &quot;Apple iOS 9 Simulator Release WK2 (Tests)&quot;:
&gt; 
&gt; Is there a way we can do this an avoid hardcoding some or all of the name of this bot? I mean, we will setup bots for iOS 10 soon.
&gt; 
&gt; On another note, it seems excessive to interpolate the value of a Buildbot property using WithProperties() as a means to gets its value. I suggest we use self.getProperty(X) to get the value directly.

I&apos;m not sure how long we intend to keep this change.  Since it is designed to catch a specific problem, I think for the time being, hardcoding is appropriate.  If we determine that these logs are useful more generally, we can use something more general.

Looking closer, yes, self.getProperty is probably a better choice and will likely be used when I update this code-path for testing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>288162</attachid>
            <date>2016-09-07 11:00:21 -0700</date>
            <delta_ts>2016-09-07 14:48:40 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-161699-20160907105756.patch</filename>
            <type>text/plain</type>
            <size>1854</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIwNTU1NSkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDE2LTA5LTA3ICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBSdW4gc3BpbmR1bXBzIG9uIHRpbWVvdXQgb24gaU9TIDkgV0sgMnJlbGVh
c2Ugc2ltdWxhdG9ycy4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcu
Y2dpP2lkPTE2MTY5OQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgICogQnVpbGRTbGF2ZVN1cHBvcnQvYnVpbGQud2Via2l0Lm9yZy1jb25maWcvbWFzdGVy
LmNmZzoKKyAgICAgICAgKFJ1bldlYktpdFRlc3RzKTogRGlzYWJsZSBzYW1wbGUgb24gdGltZW91
dCBmb3IgZXZlcnl0aGluZyBleGNlcHQ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lciIsIFdpdGhQ
cm9wZXJ0aWVzKCIlKGJ1aWxkbnVtYmVyKXMiKSwKQEAgLTM0Nyw2ICszNDYsOSBAQCBjbGFzcyBS
dW5XZWJLaXRUZXN0cyhzaGVsbC5UZXN0KToKICAgICAgICAgICAgICAgICItLWV4aXQtYWZ0ZXIt
bi1mYWlsdXJlcyIsICI1MDAiLAogICAgICAgICAgICAgICAgV2l0aFByb3BlcnRpZXMoIi0tJShj
b25maWd1cmF0aW9uKXMiKV0KIAorICAgIGlmIFdpdGhQcm9wZXJ0aWVzKCIlKGJ1aWxkZXJuYW1l
KXMiKSAhPSAiQXBwbGUgaU9TIDkgU2ltdWxhdG9yIFJlbGVhc2UgV0syIChUZXN0cykiOgorICAg
ICAgICBjb21tYW5kLmFwcGVuZCgiLS1uby1zYW1wbGUtb24tdGltZW91dCIpCisKICAgICBkZWYg
c3RhcnQoc2VsZik6CiAgICAgICAgIHBsYXRmb3JtID0gc2VsZi5nZXRQcm9wZXJ0eSgncGxhdGZv
cm0nKQogICAgICAgICBhcHBlbmRDdXN0b21CdWlsZEZsYWdzKHNlbGYsIHBsYXRmb3JtLCBzZWxm
LmdldFByb3BlcnR5KCdmdWxsUGxhdGZvcm0nKSkK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>288190</attachid>
            <date>2016-09-07 14:48:43 -0700</date>
            <delta_ts>2016-09-07 17:02:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-161699-20160907144619.patch</filename>
            <type>text/plain</type>
            <size>2141</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIwNTU2NykKKysrIFRvb2xzL0NoYW5nZUxvZwk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iwgc2VsZi5nZXRQcm9wZXJ0eSgnY29uZmlndXJhdGlvbicpLCAi
YmluMzIiKV0pCiAKKyAgICAgICAgaWYgV2l0aFByb3BlcnRpZXMoIiUoYnVpbGRlcm5hbWUpcyIp
ICE9ICJBcHBsZSBpT1MgOSBTaW11bGF0b3IgUmVsZWFzZSBXSzIgKFRlc3RzKSI6CisgICAgICAg
ICAgICBzZWxmLnNldENvbW1hbmQoc2VsZi5jb21tYW5kICsgWyctLW5vLXNhbXBsZS1vbi10aW1l
b3V0J10pCisKICAgICAgICAgaWYgYWRkaXRpb25hbEFyZ3VtZW50czoKICAgICAgICAgICAgIHNl
bGYuc2V0Q29tbWFuZChzZWxmLmNvbW1hbmQgKyBhZGRpdGlvbmFsQXJndW1lbnRzKQogICAgICAg
ICByZXR1cm4gc2hlbGwuVGVzdC5zdGFydChzZWxmKQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>