ci/lava: Wrap job definition dump into a collapsed section
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Thu, 30 Jun 2022 21:05:36 +0000 (18:05 -0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 7 Jul 2022 00:28:53 +0000 (00:28 +0000)
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16323>

.gitlab-ci/lava/lava_job_submitter.py

index 86f1375..7ee7bce 100755 (executable)
@@ -479,8 +479,13 @@ def main(args):
     job_definition = generate_lava_yaml(args)
 
     if args.dump_yaml:
-        print("LAVA job definition (YAML):")
-        print(hide_sensitive_data(job_definition))
+        with GitlabSection(
+            "yaml_dump",
+            "LAVA job definition (YAML)",
+            type=LogSectionType.LAVA_BOOT,
+            start_collapsed=True,
+        ):
+            print(hide_sensitive_data(job_definition))
     job = LAVAJob(proxy, job_definition)
 
     if errors := job.validate():