Changeset 251849 in webkit


Ignore:
Timestamp:
Oct 31, 2019 8:42:49 AM (4 years ago)
Author:
aakash_jain@apple.com
Message:

[EWS] Limit API tests failures to display in the status-bubble tooltip and buildbot summary
https://bugs.webkit.org/show_bug.cgi?id=203678

Reviewed by Jonathan Bedard.

  • BuildSlaveSupport/ews-build/steps.py:

(AnalyzeAPITestsResults): Define NUM_API_FAILURES_TO_DISPLAY as 10.
(AnalyzeAPITestsResults.analyzeResults): Truncate the failure string to contain 10 test failures.

Location:
trunk/Tools
Files:
2 edited

Legend:

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

    r251653 r251849  
    14521452    description = ['analyze-api-test-results']
    14531453    descriptionDone = ['analyze-api-tests-results']
     1454    NUM_API_FAILURES_TO_DISPLAY = 10
    14541455
    14551456    def start(self):
     
    14931494        flaky_failures_string = ', '.join([failure_name.replace('TestWebKitAPI.', '') for failure_name in flaky_failures])
    14941495        new_failures = failures_with_patch - clean_tree_failures
    1495         new_failures_string = ', '.join([failure_name.replace('TestWebKitAPI.', '') for failure_name in new_failures])
     1496        new_failures_to_display = list(new_failures)[:self.NUM_API_FAILURES_TO_DISPLAY]
     1497        new_failures_string = ', '.join([failure_name.replace('TestWebKitAPI.', '') for failure_name in new_failures_to_display])
    14961498
    14971499        self._addToLog('stderr', '\nFailures in API Test first run: {}'.format(first_run_failures))
     
    15061508            pluralSuffix = 's' if len(new_failures) > 1 else ''
    15071509            message = 'Found {} new API test failure{}: {}'.format(len(new_failures), pluralSuffix, new_failures_string)
     1510            if len(new_failures) > self.NUM_API_FAILURES_TO_DISPLAY:
     1511                message += ' ...'
    15081512            self.descriptionDone = message
    15091513            self.build.buildFinished([message], FAILURE)
  • trunk/Tools/ChangeLog

    r251834 r251849  
     12019-10-31  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [EWS] Limit API tests failures to display in the status-bubble tooltip and buildbot summary
     4        https://bugs.webkit.org/show_bug.cgi?id=203678
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-build/steps.py:
     9        (AnalyzeAPITestsResults): Define NUM_API_FAILURES_TO_DISPLAY as 10.
     10        (AnalyzeAPITestsResults.analyzeResults): Truncate the failure string to contain 10 test failures.
     11
    1122019-10-30  Peng Liu  <peng.liu6@apple.com>
    213
Note: See TracChangeset for help on using the changeset viewer.