aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Broslavsky <serge.broslavsky@linaro.org>2020-10-27 23:10:42 +0200
committerSerge Broslavsky <serge.broslavsky@linaro.org>2020-10-27 23:10:42 +0200
commit37337f941f41d1cf4793712ad225e6eb7548db52 (patch)
tree4697c65877f4cd6e5e6f73c2470cbcdbfa6799d9
parent965274ba2ac31cbd08b3ea98bf0964f45cf48842 (diff)
downloadlkft-bucket-37337f941f41d1cf4793712ad225e6eb7548db52.tar.gz
WIP: report generation
-rw-r--r--templates/project-stats.jinja143
1 files changed, 143 insertions, 0 deletions
diff --git a/templates/project-stats.jinja b/templates/project-stats.jinja
new file mode 100644
index 0000000..d45faee
--- /dev/null
+++ b/templates/project-stats.jinja
@@ -0,0 +1,143 @@
+## Kernel
+* kernel: {{ build.metadata.make_kernelversion }}
+* git repo: {{ build.metadata.git_repo }}
+* git branch: {{ build.metadata.git_branch }}
+* git commit: {{ build.metadata.git_commit }}
+* git describe: {{ build.version }}
+* Test details: {{ build_details_url }}
+
+## Compared to previous build: {{ prev_build.version }}
+
+### Summary
+Regressions: {% if compared_to_prev.regressions|length == 0 %}none{% else %}{% len(compared_to_prev.regressions) %}{% endif %}
+Fixes: {% if compared_to_prev.fixes|length == 0 %}none{% else %}{% len(compared_to_prev.fixes) %}{% endif %}
+
+### Regressions
+{% if compared_to_prev.regressions|length == 0 %}
+
+No regressions found.
+{% else %}
+{% for e in compared_to_prev.regressions %}
+
+{{ e }}:
+{% for s in compared_to_prev.regressions[e] %}
+ {{ s }}:
+{% for r in compared_to_prev.regressions[e][s] %}
+ * {{ r }}
+{% endfor %}
+{% endfor %}
+{% endfor %}
+{%endif %}
+
+### Fixes
+{% if compared_to_prev.fixes|length == 0 %}
+
+No fixes found.
+{% else %}
+{% for e in compared_to_prev.fixes %}
+
+{{ e }}:
+{% for s in compared_to_prev.fixes[e] %}
+ {{ s }}:
+{% for f in compared_to_prev.fixes[e][s] %}
+ * {{ f }}
+{% endfor %}
+{% endfor %}
+{% endfor %}
+{% endif %}
+
+## Compared to base build: {{ prev_build.version }}
+
+### Summary
+Regressions: {% if compared_to_base.regressions|length == 0 %}none{% else %}{% len(compared_to_base.regressions) %}{% endif %}
+Fixes: {% if compared_to_base.fixes|length == 0 %}none{% else %}{% len(compared_to_base.fixes) %}{% endif %}
+
+### Regressions
+{% if compared_to_base.regressions|length == 0 %}
+
+No regressions found.
+{% else %}
+{% for e in compared_to_base.regressions %}
+
+{{ e }}:
+{% for s in compared_to_base.regressions[e] %}
+ {{ s }}:
+{% for r in compared_to_base.regressions[e][s] %}
+ * {{ r }}
+{% endfor %}
+{% endfor %}
+{% endfor %}
+{%endif %}
+
+### Fixes
+{% if fixes|length == 0 %}
+
+No fixes found.
+{% else %}
+{% for e in fixes %}
+
+{{ e }}:
+{% for s in fixes[e] %}
+ {{ s }}:
+{% for f in fixes[e][s] %}
+ * {{ f }}
+{% endfor %}
+{% endfor %}
+{% endfor %}
+{% endif %}
+
+
+
+## Summary
+{% for e in environments %}
+{% for s in suites %}
+{% set total = summary[e.slug][s.slug].pass + summary[e.slug][s.slug].fail + summary[e.slug][s.slug].skip + summary[e.slug][s.slug].xfail %}
+{% if total == 0 %}{% continue %}{% endif %}
+### {{ e.slug }}, {{ s.slug }}
+* total: {{ total }}
+* pass: {{ summary[e.slug][s.slug].pass }}
+* fail: {{ summary[e.slug][s.slug].fail }}
+* skip: {{ summary[e.slug][s.slug].skip }}
+* xfail: {{ summary[e.slug][s.slug].xfail }}
+{% endfor %}
+{% endfor %}
+
+## Environments
+{% for e in environments %}
+* {{ e.slug }}
+{% endfor %}
+
+## Suites
+{% for s in suites %}
+* {{ s.slug }}
+{% endfor %}
+
+## Failures
+{% for e in results %}
+{% for s in results[e] %}
+{% if results[e][s]|count == 0%}{% continue %}{% endif %}
+### {{ e }}, {{ s }}
+{% for t in results[e][s] %}
+{% if t.status == 'fail' %}
+* {{ t.short_name }}
+{% endif %}
+{% endfor %}
+{% endfor %}
+{% endfor %}
+
+## Skips
+{% for e in results %}
+{% for s in results[e] %}
+{% if results[e][s]|count == 0%}{% continue %}{% endif %}
+### {{ e }}, {{ s }}
+{% for t in results[e][s] %}
+{% if t.status == 'skip' %}
+* {{ t.short_name }}
+{% endif %}
+{% endfor %}
+{% endfor %}
+{% endfor %}
+
+--
+Linaro LKFT
+https://lkft.linaro.org