<?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>215944</bug_id>
          
          <creation_ts>2020-08-28 12:41:14 -0700</creation_ts>
          <short_desc>ews might mark build as successful if tests fail to run</short_desc>
          <delta_ts>2021-08-30 03:35:26 -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>Other</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=218618</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=219543</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=229634</see_also>
          <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="Aakash Jain">aakash_jain</reporter>
          <assigned_to name="Aakash Jain">aakash_jain</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>jbedard</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1683741</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-08-28 12:41:14 -0700</bug_when>
    <thetext>EWS might mark build as successful in certain conditions if tests fail to run due to some infrastructure issue (e.g.: test hanging). For e.g. in https://ews-build.webkit.org/#/builders/24/builds/24143 tests were getting stuck (and killed by buildbot after 20 minutes). However the build was marked successful.

Note that in case the tests fails with an exit code 254, we already have logic to retry the build. However, in case the tests get stuck, and were killed by buildbot after 20 minutes, our current logic doesn&apos;t handle that well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685601</commentid>
    <comment_count>1</comment_count>
      <attachid>407956</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-09-04 04:28:33 -0700</bug_when>
    <thetext>Created attachment 407956
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685678</commentid>
    <comment_count>2</comment_count>
      <attachid>407956</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-09-04 08:56:27 -0700</bug_when>
    <thetext>Comment on attachment 407956
Patch

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

&gt; Tools/BuildSlaveSupport/ews-build/steps.py:2219
&gt; +            return self.retry_build(&apos;Unexpected infrastructure issue, retrying build&apos;)

Won&apos;t this put us into an infinite retry loop? I recall there being a bug about getting out of an infinite retry loop by updating the revision we&apos;re testing with.....have we landed that yet?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685694</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-09-04 09:29:41 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #2)
&gt; Won&apos;t this put us into an infinite retry loop? I recall there being a bug about getting out of an infinite retry loop by updating the revision we&apos;re testing with.....have we landed that yet?
You are right, depending on what caused the issue, it might create infinite retry loop (e.g.: bad commit causing layout-test to hang would create infinite retry loop, whereas bot in a bad state causing tests to hang would cause retries only until the bot is fixed). 

Bug 203698  which has the fix to automatically get out of retries isn&apos;t landed yet (need some more testing for edge cases). That patch would update retry_build() method, which is used by this patch. So when we land that patch, the fix will be applicable for this case as well.

We can wait to land this patch after Bug 203698, or can land this now as well. In theory this patch is still an improvement, since without this, ews might show misleading green status-bubbles, which is probably worst than no results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685715</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-09-04 09:51:08 -0700</bug_when>
    <thetext>(In reply to Aakash Jain from comment #3)
&gt; (In reply to Jonathan Bedard from comment #2)
&gt; &gt; Won&apos;t this put us into an infinite retry loop? I recall there being a bug about getting out of an infinite retry loop by updating the revision we&apos;re testing with.....have we landed that yet?
&gt; You are right, depending on what caused the issue, it might create infinite
&gt; retry loop (e.g.: bad commit causing layout-test to hang would create
&gt; infinite retry loop, whereas bot in a bad state causing tests to hang would
&gt; cause retries only until the bot is fixed). 
&gt; 
&gt; Bug 203698  which has the fix to automatically get out of retries isn&apos;t
&gt; landed yet (need some more testing for edge cases). That patch would update
&gt; retry_build() method, which is used by this patch. So when we land that
&gt; patch, the fix will be applicable for this case as well.
&gt; 
&gt; We can wait to land this patch after Bug 203698, or can land this now as
&gt; well. In theory this patch is still an improvement, since without this, ews
&gt; might show misleading green status-bubbles, which is probably worst than no
&gt; results.

How far are we from getting bug 203698 landed? I&apos;m ok landing this one now, but only if we get bug 203698 landed in the next week. It seems like this change will make the case covered by bug 203698 more common.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685762</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-09-04 11:08:04 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #4)
&gt; How far are we from getting bug 203698 landed? I&apos;m ok landing this one now, but only if we get bug 203698 landed in the next week. It seems like this change will make the case covered by bug 203698 more common.
I think next week is reasonable for Bug 203698. Can you please review that patch again as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685818</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-09-04 12:42:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/68360846&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1687127</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-09-09 14:30:40 -0700</bug_when>
    <thetext>Committed r266799: &lt;https://trac.webkit.org/changeset/266799&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 407956.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>407956</attachid>
            <date>2020-09-04 04:28:33 -0700</date>
            <delta_ts>2020-09-09 14:30:41 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-215944-20200904072832.patch</filename>
            <type>text/plain</type>
            <size>3465</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI2NjU5NikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE2IEBACisyMDIwLTA5LTA0ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBld3MgbWlnaHQgbWFyayBidWlsZCBhcyBzdWNjZXNzZnVsIGlmIHRlc3Rz
IGZhaWwgdG8gcnVuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD0yMTU5NDQKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAg
ICAgICAqIEJ1aWxkU2xhdmVTdXBwb3J0L2V3cy1idWlsZC9zdGVwcy5weToKKyAgICAgICAgKEFu
YWx5emVMYXlvdXRUZXN0c1Jlc3VsdHMucmV0cnlfYnVpbGQpOgorICAgICAgICAoQW5hbHl6ZUxh
eW91dFRlc3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