[ews-app] Status bubble display pending for currently running build step
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Mar 2019 21:33:47 +0000 (21:33 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Mar 2019 21:33:47 +0000 (21:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195744

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-build/events.py:
(Events.stepStarted): If state_string is pending, replace it with step name.

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

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

index a522b8e..dafd6e4 100644 (file)
@@ -161,6 +161,10 @@ class Events(service.BuildbotService):
         self.sendData(data)
 
     def stepStarted(self, key, step):
+        state_string = step.get('state_string')
+        if state_string == 'pending':
+            state_string = 'Running {}'.format(step.get('name'))
+
         data = {
             "type": self.type_prefix + "step",
             "status": "started",
@@ -168,7 +172,7 @@ class Events(service.BuildbotService):
             "step_id": step.get('stepid'),
             "build_id": step.get('buildid'),
             "result": step.get('results'),
-            "state_string": step.get('state_string'),
+            "state_string": state_string,
             "started_at": step.get('started_at'),
             "complete_at": step.get('complete_at'),
         }
index de71327..4d762bb 100644 (file)
@@ -1,3 +1,13 @@
+2019-03-14  Aakash Jain  <aakash_jain@apple.com>
+
+        [ews-app] Status bubble display pending for currently running build step
+        https://bugs.webkit.org/show_bug.cgi?id=195744
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-build/events.py:
+        (Events.stepStarted): If state_string is pending, replace it with step name.
+
 2019-03-14  Chris Dumez  <cdumez@apple.com>
 
         Add WebsitePolicy for the client to specify the device orientation & motion access policy