]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
sueprvisor: Do not instrument certain job times 1826/head
authorZack Cerza <zack@redhat.com>
Thu, 23 Mar 2023 18:22:15 +0000 (12:22 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 23 Mar 2023 18:22:15 +0000 (12:22 -0600)
This should only really include first/last-in-suite jobs.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/dispatcher/supervisor.py

index 595193c85e86d70a139ceecc78ed969345d02229..874f0ce75564938137511cb8f71d2772c35ce929 100644 (file)
@@ -60,7 +60,16 @@ def main(args):
             yaml.safe_dump(job_config, f, default_flow_style=False)
 
     try:
-        with exporter.JobTime.labels(job_config["suite"]).time():
+        suite = job_config.get("suite")
+        if suite:
+            with exporter.JobTime.labels(suite).time():
+                return run_job(
+                    job_config,
+                    teuth_bin_path,
+                    archive_dir,
+                    verbose
+                )
+        else:
             return run_job(
                 job_config,
                 teuth_bin_path,