Title: [280079] trunk/Tools
Revision
280079
Author
[email protected]
Date
2021-07-20 05:48:15 -0700 (Tue, 20 Jul 2021)

Log Message

EWS should send email notification when a bot goes out of disk space
https://bugs.webkit.org/show_bug.cgi?id=216489

Reviewed by Ryan Haddad.

* CISupport/ews-build/steps.py:
(CleanUpGitIndexLock.start):
(CleanUpGitIndexLock.send_email_for_git_issue):

Modified Paths

Diff

Modified: trunk/Tools/CISupport/ews-build/steps.py (280078 => 280079)


--- trunk/Tools/CISupport/ews-build/steps.py	2021-07-20 11:26:28 UTC (rev 280078)
+++ trunk/Tools/CISupport/ews-build/steps.py	2021-07-20 12:48:15 UTC (rev 280079)
@@ -141,6 +141,8 @@
         platform = self.getProperty('platform', '*')
         if platform == 'wincairo':
             self.command = ['del', r'.git\index.lock']
+
+        self.send_email_for_git_issue()
         return shell.ShellCommand.start(self)
 
     def evaluateCommand(self, cmd):
@@ -147,7 +149,19 @@
         self.build.buildFinished(['Git issue, retrying build'], RETRY)
         return super(CleanUpGitIndexLock, self).evaluateCommand(cmd)
 
+    def send_email_for_git_issue(self):
+        try:
+            builder_name = self.getProperty('buildername', '')
+            worker_name = self.getProperty('workername', '')
+            build_url = '{}#/builders/{}/builds/{}'.format(self.master.config.buildbotURL, self.build._builderid, self.build.number)
 
+            email_subject = 'Git issue on {}'.format(worker_name)
+            email_text = 'Git issue on {}\n\nBuild: {}\n\nBuilder: {}'.format(worker_name, build_url, builder_name)
+            send_email_to_bot_watchers(email_subject, email_text, builder_name, worker_name)
+        except Exception as e:
+            print('Error in sending email for git issue: {}'.format(e))
+
+
 class CheckOutSpecificRevision(shell.ShellCommand):
     name = 'checkout-specific-revision'
     descriptionDone = ['Checked out required revision']

Modified: trunk/Tools/ChangeLog (280078 => 280079)


--- trunk/Tools/ChangeLog	2021-07-20 11:26:28 UTC (rev 280078)
+++ trunk/Tools/ChangeLog	2021-07-20 12:48:15 UTC (rev 280079)
@@ -1,3 +1,14 @@
+2021-07-20  Aakash Jain  <[email protected]>
+
+        EWS should send email notification when a bot goes out of disk space
+        https://bugs.webkit.org/show_bug.cgi?id=216489
+
+        Reviewed by Ryan Haddad.
+
+        * CISupport/ews-build/steps.py:
+        (CleanUpGitIndexLock.start):
+        (CleanUpGitIndexLock.send_email_for_git_issue):
+
 2021-07-20  Víctor Manuel Jáquez Leal  <[email protected]>
 
         Update myself (vjaquez) as committer in contributors.json
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to