<?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>51371</bug_id>
          
          <creation_ts>2010-12-20 19:30:16 -0800</creation_ts>
          <short_desc>commit-queue can&apos;t upload failure diffs from the first flake on a double-flake</short_desc>
          <delta_ts>2017-07-18 08:29:45 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>52048</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>koz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>324721</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-20 19:30:16 -0800</bug_when>
    <thetext>commit-queue can&apos;t upload failure diffs from the first flake on a double-flake

def _test_patch(self):
    if self._patch.is_rollout():
        return True
    if self._test():
        return True

    first_failing_tests = self._failing_tests_from_last_run()
    if self._test():
        self._report_flaky_tests(first_failing_tests)
        return True

    second_failing_tests = self._failing_tests_from_last_run()
    if first_failing_tests != second_failing_tests:
        self._report_flaky_tests(first_failing_tests + second_failing_tests)
        return False

    if self._build_and_test_without_patch():
        raise self._script_error  # The error from the previous ._test() run is real, report it.
    return False  # Tree must be red, just retry later.


Currently _failing_tests_from_last_run() only returns the test names (paths) for the failures.  It does not bottle up the results information.  So when we run the tests a second time, old-run-webkit-tests will delete the results from the first run.  Then when we go to try and report the test as flaky, we don&apos;t have any results diff to upload.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324779</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-20 21:42:41 -0800</bug_when>
    <thetext>We already have a TestResult command in layout_tests/layout_package, so I&apos;d rather not re-invent the wheel. But it doesn&apos;t look like it&apos;s meant for dealing with a single result from a single test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324791</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-20 22:25:11 -0800</bug_when>
    <thetext>We still need better handling here.  However, double-flake reporting was removed as part of bug 51272.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331884</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-01-10 13:23:33 -0800</bug_when>
    <thetext>Actually in fixing bug 52048 I realized that double-flakes were the *only* times we were able to upload failure diffs. :)  However, once bug 52048 lands, we could (carefully) re-enable double-flake reporting and uploads would work.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>