<?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>207050</bug_id>
          
          <creation_ts>2020-01-31 09:20:29 -0800</creation_ts>
          <short_desc>[ews] Display flaky test names in build summary when ReRunWebKitTests passes</short_desc>
          <delta_ts>2020-02-10 13:47:28 -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=207504</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>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1613400</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-31 09:20:29 -0800</bug_when>
    <thetext>When WebKitTest (layout-tests) fail, we re-run them. If the re-run pass, we mark the build as successful. The build summary is set to: &apos;Passed layout tests&apos;. It would be better to indicate the flaky test name in the build summary in this case, so that bot-watchers can easily notice flaky tests (and the pattern).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613421</commentid>
    <comment_count>1</comment_count>
      <attachid>389364</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-31 09:36:24 -0800</bug_when>
    <thetext>Created attachment 389364
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613426</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-31 09:41:07 -0800</bug_when>
    <thetext>This change will help in easily identifying flaky tests from builds like these (in which layout-tests have some test failures but re-run-layout-tests passes):

https://ews-build.webkit.org/#/builders/24/builds/9685
https://ews-build.webkit.org/#/builders/24/builds/9686
https://ews-build.webkit.org/#/builders/24/builds/9661
https://ews-build.webkit.org/#/builders/24/builds/9600
https://ews-build.webkit.org/#/builders/24/builds/9588
https://ews-build.webkit.org/#/builders/24/builds/9592</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613427</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-31 09:41:29 -0800</bug_when>
    <thetext>Sample run: https://ews-build.webkit-uat.org/#/builders/16/builds/33</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613454</commentid>
    <comment_count>4</comment_count>
      <attachid>389364</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-01-31 10:03:19 -0800</bug_when>
    <thetext>Comment on attachment 389364
Patch

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

&gt; Tools/BuildSlaveSupport/ews-build/steps.py:1360
&gt; +        flaky_failures_string = &apos;, &apos;.join(flaky_failures)

This looks good for now.

But, once we have this information, we could cross reference these tests by name against the results database and see if they&apos;ve failed in the last week. If they haven&apos;t, that&apos;s a decent indication of a newly flakey test (perhaps caused by the patch)

&gt; Tools/BuildSlaveSupport/ews-build/steps.py:-1355
&gt; -            message = &apos;Passed layout tests&apos;

Why did we move this out of the if statement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613505</commentid>
    <comment_count>5</comment_count>
      <attachid>389364</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-31 11:34:09 -0800</bug_when>
    <thetext>Comment on attachment 389364
Patch

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

&gt;&gt; Tools/BuildSlaveSupport/ews-build/steps.py:1360
&gt;&gt; +        flaky_failures_string = &apos;, &apos;.join(flaky_failures)
&gt; 
&gt; This looks good for now.
&gt; 
&gt; But, once we have this information, we could cross reference these tests by name against the results database and see if they&apos;ve failed in the last week. If they haven&apos;t, that&apos;s a decent indication of a newly flakey test (perhaps caused by the patch)

Agree. Another thing we need to do is to automatically file bugs for these flaky tests.

&gt;&gt; Tools/BuildSlaveSupport/ews-build/steps.py:-1355
&gt;&gt; -            message = &apos;Passed layout tests&apos;
&gt; 
&gt; Why did we move this out of the if statement.

No strong reason. Moving it back.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613509</commentid>
    <comment_count>6</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-31 11:38:22 -0800</bug_when>
    <thetext>Committed r255513: &lt;https://trac.webkit.org/changeset/255513&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613510</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-31 11:39:18 -0800</bug_when>
    <thetext>&lt;rdar://problem/59069094&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613727</commentid>
    <comment_count>8</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-02-01 04:36:01 -0800</bug_when>
    <thetext>Deployed on production server.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>389364</attachid>
            <date>2020-01-31 09:36:24 -0800</date>
            <delta_ts>2020-01-31 12:06:46 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-207050-20200131123623.patch</filename>
            <type>text/plain</type>
            <size>2238</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI1NTUwMSkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDIwLTAxLTMxICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBbZXdzXSBEaXNwbGF5IGZsYWt5IHRlc3QgbmFtZXMgaW4gYnVpbGQgc3Vt
bWFyeSB3aGVuIFJlUnVuV2ViS2l0VGVzdHMgcGFzc2VzCisgICAgICAgIGh0dHBzOi8vYnVncy53
ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMDcwNTAKKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIEJ1aWxkU2xhdmVTdXBwb3J0L2V3cy1idWlsZC9z
dGVwcy5weToKKyAgICAgICAgKFJlUnVuV2ViS2l0VGVzdHMuZXZhbHVhdGVDb21tYW5kKToKKwog
MjAyMC0wMS0zMSAgSm9uYXRoYW4gQmVkYXJkICA8amJlZGFyZEBhcHBsZS5jb20+CiAKICAgICAg
ICAgcmVzdWx0cy53ZWJraXQub3JnOiBIYW5kbGUgbW9kaWZpZWQgZmlyZXdhbGwgcnVsZXMKSW5k
ZXg6IFRvb2xzL0J1aWxkU2xhdmVTdXBwb3J0L2V3cy1idWlsZC9zdGVwcy5weQo9PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
Ci0tLSBUb29scy9CdWls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