Skip to content

Commit b3c37e7

Browse files
committed
templates: Change overview for revision description
1 parent 0a3dee0 commit b3c37e7

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

kcidb/templates/revision_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 results Kernel CI database has recorded
@@ -11,15 +12,24 @@ for this revision 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+
revision) -%}
18+
19+
{% set build_emoji_counts = {} %}
20+
{% set _ = build_macros.container_emoji_counts(build_emoji_counts,
21+
revision) -%}
22+
1423
{% if revision.patchset_files %}
1524
Patches: {{ misc_macros.valid_badge(revision.checkouts_valid) }}
1625
{% endif %}
1726
{% if revision.builds %}
18-
Builds: {{ misc_macros.valid_badge(revision.builds_valid) }}
27+
Builds: {{ overview_macros.emoji_counts(build_emoji_counts,
28+
test_emoji_counts) }}
1929
{% endif %}
2030
{% if revision.tests %}
21-
Tests: {{ test_macros.waived_status_badge(revision.tests_root.waived,
22-
revision.tests_root.status) }}
31+
Tests: {{ overview_macros.emoji_counts(test_emoji_counts,
32+
build_emoji_counts) }}
2333
{% endif %}
2434

2535
REVISION

0 commit comments

Comments
 (0)