Changeset 266799 in webkit


Ignore:
Timestamp:
Sep 9, 2020 2:30:35 PM (4 years ago)
Author:
aakash_jain@apple.com
Message:

ews might mark build as successful if tests fail to run
https://bugs.webkit.org/show_bug.cgi?id=215944

Reviewed by Jonathan Bedard.

  • BuildSlaveSupport/ews-build/steps.py:

(AnalyzeLayoutTestsResults.retry_build):
(AnalyzeLayoutTestsResults.start):

  • BuildSlaveSupport/ews-build/steps_unittest.py:

(TestAnalyzeLayoutTestsResults.test_test_fail_to_runs):

Location:
trunk/Tools
Files:
3 edited

Legend:

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

    r266741 r266799  
    21672167    def retry_build(self, message=''):
    21682168        self.finished(RETRY)
    2169         message = 'Unable to confirm if test failures are introduced by patch, retrying build'
     2169        if not message:
     2170            message = 'Unable to confirm if test failures are introduced by patch, retrying build'
    21702171        self.descriptionDone = message
    21712172        self.build.buildFinished([message], RETRY)
     
    22422243        clean_tree_results_failing_tests = set(self.getProperty('clean_tree_run_failures', []))
    22432244        flaky_failures = first_results_failing_tests.union(second_results_failing_tests) - first_results_failing_tests.intersection(second_results_failing_tests)
     2245
     2246        if (not first_results_failing_tests) and (not second_results_failing_tests):
     2247            # If we've made it here, then layout-tests and re-run-layout-tests failed, which means
     2248            # there should have been some test failures. Otherwise there is some unexpected issue.
     2249            # TODO: email EWS admins
     2250            return self.retry_build('Unexpected infrastructure issue, retrying build')
    22442251
    22452252        if first_results_did_exceed_test_failure_limit and second_results_did_exceed_test_failure_limit:
  • trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py

    r266741 r266799  
    20682068        self.assertEqual(self.getProperty('build_finish_summary'), failure_message)
    20692069        return rc
     2070
     2071    def test_unexpected_infra_issue(self):
     2072        self.configureStep()
     2073        self.setProperty('first_run_failures', [])
     2074        self.setProperty('second_run_failures', [])
     2075        self.expectOutcome(result=RETRY, state_string='Unexpected infrastructure issue, retrying build (retry)')
     2076        return self.runStep()
     2077
    20702078
    20712079class TestCheckOutSpecificRevision(BuildStepMixinAdditions, unittest.TestCase):
  • trunk/Tools/ChangeLog

    r266798 r266799  
     12020-09-09  Aakash Jain  <aakash_jain@apple.com>
     2
     3        ews might mark build as successful if tests fail to run
     4        https://bugs.webkit.org/show_bug.cgi?id=215944
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-build/steps.py:
     9        (AnalyzeLayoutTestsResults.retry_build):
     10        (AnalyzeLayoutTestsResults.start):
     11        * BuildSlaveSupport/ews-build/steps_unittest.py:
     12        (TestAnalyzeLayoutTestsResults.test_test_fail_to_runs):
     13
    1142020-09-09  Brady Eidson  <beidson@apple.com>
    215
Note: See TracChangeset for help on using the changeset viewer.