From 705b790aa9319fd3f037865fecf26261a2709ba7 Mon Sep 17 00:00:00 2001 From: Jeny Sadadia Date: Tue, 20 Aug 2024 12:49:47 +0530 Subject: [PATCH] stable-rc: use indentation from `stable-rc.j2` Use the same indentation as boot tests failures for better formatting. Signed-off-by: Jeny Sadadia --- kcidb/templates/stable_rc_build.j2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kcidb/templates/stable_rc_build.j2 b/kcidb/templates/stable_rc_build.j2 index efe2496d..d74b8987 100644 --- a/kcidb/templates/stable_rc_build.j2 +++ b/kcidb/templates/stable_rc_build.j2 @@ -1,5 +1,6 @@ {# Build template macros #} {% import "stable_rc.j2" as stable_rc_macros %} +{% from "stable_rc.j2" import indent %} {% macro build_stats(container) %} {% if container.builds %} @@ -28,15 +29,15 @@ {{- "\n Failures" }} {% for origin, builds in invalid_builds|groupby("origin") %} {% for build in builds %} - {{- [(' -') + build.architecture, + {{- [( indent + '-') + build.architecture, none if build.config_name is none else ('(' + build.config_name + ')')] | reject("none") | join(" ") -}} - {{- "\n Build detail: https://kcidb.kernelci.org/d/build/build?orgId=1&var-id=" + build.id}} + {{- "\n" + indent + "Build detail: https://kcidb.kernelci.org/d/build/build?orgId=1&var-id=" + build.id}} {% if build.log_excerpt %} - {{- " Build error: " + build.log_error }} + {{- indent + "Build error: " + build.log_error }} {% endif %} {% endfor %} - {{- " CI system: " + origin + "\n\n"-}} + {{- indent + "CI system: " + origin + "\n\n"-}} {% endfor %} {% else %} {{- "\n No build failures found" }}