Changeset 267493 in webkit
- Timestamp:
- Sep 23, 2020, 12:17:20 PM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
BuildSlaveSupport/ews-build/steps.py (modified) (6 diffs)
-
ChangeLog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/ews-build/steps.py
r267492 r267493 2042 2042 class ReRunWebKitTests(RunWebKitTests): 2043 2043 name = 're-run-layout-tests' 2044 NUM_FAILURES_TO_DISPLAY = 10 2044 2045 2045 2046 def evaluateCommand(self, cmd): … … 2051 2052 tests_that_consistently_failed = first_results_failing_tests.intersection(second_results_failing_tests) 2052 2053 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] 2053 2055 flaky_failures_string = ', '.join(flaky_failures) 2054 2056 … … 2165 2167 if len(clean_tree_failures) > self.NUM_FAILURES_TO_DISPLAY: 2166 2168 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]: 2168 2170 self.send_email_for_pre_existing_failure(clean_tree_failure) 2169 2171 … … 2174 2176 if len(flaky_failures) > self.NUM_FAILURES_TO_DISPLAY: 2175 2177 message += ' ...' 2176 for flaky_failure in flaky_failures:2178 for flaky_failure in list(flaky_failures)[:self.NUM_FAILURES_TO_DISPLAY]: 2177 2179 self.send_email_for_flaky_failure(flaky_failure) 2178 2180 … … 2590 2592 failures_with_patch = first_run_failures.intersection(second_run_failures) 2591 2593 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] 2592 2595 flaky_failures_string = ', '.join(flaky_failures) 2593 2596 new_failures = failures_with_patch - clean_tree_failures … … 2619 2622 if clean_tree_failures: 2620 2623 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: 2622 2625 self.send_email_for_pre_existing_failure(clean_tree_failure) 2623 2626 if len(clean_tree_failures) > self.NUM_API_FAILURES_TO_DISPLAY: -
trunk/Tools/ChangeLog
r267492 r267493 1 2020-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 1 14 2020-09-23 Aakash Jain <aakash_jain@apple.com> 2 15
Note:
See TracChangeset
for help on using the changeset viewer.