Mesa (main): ci/lava: Wrap job definition dump into a collapsed section

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 7 00:55:35 UTC 2022


Module: Mesa
Branch: main
Commit: c9d4076c1e24053bfc9efb4ed82f9b0dd218c661
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9d4076c1e24053bfc9efb4ed82f9b0dd218c661

Author: Guilherme Gallo <guilherme.gallo at collabora.com>
Date:   Thu Jun 30 18:05:36 2022 -0300

ci/lava: Wrap job definition dump into a collapsed section

Signed-off-by: Guilherme Gallo <guilherme.gallo at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16323>

---

 .gitlab-ci/lava/lava_job_submitter.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci/lava/lava_job_submitter.py b/.gitlab-ci/lava/lava_job_submitter.py
index 86f1375e6a7..7ee7bce5f92 100755
--- a/.gitlab-ci/lava/lava_job_submitter.py
+++ b/.gitlab-ci/lava/lava_job_submitter.py
@@ -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():



More information about the mesa-commit mailing list