⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267493 in webkit


Ignore:
Timestamp:
Sep 23, 2020, 12:17:20 PM (6 years ago)
Author:
aakash_jain@apple.com
Message:

Limit number of emails to send for flaky and pre-existing API and layout test failures
https://bugs.webkit.org/show_bug.cgi?id=216876

Reviewed by Jonathan Bedard.

  • BuildSlaveSupport/ews-build/steps.py:

(ReRunWebKitTests): Simply limit the flaky failures immediately after they are calculated, since we don't display
the count of flaky failures. Flaky failures are displayed only to help bot-watchers in noticing flaky tests.
(AnalyzeLayoutTestsResults.report_pre_existing_failures): Limit pre-existing and flaky test failures just before sending emails.
(AnalyzeAPITestsResults.analyzeResults):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/ews-build/steps.py

    r267492 r267493  
    20422042class ReRunWebKitTests(RunWebKitTests):
    20432043    name = 're-run-layout-tests'
     2044    NUM_FAILURES_TO_DISPLAY = 10
    20442045
    20452046    def evaluateCommand(self, cmd):
     
    20512052        tests_that_consistently_failed = first_results_failing_tests.intersection(second_results_failing_tests)
    20522053        flaky_failures = first_results_failing_tests.union(second_results_failing_tests) - first_results_failing_tests.intersection(second_results_failing_tests)
     2054        flaky_failures = list(flaky_failures)[:self.NUM_FAILURES_TO_DISPLAY]
    20532055        flaky_failures_string = ', '.join(flaky_failures)
    20542056
     
    21652167            if len(clean_tree_failures) > self.NUM_FAILURES_TO_DISPLAY:
    21662168                message += ' ...'
    2167             for clean_tree_failure in clean_tree_failures:
     2169            for clean_tree_failure in list(clean_tree_failures)[:self.NUM_FAILURES_TO_DISPLAY]:
    21682170                self.send_email_for_pre_existing_failure(clean_tree_failure)
    21692171
     
    21742176            if len(flaky_failures) > self.NUM_FAILURES_TO_DISPLAY:
    21752177                message += ' ...'
    2176             for flaky_failure in flaky_failures:
     2178            for flaky_failure in list(flaky_failures)[:self.NUM_FAILURES_TO_DISPLAY]:
    21772179                self.send_email_for_flaky_failure(flaky_failure)
    21782180
     
    25902592        failures_with_patch = first_run_failures.intersection(second_run_failures)
    25912593        flaky_failures = first_run_failures.union(second_run_failures) - first_run_failures.intersection(second_run_failures)
     2594        flaky_failures = list(flaky_failures)[:self.NUM_API_FAILURES_TO_DISPLAY]
    25922595        flaky_failures_string = ', '.join(flaky_failures)
    25932596        new_failures = failures_with_patch - clean_tree_failures
     
    26192622            if clean_tree_failures:
    26202623                message = 'Found {} pre-existing API test failure{}: {}'.format(len(clean_tree_failures), pluralSuffix, clean_tree_failures_string)
    2621                 for clean_tree_failure in clean_tree_failures:
     2624                for clean_tree_failure in clean_tree_failures_to_display:
    26222625                    self.send_email_for_pre_existing_failure(clean_tree_failure)
    26232626            if len(clean_tree_failures) > self.NUM_API_FAILURES_TO_DISPLAY:
  • trunk/Tools/ChangeLog

    r267492 r267493  
     12020-09-23  Aakash Jain  <aakash_jain@apple.com>
     2
     3        Limit number of emails to send for flaky and pre-existing API and layout test failures
     4        https://bugs.webkit.org/show_bug.cgi?id=216876
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-build/steps.py:
     9        (ReRunWebKitTests): Simply limit the flaky failures immediately after they are calculated, since we don't display
     10        the count of flaky failures. Flaky failures are displayed only to help bot-watchers in noticing flaky tests.
     11        (AnalyzeLayoutTestsResults.report_pre_existing_failures): Limit pre-existing and flaky test failures just before sending emails.
     12        (AnalyzeAPITestsResults.analyzeResults):
     13
    1142020-09-23  Aakash Jain  <aakash_jain@apple.com>
    215
Note: See TracChangeset for help on using the changeset viewer.