Changeset 246823 in webkit


Ignore:
Timestamp:
Jun 25, 2019 6:01:01 PM (5 years ago)
Author:
aakash_jain@apple.com
Message:

[ews-build] Retry Layout test in case of failures
https://bugs.webkit.org/show_bug.cgi?id=199194

Reviewed by Jonathan Bedard.

  • BuildSlaveSupport/ews-build/steps.py:

(RunWebKitTests.evaluateCommand): Check if tests failed and retry them if required.
(ReRunWebKitTests): Build step to re-run layout tests.
(ReRunWebKitTests.evaluateCommand): Check if tests failed and retry on clean build if required.
(RunWebKitTestsWithoutPatch): Build step to run tests without patch.
(RunWebKitTestsWithoutPatch.evaluateCommand):

Location:
trunk/Tools
Files:
2 edited

Legend:

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

    r246822 r246823  
    798798            self.build.buildFinished([message], SUCCESS)
    799799        else:
    800             self.build.addStepsAfterCurrentStep([ArchiveTestResults(), UploadTestResults(), ExtractTestResults()])
     800            self.build.addStepsAfterCurrentStep([ArchiveTestResults(), UploadTestResults(), ExtractTestResults(), ReRunWebKitTests()])
    801801        return rc
     802
     803
     804class ReRunWebKitTests(RunWebKitTests):
     805    name = 're-run-layout-tests'
     806
     807    def evaluateCommand(self, cmd):
     808        rc = shell.Test.evaluateCommand(self, cmd)
     809        if rc == SUCCESS:
     810            message = 'Passed layout tests'
     811            self.descriptionDone = message
     812            self.build.results = SUCCESS
     813            self.build.buildFinished([message], SUCCESS)
     814        else:
     815            self.setProperty('patchFailedTests', True)
     816            self.build.addStepsAfterCurrentStep([ArchiveTestResults(), UploadTestResults(identifier='rerun'), ExtractTestResults(identifier='rerun'), UnApplyPatchIfRequired(), CompileWebKitToT(), RunWebKitTestsWithoutPatch()])
     817        return rc
     818
     819
     820class RunWebKitTestsWithoutPatch(RunWebKitTests):
     821    name = 'run-layout-tests-without-patch'
     822
     823    def evaluateCommand(self, cmd):
     824        rc = shell.Test.evaluateCommand(self, cmd)
     825        self.build.addStepsAfterCurrentStep([ArchiveTestResults(), UploadTestResults(identifier='clean-tree'), ExtractTestResults(identifier='clean-tree')])
     826        return rc
     827
    802828
    803829class RunWebKit1Tests(RunWebKitTests):
  • trunk/Tools/ChangeLog

    r246822 r246823  
     12019-06-25  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews-build] Retry Layout test in case of failures
     4        https://bugs.webkit.org/show_bug.cgi?id=199194
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-build/steps.py:
     9        (RunWebKitTests.evaluateCommand): Check if tests failed and retry them if required.
     10        (ReRunWebKitTests): Build step to re-run layout tests.
     11        (ReRunWebKitTests.evaluateCommand): Check if tests failed and retry on clean build if required.
     12        (RunWebKitTestsWithoutPatch): Build step to run tests without patch.
     13        (RunWebKitTestsWithoutPatch.evaluateCommand):
     14
    1152019-06-25  Aakash Jain  <aakash_jain@apple.com>
    216
Note: See TracChangeset for help on using the changeset viewer.