[ews-build] Add clickable url in UI for uploaded S3 archive
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 May 2019 23:45:38 +0000 (23:45 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 May 2019 23:45:38 +0000 (23:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=197996

Reviewed by Jonathan Bedard.

* BuildSlaveSupport/ews-build/steps.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245489 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-build/steps.py
Tools/ChangeLog

index e3d2b7a..2d6b634 100644 (file)
@@ -790,7 +790,18 @@ class TransferToS3(master.MasterShellCommand):
         kwargs['command'] = self.command
         master.MasterShellCommand.__init__(self, logEnviron=False, **kwargs)
 
+    def start(self):
+        self.log_observer = logobserver.BufferLogObserver(wantStderr=True)
+        self.addLogObserver('stdio', self.log_observer)
+        return super(TransferToS3, self).start()
+
     def finished(self, results):
+        log_text = self.log_observer.getStdout() + self.log_observer.getStderr()
+        match = re.search(r'S3 URL: (?P<url>[^\s]+)', log_text)
+        # Sample log: S3 URL: https://s3-us-west-2.amazonaws.com/ews-archives.webkit.org/ios-simulator-12-x86_64-release/123456.zip
+        if match:
+            self.addURL('uploaded archive', match.group('url'))
+
         if results == SUCCESS:
             triggers = self.getProperty('triggers', None)
             if triggers:
index f0fcfde..7c6ea1c 100644 (file)
@@ -1,5 +1,14 @@
 2019-05-17  Aakash Jain  <aakash_jain@apple.com>
 
+        [ews-build] Add clickable url in UI for uploaded S3 archive
+        https://bugs.webkit.org/show_bug.cgi?id=197996
+
+        Reviewed by Jonathan Bedard.
+
+        * BuildSlaveSupport/ews-build/steps.py:
+
+2019-05-17  Aakash Jain  <aakash_jain@apple.com>
+
         [ews-app] Status bubble should not turn orange when any build step has warnings
         https://bugs.webkit.org/show_bug.cgi?id=198000