Skip to content

Commit

Permalink
stable-rc: separate build configs with ,
Browse files Browse the repository at this point in the history
In the Boot failures section, use `, ` separator
for different build configs for a build architecture
for better readability.
Also, improve formatting with proper indentation.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed Aug 21, 2024
1 parent 35d934f commit beadd8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions kcidb/templates/stable_rc.j2
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
{# stable-rc macros #}
{% set selected_origins = ['maestro', 'broonie'] %}
{% set indent = " " %}
11 changes: 6 additions & 5 deletions kcidb/templates/stable_rc_test.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{# Test macros #}
{% import "stable_rc.j2" as stable_rc_macros %}
{% from "stable_rc.j2" import indent %}

{% macro tests_stats(container) %}
{% if container.tests %}
Expand All @@ -23,13 +24,13 @@
selectattr('build.architecture', 'ne', None) | list %}
{% if boot_tests_info %}
{% for architecture, tests in boot_tests_info|groupby("build.architecture") %}
{{- "\n " + architecture }}:({{ tests|map(attribute="build.config_name") | unique | reject("none") | join("") }})
{{- "\n -" + tests|map(attribute="environment_misc.platform") | unique | join("\n -") }}
{{- "\n CI system: " + origin}}
{{- "\n" + indent + architecture }}:({{ tests|map(attribute="build.config_name") | unique | reject("none") | join(",\n" + indent + ' ' * (architecture + ":(") | length ) }})
{{- "\n" + indent + "-" + tests|map(attribute="environment_misc.platform") | unique | join("\n -") }}
{{- "\n" + indent + "CI system: " + origin}}
{% endfor %}
{% else %}
{{- "\n Missing failure information. Sorry, we are working on improving report for this situation." }}
{{- "\n CI system: " + origin}}
{{- "\n" + indent + "Missing failure information. Sorry, we are working on improving report for this situation." }}
{{- "\n" + indent + "CI system: " + origin}}
{% endif %}
{% endfor %}
{% else %}
Expand Down

0 comments on commit beadd8a

Please sign in to comment.