summaryrefslogtreecommitdiff
path: root/tests/unit/test_scheduler.py
diff options
context:
space:
mode:
authorJames E. Blair <jim@acmegating.com>2022-02-28 11:06:58 -0800
committerJames E. Blair <jim@acmegating.com>2022-02-28 11:10:09 -0800
commitc5f60e90046eebc3c943bbebea760ba358a5abd7 (patch)
tree0bce07df40e52ecfdc44eb63cd7586f71fd8f4f9 /tests/unit/test_scheduler.py
parent88b076e8e37fbce5507d597a5c5f6a852bb98015 (diff)
downloadzuul-c5f60e90046eebc3c943bbebea760ba358a5abd7.tar.gz
Add even more pipeline processing stats
This adds some timers that can help operators identify the frequency and time spent processing individual pipelines. Change-Id: I927e30268b3c3c08b720174a961259f9670f8c4b
Diffstat (limited to 'tests/unit/test_scheduler.py')
-rw-r--r--tests/unit/test_scheduler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/test_scheduler.py b/tests/unit/test_scheduler.py
index 88916171d..4336261b9 100644
--- a/tests/unit/test_scheduler.py
+++ b/tests/unit/test_scheduler.py
@@ -452,6 +452,10 @@ class TestScheduler(ZuulTestCase):
'zuul.tenant.tenant-one.pipeline.gate.resident_time',
'zuul.tenant.tenant-one.pipeline.gate.read_time',
'zuul.tenant.tenant-one.pipeline.gate.write_time',
+ 'zuul.tenant.tenant-one.pipeline.gate.process',
+ 'zuul.tenant.tenant-one.pipeline.gate.event_process',
+ 'zuul.tenant.tenant-one.pipeline.gate.handling',
+ 'zuul.tenant.tenant-one.pipeline.gate.refresh',
]:
val = self.assertReportedStat(key, kind='ms')
self.assertTrue(0.0 < float(val) < 60000.0)