Bug 51371 - commit-queue can't upload failure diffs from the first flake on a double-flake
Summary: commit-queue can't upload failure diffs from the first flake on a double-flake
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 52048
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-20 19:30 PST by Eric Seidel (no email)
Modified: 2017-07-18 08:29 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2010-12-20 19:30:16 PST
commit-queue can'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't have any results diff to upload.
Comment 1 Eric Seidel (no email) 2010-12-20 21:42:41 PST
We already have a TestResult command in layout_tests/layout_package, so I'd rather not re-invent the wheel. But it doesn't look like it's meant for dealing with a single result from a single test.
Comment 2 Eric Seidel (no email) 2010-12-20 22:25:11 PST
We still need better handling here.  However, double-flake reporting was removed as part of bug 51272.
Comment 3 Eric Seidel (no email) 2011-01-10 13:23:33 PST
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.