From 3452f8a6e8bc54d0ee68256ecc04b5b1edd699d6 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 22 Jan 2023 20:06:16 +0100 Subject: import templates from autopkgtest-cloud Signed-off-by: Olivier Gayot --- templates/browse-error.html | 5 +++ templates/browse-home.html | 50 +++++++++++++++++++++++++ templates/browse-layout.html | 48 ++++++++++++++++++++++++ templates/browse-package.html | 20 ++++++++++ templates/browse-results.html | 36 ++++++++++++++++++ templates/browse-running.html | 80 ++++++++++++++++++++++++++++++++++++++++ templates/browse-statistics.html | 55 +++++++++++++++++++++++++++ templates/browse-testlist.html | 52 ++++++++++++++++++++++++++ 8 files changed, 346 insertions(+) create mode 100644 templates/browse-error.html create mode 100644 templates/browse-home.html create mode 100644 templates/browse-layout.html create mode 100644 templates/browse-package.html create mode 100644 templates/browse-results.html create mode 100644 templates/browse-running.html create mode 100644 templates/browse-statistics.html create mode 100644 templates/browse-testlist.html (limited to 'templates') diff --git a/templates/browse-error.html b/templates/browse-error.html new file mode 100644 index 0000000..af23654 --- /dev/null +++ b/templates/browse-error.html @@ -0,0 +1,5 @@ +{% extends "browse-layout.html" %} +{% block content %} +

Error:

+

{{error}}

+{% endblock %} diff --git a/templates/browse-home.html b/templates/browse-home.html new file mode 100644 index 0000000..fe51858 --- /dev/null +++ b/templates/browse-home.html @@ -0,0 +1,50 @@ +{% extends "browse-layout.html" %} +{% block content %} +
+
+ +
+
+
Recent test runs
+
+ {% for (res, pkg, rel, arch, trigs) in recent_runs %} + + {{pkg}} on {{rel}}/{{arch}}
+ Triggers: {{trigs}} +
+ {% endfor %} +
+
+
+ +
+
+
Package Index
+
+

You can navigate to {{base_url}}packages/packagename to get + results for a particular package.

+ +
    + + {% for i in indexes %} +
  • {{i}}
  • + {% endfor %} +
+
+
+ + +
+ +
+
+{% endblock %} diff --git a/templates/browse-layout.html b/templates/browse-layout.html new file mode 100644 index 0000000..b47203f --- /dev/null +++ b/templates/browse-layout.html @@ -0,0 +1,48 @@ + + + + + + + Ubuntu Autopkgtest Results {{title_suffix}} + + + + + + +
+ + + + + +
+{% block content %}{% endblock %} +
+ + + + + diff --git a/templates/browse-package.html b/templates/browse-package.html new file mode 100644 index 0000000..3ac81c3 --- /dev/null +++ b/templates/browse-package.html @@ -0,0 +1,20 @@ +{% extends "browse-layout.html" %} +{% block content %} +

{{package}}

+ + + + {% endfor %} + + + {% for a in arches %} + + + {% for r in releases %} + + {% endfor %} + + {% endfor %} +
+ {% for r in releases %}{{r}}
{{a}}{{ results[r][a] }}
+{% endblock %} diff --git a/templates/browse-results.html b/templates/browse-results.html new file mode 100644 index 0000000..7fc194a --- /dev/null +++ b/templates/browse-results.html @@ -0,0 +1,36 @@ +{% extends "browse-layout.html" %} +{% block content %} +

{{package}} [{{release}}/{{arch}}]

+ + + + + + + + + + + + + {% for row in package_results %} + + + + + + + + + + {% endfor %} + +
VersionTriggersDateDurationRequesterResult
{{row[0]}}{{row[1]}}{{row[2]}}{{row[3]}}{{row[4]}}{{row[5]}} + log   + artifacts   + {% if row[7] %} + {% set ts = row[1].split()|map('urlencode')|join("&trigger=")|safe %} + + {% endif %} +
+{% endblock %} diff --git a/templates/browse-running.html b/templates/browse-running.html new file mode 100644 index 0000000..9dc080e --- /dev/null +++ b/templates/browse-running.html @@ -0,0 +1,80 @@ +{% extends "browse-layout.html" %} +{% block content %} +

Currently running tests

+

Click on the package name to jump to the currently running tests of that package.

+ + + {% for column in running|sort|batch(3) %} + + {% for p in column %} + + {% endfor %} + + {% endfor %} +
{{p}}
+ +

Queue lengths

+

Click on the number in a cell to jump to the list of test requests for + that release and architecture which are waiting to be run.

+ + {% for context in ["ubuntu", "huge", "ppa", "upstream"] %} + + + + {% for a in arches %}{% endfor %} + + + {% for r in releases %} + + + {% for a in arches %} + + {% endfor %} + + {% endfor %} +
{{context}}{{a}}
{{r}}{% if queue_lengths[context][r][a] %}{{queue_lengths[context][r][a]}} {% else %}-{% endif %}
+ {% endfor %} + + + {% for p in running|sort %} +

{{p}}

+ {% for runhash, relinfo in running[p].items() %} + {% for release, archinfo in relinfo.items() %} + {% for arch, (params, duration, logtail) in archinfo.items() %} + + + + {% for param, v in params.items() %} + + {% endfor %} + +
Release:{{release}}
Architecture:{{arch}}
{{param|capitalize}}:{{v}}
Running for:{{duration//3600 }}h {{duration % 3600//60}}m {{duration % 60}}s
+
+{{logtail}}
+        
+ {% endfor %} + {% endfor %} + {% endfor %} + {% endfor %} + + + + {% for context in contexts %} + {% for r in queue_info[context] %} + {% for a in queue_info[context][r] %} + {% if queue_info[context][r][a] %} + {% set (nreqs, reqs) = queue_info[context][r][a] %} + {% if nreqs > 0 %} +

Queued tests for {{context}} {{r}} {{a}}

+ + {% for req in reqs %} + + {% endfor %} + {% endif %} +
{{req}}
+ {% endif %} + {% endfor %} + {% endfor %} + {% endfor %} + +{% endblock %} diff --git a/templates/browse-statistics.html b/templates/browse-statistics.html new file mode 100644 index 0000000..fddcaa6 --- /dev/null +++ b/templates/browse-statistics.html @@ -0,0 +1,55 @@ +{% extends "browse-layout.html" %} +{% block content %} +

Statistics

+ + {% for r in release_arches %} + + + + + + {% for arch in release_arches[r]|sort %} {% endfor %} + + + + + {% for arch in release_arches[r]|sort %} + + {% endfor %} + + + + + {% for arch in release_arches[r]|sort %} + + {% endfor %} + + + + + {% for arch in release_arches[r]|sort %} + + {% endfor %} + + + + + + {% for arch in release_arches[r]|sort %} + + {% endfor %} + + + + + {% for arch in release_arches[r]|sort %} + + {% endfor %} + +
architecture{{arch}}
#packages with tests{{data[r][arch]['numpkgs']}}
#packages with passing tests {% if data[r][arch]['numpkgspass'] %}{{data[r][arch]['numpkgspass']}}{% endif %}
pass rate{% if data[r][arch]['numpkgs'] %} + {{'%.1f' % (data[r][arch]['numpkgspass'] * 100 / data[r][arch]['numpkgs'])}}% + {% endif %}
#passed test runs{{data[r][arch]['passruns']}}
#failed test runs{{data[r][arch]['failruns']}}
+ + {% endfor %} + +{% endblock %} diff --git a/templates/browse-testlist.html b/templates/browse-testlist.html new file mode 100644 index 0000000..5744f1c --- /dev/null +++ b/templates/browse-testlist.html @@ -0,0 +1,52 @@ +{% extends "browse-layout.html" %} +{% block content %} +
+
+
+

List of packages with tests

+ +

Click on a source package to get to the current autopkgtest results. + Versions link to the current source package, which can be downloaded with + dget.

+
+
+ +
+
+ + + {% for i, pkglist in indexed_pkgs|dictsort %} + {% set next_id=True %} + {% for (p, v) in pkglist %} + {% if next_id %} + + {% set next_id=False %} + {% else %} + + {% endif %} + + + + {% endfor %} + {% endfor %} +
Source package Version
{{p}}{{v}}
+
+ +
+
+
Package Index
+
+
    + + {% for i in indexed_pkgs|sort %} +
  • {{i}}
  • + {% endfor %} +
+
+
+
+ +
+
+ +{% endblock %} -- cgit v1.2.3