Browse Source

Merge "Report the build execute_time via mqtt"

tags/3.6.0
Zuul 2 months ago
parent
commit
6a9d029834
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      tests/unit/test_connection.py
  2. 1
    0
      zuul/driver/mqtt/mqttreporter.py

+ 1
- 0
tests/unit/test_connection.py View File

@@ -492,6 +492,7 @@ class TestMQTTConnection(ZuulTestCase):
492 492
                           'test')
493 493
         self.assertEquals(mqtt_payload['buildset']['builds'][0]['result'],
494 494
                           'SUCCESS')
495
+        self.assertIn('execute_time', mqtt_payload['buildset']['builds'][0])
495 496
         self.assertIn('timestamp', mqtt_payload)
496 497
         self.assertIn('enqueue_time', mqtt_payload)
497 498
 

+ 1
- 0
zuul/driver/mqtt/mqttreporter.py View File

@@ -61,6 +61,7 @@ class MQTTReporter(BaseReporter):
61 61
                     'uuid': build.uuid,
62 62
                     'start_time': build.start_time,
63 63
                     'end_time': build.end_time,
64
+                    'execute_time': build.execute_time,
64 65
                     'log_url': url,
65 66
                     'result': result,
66 67
                 })

Loading…
Cancel
Save