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-running.html | 80 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 templates/browse-running.html (limited to 'templates/browse-running.html') 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 %} -- cgit v1.2.3