Skip to content

Commit

Permalink
stable-rc: use indentation from stable-rc.j2
Browse files Browse the repository at this point in the history
Use the same indentation as boot tests failures
for better formatting.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed Aug 21, 2024
1 parent beadd8a commit 705b790
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kcidb/templates/stable_rc_build.j2
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down Expand Up @@ -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" }}
Expand Down

0 comments on commit 705b790

Please sign in to comment.