Title: [252324] trunk/Tools
Revision
252324
Author
[email protected]
Date
2019-11-11 08:23:25 -0800 (Mon, 11 Nov 2019)

Log Message

EWS should retry build in case of kill-old-processes failure
https://bugs.webkit.org/show_bug.cgi?id=203858

Reviewed by Jonathan Bedard.

* BuildSlaveSupport/ews-build/steps.py:
(KillOldProcesses.evaluateCommand): Retry the build in case of failure.
(KillOldProcesses.getResultSummary): Update the build-step summary string.
* BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests.

Modified Paths

Diff

Modified: trunk/Tools/BuildSlaveSupport/ews-build/steps.py (252323 => 252324)


--- trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2019-11-11 15:16:16 UTC (rev 252323)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2019-11-11 16:23:25 UTC (rev 252324)
@@ -995,7 +995,17 @@
     def __init__(self, **kwargs):
         super(KillOldProcesses, self).__init__(timeout=60, logEnviron=False, **kwargs)
 
+    def evaluateCommand(self, cmd):
+        if cmd.didFail():
+            self.build.buildFinished(['Failed to kill old processes, retrying build'], RETRY)
+        return shell.Compile.evaluateCommand(self, cmd)
 
+    def getResultSummary(self):
+        if self.results == FAILURE:
+            return {u'step': u'Failed to kill old processes'}
+        return shell.Compile.getResultSummary(self)
+
+
 class RunWebKitTests(shell.Test):
     name = 'layout-tests'
     description = ['layout-tests running']

Modified: trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py (252323 => 252324)


--- trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2019-11-11 15:16:16 UTC (rev 252323)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2019-11-11 16:23:25 UTC (rev 252324)
@@ -591,7 +591,7 @@
             + ExpectShell.log('stdio', stdout='Unexpected error.')
             + 2,
         )
-        self.expectOutcome(result=FAILURE, state_string='Killed old processes (failure)')
+        self.expectOutcome(result=FAILURE, state_string='Failed to kill old processes')
         return self.runStep()
 
 

Modified: trunk/Tools/ChangeLog (252323 => 252324)


--- trunk/Tools/ChangeLog	2019-11-11 15:16:16 UTC (rev 252323)
+++ trunk/Tools/ChangeLog	2019-11-11 16:23:25 UTC (rev 252324)
@@ -1,3 +1,15 @@
+2019-11-11  Aakash Jain  <[email protected]>
+
+        EWS should retry build in case of kill-old-processes failure
+        https://bugs.webkit.org/show_bug.cgi?id=203858
+
+        Reviewed by Jonathan Bedard.
+
+        * BuildSlaveSupport/ews-build/steps.py:
+        (KillOldProcesses.evaluateCommand): Retry the build in case of failure.
+        (KillOldProcesses.getResultSummary): Update the build-step summary string.
+        * BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests.
+
 2019-11-09  Dean Jackson  <[email protected]>
 
         Clicky Orbing support.apple.com categories shows a PNG instead of the web page preview, tapping loads image asset only instead of web page
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to