Skip to content

Commit 0a3dee0

Browse files
committed
templates: Change overview for checkout description
1 parent 945b6b2 commit 0a3dee0

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

kcidb/templates/checkout_description.txt.j2

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{% import "test.j2" as test_macros %}
33
{% import "build.j2" as build_macros %}
44
{% import "misc.j2" as misc_macros %}
5+
{% import "overview.j2" as overview_macros %}
56
{# Maximum length of a list of things (builds/tests/etc.) #}
67
{% set max_list_len = 5 %}
78
Below is the summary of testing results Kernel CI database has recorded
@@ -11,13 +12,22 @@ for this checkout so far. See complete and up-to-date report at:
1112

1213
OVERVIEW
1314

15+
{%- set test_emoji_counts = {} %}
16+
{% set _ = test_macros.container_emoji_counts(test_emoji_counts,
17+
checkout) %}
18+
19+
{% set build_emoji_counts = {} %}
20+
{%- set _ = build_macros.container_emoji_counts(build_emoji_counts,
21+
checkout) %}
22+
1423
Checkout: {{ misc_macros.valid_badge(checkout.valid) }}
1524
{% if checkout.builds %}
16-
Builds: {{ misc_macros.valid_badge(checkout.builds_valid) }}
25+
Builds: {{ overview_macros.emoji_counts(build_emoji_counts,
26+
test_emoji_counts) }}
1727
{% endif %}
1828
{% if checkout.tests %}
19-
Tests: {{ test_macros.waived_status_badge(checkout.tests_root.waived,
20-
checkout.tests_root.status) }}
29+
Tests: {{ overview_macros.emoji_counts(test_emoji_counts,
30+
build_emoji_counts) }}
2131
{% endif %}
2232

2333
CHECKOUT

0 commit comments

Comments
 (0)