<?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>201607</bug_id>
          
          <creation_ts>2019-09-09 10:51:03 -0700</creation_ts>
          <short_desc>[EWS] API testers can go in an infinite RETRY loop when there is build failure in trunk</short_desc>
          <delta_ts>2019-09-10 13:35:03 -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>
          
          
          <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>ap</cc>
    
    <cc>jbedard</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1569189</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-09-09 10:51:03 -0700</bug_when>
    <thetext>If there is a build failure on top of tree, and the patch being tested have API test failures, then the API tester would fail to build and RETRY the build, and keep RETRYing, until the patch is obsoleted/closed.

This happens in very specific scenario, when following conditions are met:
1) builder was able to build irrespective of ToT having build failure (because it does incremental build, not clean build by default).
2) API-tester found a test failure with the patch.
3) API-tester failed to build top-of-tree (since it does clean-build).

In that case, tester will retry the build and since it&apos;s testing the exact same revision, it will fail again and keep RETRYing in this manner. We shouldn&apos;t RETRY in such cases.

For e.g.: 
For Patch 378021 (in https://bugs.webkit.org/show_bug.cgi?id=201471), Builder was able to build in  https://ews-build.webkit.org/#/builders/13/builds/8775, In that build the top-of-tree was at 1d2cc7a93bcdec77250d1c4ab9686e5cc32c170a (equivalent to r249500), which had a build failure at that time (Build was broken in r249498 and fixed in r249525 in https://bugs.webkit.org/show_bug.cgi?id=201468). Builder was able to build since it does incremental build, and the patch probably didn&apos;t modify any files in the part which was broken.

The corresponding API tester noticed API test failures, and tried to build ToT and failed and keep retrying, 
e.g.: 
https://ews-build.webkit.org/#/builders/9/builds/7585
https://ews-build.webkit.org/#/builders/9/builds/7589
https://ews-build.webkit.org/#/builders/9/builds/7594
https://ews-build.webkit.org/#/builders/9/builds/7599
https://ews-build.webkit.org/#/builders/9/builds/7603
https://ews-build.webkit.org/#/builders/9/builds/8094</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1569192</commentid>
    <comment_count>1</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-09-09 10:53:08 -0700</bug_when>
    <thetext>Note that the corresponding layout-testers worked in this scenario, e.g.: https://ews-build.webkit.org/#/builders/18/builds/3039</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1569263</commentid>
    <comment_count>2</comment_count>
      <attachid>378400</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-09-09 13:12:18 -0700</bug_when>
    <thetext>Created attachment 378400
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1569275</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-09-09 13:36:15 -0700</bug_when>
    <thetext>Committed r249663: &lt;https://trac.webkit.org/changeset/249663&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1569276</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-09 13:37:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/55195942&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1569640</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-09-10 13:35:03 -0700</bug_when>
    <thetext>Deployed in production.

Working fine, e.g: https://ews-build.webkit.org/#/builders/9/builds/8174</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>378400</attachid>
            <date>2019-09-09 13:12:18 -0700</date>
            <delta_ts>2019-09-09 13:19:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-201607-20190909161217.patch</filename>
            <type>text/plain</type>
            <size>1881</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI0OTY1NykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDE5LTA5LTA5ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBbRVdTXSBBUEkgdGVzdGVycyBjYW4gZ28gaW4gYW4gaW5maW5pdGUgUkVU
UlkgbG9vcCB3aGVuIHRoZXJlIGlzIGJ1aWxkIGZhaWx1cmUgaW4gdHJ1bmsKKyAgICAgICAgaHR0
cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTIwMTYwNworCisgICAgICAgIFJl
dmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogQnVpbGRTbGF2ZVN1cHBvcnQv
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AgICAgIGlmIG5vdCAoZmlyc3RfcnVuX3Jlc3VsdHMgYW5kIHNlY29uZF9ydW5fcmVzdWx0cyBh
bmQgY2xlYW5fdHJlZV9yZXN1bHRzKToKKyAgICAgICAgaWYgbm90IChmaXJzdF9ydW5fcmVzdWx0
cyBhbmQgc2Vjb25kX3J1bl9yZXN1bHRzKToKICAgICAgICAgICAgIHNlbGYuZmluaXNoZWQoUkVU
UlkpCiAgICAgICAgICAgICBzZWxmLmJ1aWxkLmJ1aWxkRmluaXNoZWQoWydVbmFibGUgdG8gcGFy
c2UgQVBJIHRlc3QgcmVzdWx0cyddLCBSRVRSWSkKICAgICAgICAgICAgIHJldHVybiAtMQogCiAg
ICAgICAgIGRlZiBnZXRBUElUZXN0RmFpbHVyZXMocmVzdWx0KToKKyAgICAgICAgICAgIGlmIG5v
dCByZXN1bHQ6CisgICAgICAgICAgICAgICAgcmV0dXJuIHNldChbXSkKICAgICAgICAgICAgICMg
VE9ETzogQW5hbHl6ZSBUaW1lLW91dCwgQ3Jhc2ggYW5kIEZhaWx1cmUgaW5kZXBlbmRlbnRseQog
ICAgICAgICAgICAgcmV0dXJuIHNldChbZmFpbHVyZS5nZXQoJ25hbWUnKSBmb3IgZmFpbHVyZSBp
biByZXN1bHQuZ2V0KCdUaW1lZG91dCcsIFtdKV0gKwogICAgICAgICAgICAgICAgIFtmYWlsdXJl
LmdldCgnbmFtZScpIGZvciBmYWlsdXJlIGluIHJlc3VsdC5nZXQoJ0NyYXNoZWQnLCBbXSldICsK
</data>
<flag name="review"
          id="394019"
          type_id="1"
          status="+"
          setter="jbedard"
    />
          </attachment>
      

    </bug>

</bugzilla>