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

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16323>
This commit is contained in:
Guilherme Gallo 2022-06-30 18:05:36 -03:00 committed by Marge Bot
parent fc2ae8d375
commit c9d4076c1e
1 changed files with 7 additions and 2 deletions

View File

@ -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():