ci/lava: Wrap job info 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:04:49 -03:00 committed by Marge Bot
parent 02cac49721
commit fc2ae8d375
1 changed files with 9 additions and 3 deletions

View File

@ -357,9 +357,15 @@ def find_lava_error(job) -> None:
def show_job_data(job):
show = _call_proxy(job.proxy.scheduler.jobs.show, job.job_id)
for field, value in show.items():
print("{}\t: {}".format(field, value))
with GitlabSection(
"job_data",
"LAVA job info",
type=LogSectionType.LAVA_POST_PROCESSING,
start_collapsed=True,
):
show = _call_proxy(job.proxy.scheduler.jobs.show, job.job_id)
for field, value in show.items():
print("{}\t: {}".format(field, value))
def fetch_logs(job, max_idle_time, log_follower) -> None: