Changeset 268526 in webkit


Ignore:
Timestamp:
Oct 15, 2020 9:27:48 AM (4 years ago)
Author:
aakash_jain@apple.com
Message:

EWS bot should fail if a new test is missing its result
https://bugs.webkit.org/show_bug.cgi?id=177723

Reviewed by Jonathan Bedard.

  • BuildSlaveSupport/ews-build/steps.py:

(RunWebKitTests.evaluateResult):

  • BuildSlaveSupport/ews-build/steps_unittest.py: Added unit-test.
Location:
trunk/Tools
Files:
3 edited

Legend:

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

    r267862 r268526  
    19961996
    19971997            for line in self.incorrectLayoutLines:
    1998                 if line.find('flakes') >= 0 or line.find('new passes') >= 0 or line.find('missing results') >= 0:
     1998                if line.find('flakes') >= 0 or line.find('new passes') >= 0:
    19991999                    result = WARNINGS
     2000                elif line.find('missing results') >= 0:
     2001                    return FAILURE
    20002002                else:
    20012003                    return FAILURE
  • trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py

    r267737 r268526  
    15921592        '''
    15931593
     1594        self.results_with_missing_results = '''ADD_RESULTS({"tests":{"http":{"wpt":{"css":{"css-highlight-api":{"highlight-image-expected-mismatched.html":{"report":"MISSING","expected":"PASS","is_missing_text":true,"actual":"MISSING"},"highlight-image.html":{"report":"MISSING","expected":"PASS","is_missing_text":true,"actual":"MISSING"}}}}}}, "interrupted":false});
     1595        '''
     1596
    15941597        return self.setUpBuildStep()
    15951598
     
    17381741        self.assertEqual(self.getProperty(self.property_exceed_failure_limit), False)
    17391742        self.assertEqual(self.getProperty(self.property_failures), ['fast/scrolling/ios/reconcile-layer-position-recursive.html'])
     1743        return rc
     1744
     1745    def test_parse_results_json_with_missing_results(self):
     1746        self.configureStep()
     1747        self.setProperty('fullPlatform', 'ios-simulator')
     1748        self.setProperty('configuration', 'release')
     1749        self.expectRemoteCommands(
     1750            ExpectShell(workdir='wkdir',
     1751                        logfiles={'json': self.jsonFileName},
     1752                        logEnviron=False,
     1753                        command=['python', 'Tools/Scripts/run-webkit-tests', '--no-build', '--no-show-results', '--no-new-test-results', '--clobber-old-results', '--release', '--results-directory', 'layout-test-results', '--debug-rwt-logging', '--exit-after-n-failures', '30', '--skip-failing-tests'],
     1754                        )
     1755            + 2
     1756            + ExpectShell.log('json', stdout=self.results_with_missing_results),
     1757        )
     1758        self.expectOutcome(result=FAILURE, state_string='layout-tests (failure)')
     1759        rc = self.runStep()
     1760        self.assertEqual(self.getProperty(self.property_exceed_failure_limit), False)
     1761        self.assertEqual(self.getProperty(self.property_failures),
     1762                         ['http/wpt/css/css-highlight-api/highlight-image-expected-mismatched.html',
     1763                          'http/wpt/css/css-highlight-api/highlight-image.html'])
    17401764        return rc
    17411765
  • trunk/Tools/ChangeLog

    r268518 r268526  
     12020-10-15  Aakash Jain  <aakash_jain@apple.com>
     2
     3        EWS bot should fail if a new test is missing its result
     4        https://bugs.webkit.org/show_bug.cgi?id=177723
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-build/steps.py:
     9        (RunWebKitTests.evaluateResult):
     10        * BuildSlaveSupport/ews-build/steps_unittest.py: Added unit-test.
     11
    1122020-10-15  Lauro Moura  <lmoura@igalia.com>
    213
Note: See TracChangeset for help on using the changeset viewer.