diff options
Diffstat (limited to 'templates/browse-running.html')
-rw-r--r-- | templates/browse-running.html | 80 |
1 files changed, 80 insertions, 0 deletions
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 %} + <h1 class="page-header">Currently running tests</h1> + <p>Click on the package name to jump to the currently running tests of that package.</p> + + <table class="table-condensed table-striped"> + {% for column in running|sort|batch(3) %} + <tr> + {% for p in column %} + <td><a href="#pkg-{{p}}">{{p}}</a></td> + {% endfor %} + </tr> + {% endfor %} + </table> + + <h3>Queue lengths</h3> + <p>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.</p> + + {% for context in ["ubuntu", "huge", "ppa", "upstream"] %} + <table class="table-condensed table-striped" style="display: inline-block; padding-right: 30px"> + <tr> + <th>{{context}}</th> + {% for a in arches %}<th>{{a}}</th>{% endfor %} + </tr> + + {% for r in releases %} + <tr> + <td>{{r}}</td> + {% for a in arches %} + <td>{% if queue_lengths[context][r][a] %}<a href="#queue-{{context}}-{{r}}-{{a}}">{{queue_lengths[context][r][a]}} {% else %}-{% endif %}</td> + {% endfor %} + </tr> + {% endfor %} + </table> + {% endfor %} + + <!-- Running tests --> + {% for p in running|sort %} + <h2 id="pkg-{{p}}"><a href="/packages/{{p}}">{{p}}</a></h2> + {% for runhash, relinfo in running[p].items() %} + {% for release, archinfo in relinfo.items() %} + {% for arch, (params, duration, logtail) in archinfo.items() %} + <table class="table-condensed"> + <tr><th>Release:</th><td>{{release}}</td></tr> + <tr><th>Architecture:</th><td>{{arch}}</td></tr> + {% for param, v in params.items() %} + <tr><th>{{param|capitalize}}:</th><td>{{v}}</td></tr> + {% endfor %} + <tr><th>Running for:</th><td>{{duration//3600 }}h {{duration % 3600//60}}m {{duration % 60}}s</td></tr> + </table> + <pre> +{{logtail}} + </pre> + {% endfor %} + {% endfor %} + {% endfor %} + {% endfor %} + + <!-- queue contents --> + + {% 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 %} + <h3 id="queue-{{context}}-{{r}}-{{a}}">Queued tests for {{context}} {{r}} {{a}}</h3> + <table class="table-condensed table-striped"> + {% for req in reqs %} + <tr><td>{{req}}</td></tr> + {% endfor %} + {% endif %} + </table> + {% endif %} + {% endfor %} + {% endfor %} + {% endfor %} + +{% endblock %} |