diff options
author | Dong Zhang <dong.zhang@bmw.de> | 2022-01-03 10:46:36 +0800 |
---|---|---|
committer | James E. Blair <jim@acmegating.com> | 2022-01-27 10:38:29 -0800 |
commit | 8a01c61991544b88a8352d318c106c7baaa2ca30 (patch) | |
tree | a3546bcbe7a753be7041113f6dfbd314bc0d7a06 /tests/unit/test_connection.py | |
parent | 02efa8fb28af77c63990722f9b21241132a7de60 (diff) | |
download | zuul-8a01c61991544b88a8352d318c106c7baaa2ca30.tar.gz |
Display overall duration in buidset page in zuul web
The overall duration is from a user (developer) point of view, how much
time it takes from the trigger of the build (e.g. a push, a comment,
etc.), till the last build is finished.
It takes into account also the time spent in waiting in queue, launching
nodes, preparing the nodes, etc.
Technically it measures between the event timestamp and the end time of
the last build in the build set.
This duration reflects the user experience of how much time the user needs
to wait.
Change-Id: I253d023146c696d0372197e599e0df3c217ef344
Diffstat (limited to 'tests/unit/test_connection.py')
-rw-r--r-- | tests/unit/test_connection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test_connection.py b/tests/unit/test_connection.py index d357d3cd2..dcf6fe2f7 100644 --- a/tests/unit/test_connection.py +++ b/tests/unit/test_connection.py @@ -73,7 +73,7 @@ class TestSQLConnectionMysql(ZuulTestCase): buildset_table = table_prefix + 'zuul_buildset' build_table = table_prefix + 'zuul_build' - self.assertEqual(16, len(insp.get_columns(buildset_table))) + self.assertEqual(17, len(insp.get_columns(buildset_table))) self.assertEqual(13, len(insp.get_columns(build_table))) def test_sql_tables_created(self): @@ -146,6 +146,7 @@ class TestSQLConnectionMysql(ZuulTestCase): 'https://review.example.com/%d' % buildset0['change'], buildset0['ref_url']) self.assertNotEqual(None, buildset0['event_id']) + self.assertNotEqual(None, buildset0['event_timestamp']) buildset0_builds = conn.execute( sa.sql.select([reporter.connection.zuul_build_table]).where( |