<?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>204222</bug_id>
          
          <creation_ts>2019-11-15 04:11:44 -0800</creation_ts>
          <short_desc>[ews] Perform validation of patch before retrying JSC tests</short_desc>
          <delta_ts>2019-11-19 08:47:01 -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>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=203756</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>commit-queue</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1590476</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-11-15 04:11:44 -0800</bug_when>
    <thetext>JSC tests takes a while to run (~45 mins). In case of failure, we retry the tests, and if failures are noticed in retry as well, then we un-apply the patch, build the ToT and run the tests again. All these steps might take a while to complete. 

Meanwhile the patch might get obsolete or r-. EWS should not continue to process such patches, as it would be wasteful. We should check the patch status before running any time-consuming step (like running tests, or building without patch). 

We did similar thing for layout and api tests in https://trac.webkit.org/changeset/252037/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1590477</commentid>
    <comment_count>1</comment_count>
      <attachid>383612</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-11-15 04:14:05 -0800</bug_when>
    <thetext>Created attachment 383612
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1590508</commentid>
    <comment_count>2</comment_count>
      <attachid>383612</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-11-15 08:39:32 -0800</bug_when>
    <thetext>Comment on attachment 383612
Patch

Clearing flags on attachment: 383612

Committed r252485: &lt;https://trac.webkit.org/changeset/252485&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1590509</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-11-15 08:39:33 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1590510</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-11-15 08:40:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/57228467&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1591544</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-11-19 08:47:01 -0800</bug_when>
    <thetext>Few examples where this change was useful in improving EWS efficiency (saving hours of processing times):

https://ews-build.webkit.org/#/builders/1/builds/147
https://ews-build.webkit.org/#/builders/1/builds/246
https://ews-build.webkit.org/#/builders/1/builds/248
https://ews-build.webkit.org/#/builders/1/builds/249
https://ews-build.webkit.org/#/builders/1/builds/250</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>383612</attachid>
            <date>2019-11-15 04:14:05 -0800</date>
            <delta_ts>2019-11-15 08:39:32 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-204222-20191115071403.patch</filename>
            <type>text/plain</type>
            <size>2277</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI1MjQ4MSkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDE5LTExLTE1ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBbZXdzXSBQZXJmb3JtIHZhbGlkYXRpb24gb2YgcGF0Y2ggYmVmb3JlIHJl
dHJ5aW5nIEpTQyB0ZXN0cworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1
Zy5jZ2k/aWQ9MjA0MjIyCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisK
KyAgICAgICAgKiBCdWlsZFNsYXZlU3VwcG9ydC9ld3MtYnVpbGQvc3RlcHMucHk6CisgICAgICAg
IChSdW5KYXZhU2NyaXB0Q29yZVRlc3RzLmV2YWx1YXRlQ29tbWFuZCk6IEFkZCBhIFZhbGlkYXRl
UGF0Y2ggc3RlcCBiZWZvcmUgcmV0cnlpbmcuCisgICAgICAgIChSZVJ1bkphdmFTY3JpcHRDb3Jl
VGVzdHMuZXZhbHVhdGVDb21tYW5kKTogRGl0dG8uCisKIDIwMTktMTEtMTQgIEpvbmF0aGFuIEJl
ZGFyZCAgPGpiZWRhcmRAYXBwbGUuY29tPgogCiAgICAgICAgIFB5dGhvbiAzOiBBZGQgc3VwcG9y
dCBpbiB3ZWJraXRweS5sYXlv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1aWxkRmluaXNoZWQoW21lc3NhZ2VdLCBTVUNDRVNTKQog
ICAgICAgICBlbHNlOgogICAgICAgICAgICAgc2VsZi5zZXRQcm9wZXJ0eSgncGF0Y2hGYWlsZWRU
ZXN0cycsIFRydWUpCi0gICAgICAgICAgICBzZWxmLmJ1aWxkLmFkZFN0ZXBzQWZ0ZXJDdXJyZW50
U3RlcChbVW5BcHBseVBhdGNoSWZSZXF1aXJlZCgpLCBDb21waWxlSlNDVG9UKCksIFJ1bkpTQ1Rl
c3RzV2l0aG91dFBhdGNoKCksIEFuYWx5emVKU0NUZXN0c1Jlc3VsdHMoKV0pCisgICAgICAgICAg
ICBzZWxmLmJ1aWxkLmFkZFN0ZXBzQWZ0ZXJDdXJyZW50U3RlcChbVW5BcHBseVBhdGNoSWZSZXF1
aXJlZCgpLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
VmFsaWRhdGVQYXRjaCh2ZXJpZnlCdWdDbG9zZWQ9RmFsc2UsIGFkZFVSTHM9RmFsc2UpLAorICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ29tcGlsZUpTQ1Rv
VCgpLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVmFs
aWRhdGVQYXRjaCh2ZXJpZnlCdWdDbG9zZWQ9RmFsc2UsIGFkZFVSTHM9RmFsc2UpLAorICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUnVuSlNDVGVzdHNXaXRo
b3V0UGF0Y2goKSwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIEFuYWx5emVKU0NUZXN0c1Jlc3VsdHMoKV0pCiAgICAgICAgIHJldHVybiByYwogCiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>