Changeset 281660 in webkit
- Timestamp:
- Aug 26, 2021, 3:07:13 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
CISupport/ews-build/steps.py (modified) (4 diffs)
-
ChangeLog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/CISupport/ews-build/steps.py
r281586 r281660 1633 1633 haltOnFailure = False 1634 1634 1635 def __init__(self, retry_build_on_failure=False, **kwargs): 1636 self.retry_build_on_failure = retry_build_on_failure 1637 super(CompileWebKitWithoutPatch, self).__init__(**kwargs) 1638 1635 1639 def doStepIf(self, step): 1636 1640 return self.getProperty('patchFailedToBuild') or self.getProperty('patchFailedTests') … … 1640 1644 1641 1645 def evaluateCommand(self, cmd): 1642 return shell.Compile.evaluateCommand(self, cmd) 1646 rc = shell.Compile.evaluateCommand(self, cmd) 1647 if rc == FAILURE and self.retry_build_on_failure: 1648 message = 'Unable to build WebKit without patch, retrying build' 1649 self.descriptionDone = message 1650 self.send_email_for_unexpected_build_failure() 1651 self.build.buildFinished([message], RETRY) 1652 return rc 1653 1654 def send_email_for_unexpected_build_failure(self): 1655 try: 1656 builder_name = self.getProperty('buildername', '') 1657 worker_name = self.getProperty('workername', '') 1658 build_url = '{}#/builders/{}/builds/{}'.format(self.master.config.buildbotURL, self.build._builderid, self.build.number) 1659 email_subject = '{} might be in bad state, unable to build WebKit'.format(worker_name) 1660 email_text = '{} might be in bad state. It is unable to build WebKit.'.format(worker_name) 1661 email_text += ' Same patch was built successfuly on builder queue previously.\n\nBuild: {}\n\nBuilder: {}'.format(build_url, builder_name) 1662 reference = 'build-failure-{}'.format(worker_name) 1663 send_email_to_bot_watchers(email_subject, email_text, builder_name, reference) 1664 except Exception as e: 1665 print('Error in sending email for unexpected build failure: {}'.format(e)) 1643 1666 1644 1667 … … 2389 2412 UnApplyPatchIfRequired(), 2390 2413 ValidatePatch(verifyBugClosed=False, addURLs=False), 2391 CompileWebKitWithoutPatch( ),2414 CompileWebKitWithoutPatch(retry_build_on_failure=True), 2392 2415 ValidatePatch(verifyBugClosed=False, addURLs=False), 2393 2416 KillOldProcesses(), … … 2857 2880 elif platform == 'gtk': 2858 2881 steps_to_add.append(InstallGtkDependencies()) 2859 steps_to_add.append(CompileWebKitWithoutPatch( ))2882 steps_to_add.append(CompileWebKitWithoutPatch(retry_build_on_failure=True)) 2860 2883 steps_to_add.append(ValidatePatch(verifyBugClosed=False, addURLs=False)) 2861 2884 steps_to_add.append(KillOldProcesses()) -
trunk/Tools/ChangeLog
r281649 r281660 1 2021-08-26 Aakash Jain <aakash_jain@apple.com> 2 3 [EWS] compile-webkit-without-patch failed, but bot ran layout tests anyway and blamed the patch for a pre-existing failure 4 https://bugs.webkit.org/show_bug.cgi?id=229533 5 6 Reviewed by Jonathan Bedard. 7 8 When the compile-webkit-without-patch step fails, instead of running further layout-tests, retry the build and email 9 bot watcher's. The retried build will hopefully be picked up by other bot eventually. This is similar to what we do 10 in case of other infrastructure issues like kill-old-processes step failure. 11 * CISupport/ews-build/steps.py: 12 (CompileWebKitWithoutPatch.__init__): Added retry_build_on_failure parameter. 13 (CompileWebKitWithoutPatch.evaluateCommand): If build failed unexpectedly, retry it and email bot watchers. 14 (CompileWebKitWithoutPatch.send_email_for_unexpected_build_failure): 15 (ReRunWebKitTests.evaluateCommand): 16 (ReRunAPITests.evaluateCommand): 17 1 18 2021-08-26 Simon Fraser <simon.fraser@apple.com> 2 19
Note:
See TracChangeset
for help on using the changeset viewer.