Skip to content

Commit

Permalink
templates: Change overview for revision description
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbazzan committed Feb 1, 2023
1 parent 8e62f1b commit ec731d9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions kcidb/templates/revision_description.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% import "test.j2" as test_macros %}
{% import "build.j2" as build_macros %}
{% import "misc.j2" as misc_macros %}
{% import "overview.j2" as overview_macros %}
{# Maximum length of a list of things (builds/tests/etc.) #}
{% set max_list_len = 5 %}
Below is the summary of results Kernel CI database has recorded
Expand All @@ -11,15 +12,24 @@ for this revision so far. See complete and up-to-date report at:

OVERVIEW

{% set test_emoji_counts = {} %}
{% set _ = test_macros.container_emoji_counts(test_emoji_counts,
revision) -%}

{% set build_emoji_counts = {} %}
{% set _ = build_macros.container_emoji_counts(build_emoji_counts,
revision) -%}

{% if revision.patchset_files %}
Patches: {{ misc_macros.valid_badge(revision.checkouts_valid) }}
{% endif %}
{% if revision.builds %}
Builds: {{ misc_macros.valid_badge(revision.builds_valid) }}
Builds: {{ overview_macros.emoji_overview(build_emoji_counts,
test_emoji_counts) }}
{% endif %}
{% if revision.tests %}
Tests: {{ test_macros.waived_status_badge(revision.tests_root.waived,
revision.tests_root.status) }}
Tests: {{ overview_macros.emoji_overview(test_emoji_counts,
build_emoji_counts) }}
{% endif %}

REVISION
Expand Down

0 comments on commit ec731d9

Please sign in to comment.