2013-02-20 15:54:33 +01:00
[% WRAPPER layout.tt title="Machine status" %]
2010-04-27 13:29:08 +00:00
[% PROCESS common.tt %]
2015-09-09 16:51:20 +02:00
[% USE format %]
2010-04-27 13:29:08 +00:00
2012-04-12 21:42:21 +02:00
<table class="table table-condensed table-striped">
2014-09-25 20:24:55 +02:00
<thead>
<tr>
<th>Job</th>
<th>Build</th>
<th>Step</th>
<th>What</th>
2024-04-11 17:12:47 +02:00
<th>Status</th>
2014-09-25 20:24:55 +02:00
<th>Since</th>
</tr>
</thead>
2013-02-20 16:47:57 +01:00
[% FOREACH m IN machines %]
2015-06-17 13:49:18 +02:00
[% name = m.key ? stripSSHUser(m.key) : "localhost" %]
2010-10-13 12:32:57 +00:00
<thead>
2013-02-20 16:47:57 +01:00
<tr>
2025-04-13 08:29:01 +02:00
<th colspan="7">
2016-03-16 15:23:56 +01:00
<tt [% IF m.value.disabled %]style="text-decoration: line-through;"[% END %]>[% INCLUDE renderMachineName machine=m.key %]</tt>
2025-07-31 16:26:06 +02:00
[% IF m.value.primarySystemType %]
2015-09-09 16:51:20 +02:00
<span class="muted" style="font-weight: normal;">
2025-07-31 16:26:06 +02:00
(<tt>[% m.value.primarySystemType %]</tt>)
2015-09-09 16:51:20 +02:00
</span>
2025-07-31 16:26:06 +02:00
[% WRAPPER makePopover title="Details" classes="btn-secondary btn-sm" %]
2025-08-01 11:25:14 +02:00
<ul class="list-unstyled mb-0">
2025-07-31 16:26:06 +02:00
<li><b>System types: </b>[% comma=0; FOREACH system IN m.value.systemTypes %][% IF comma; %], [% ELSE; comma = 1; END %]<tt>[% system %]</tt>[% END %]</li>
<li><b>Supported Features: </b>[% comma=0; FOREACH feat IN m.value.supportedFeatures %][% IF comma; %], [% ELSE; comma = 1; END %]<tt>[% feat %]</tt>[% END %]</li>
<li><b>Mandatory Features: </b>[% comma=0; FOREACH feat IN m.value.mandatoryFeatures %][% IF comma; %], [% ELSE; comma = 1; END %]<tt>[% feat %]</tt>[% END %]</li>
<li><b>Capacity: </b>[% INCLUDE renderYesNo value=m.value.hasCapacity %] <b>Static: </b>[% INCLUDE renderYesNo value=m.value.hasStaticCapacity %] <b>Dynamic: </b>[% INCLUDE renderYesNo value=m.value.hasDynamicCapacity %]</li>
2025-08-01 11:25:14 +02:00
<li><b>Scheduling Score: </b>[% m.value.score %]</li>
<li><b>Load: </b><tt>[% pretty_load(m.value.stats.load1) %]</tt> <tt>[% pretty_load(m.value.stats.load5) %]</tt> <tt>[% pretty_load(m.value.stats.load15) %]</tt></li>
<li><b>Memory: </b><tt>[% human_bytes(m.value.stats.memUsage) %]</tt> of <tt>[% human_bytes(m.value.memTotal) %]</tt> used (<tt>[% human_bytes(m.value.memTotal - m.value.stats.memUsage) %]</tt> free)</li>
2025-07-31 16:26:06 +02:00
[% pressure = m.value.stats.pressure %]
2025-08-01 11:25:14 +02:00
[% MACRO render_pressure(title, pressure) BLOCK %]
[% IF pressure %]
<tr><td><b>[% title %]:</b></td><td><tt>[% pretty_percent(pressure.avg10) %]%</tt></td><td><td><tt>[% pretty_percent(pressure.avg60) %]%</tt></td><td><td><tt>[% pretty_percent(pressure.avg300) %]%</tt></td><td>
[% END %]
[% END %]
2025-07-31 16:26:06 +02:00
[% IF pressure %]
<li><b>Pressure: </b>
<table class="pressureTable">
2025-08-01 11:25:14 +02:00
[% render_pressure('Some CPU', pressure.cpuSome) %]
[% render_pressure('Some IO', pressure.ioSome) %]
[% render_pressure('Full IO', pressure.ioFull) %]
[% render_pressure('Full IRQ', pressure.irqFull) %]
[% render_pressure('Some Memory', pressure.memSome) %]
[% render_pressure('Full Memory', pressure.memFull) %]
2025-07-31 16:26:06 +02:00
</table>
</li>
[% END %]
</ul>
[% END %]
[% ELSE %]
[% IF m.value.systemTypes %]
<span class="muted" style="font-weight: normal;">
([% comma=0; FOREACH system IN m.value.systemTypes %][% IF comma; %], [% ELSE; comma = 1; END %]<tt>[% system %]</tt>[% END %])
</span>
[% END %]
2015-09-09 16:51:20 +02:00
[% END %]
[% IF m.value.nrStepsDone %]
<span class="muted" style="font-weight: normal;">
([% m.value.nrStepsDone %] steps done, [% f = format("%.1f"); f(m.value.avgStepBuildTime) %] s/step)
</span>
2013-04-23 14:24:48 +02:00
[% END %]
2013-02-20 16:47:57 +01:00
</th>
</tr>
2010-10-13 12:32:57 +00:00
</thead>
<tbody>
2013-02-20 16:47:57 +01:00
[% idle = 1 %]
[% FOREACH step IN steps %]
2015-06-17 13:49:18 +02:00
[% name2 = step.machine ? stripSSHUser(step.machine) : "localhost" %]
2013-04-23 14:24:48 +02:00
[% IF name == name2 %]
2013-02-20 16:47:57 +01:00
[% idle = 0 %]
<tr>
2016-03-16 15:19:18 +01:00
<td><tt>[% INCLUDE renderFullJobName project=step.project jobset=step.jobset job=step.job %]</tt></td>
2025-08-02 16:56:04 +02:00
<td><a [% HTML.attributes(href => c.uri_for('/build' step.build)) %]>[% step.build %]</a></td>
<td>[% IF step.busy >= 30 %]<a class="row-link" [% HTML.attributes(href => c.uri_for('/build' step.build 'nixlog' step.stepnr 'tail')) %]>[% step.stepnr %]</a>[% ELSE; step.stepnr; END %]</td>
2013-02-20 16:47:57 +01:00
<td><tt>[% step.drvpath.match('-(.*)').0 %]</tt></td>
2024-04-11 17:12:47 +02:00
<td>[% INCLUDE renderBusyStatus %]</td>
2013-04-23 14:24:48 +02:00
<td style="width: 10em">[% INCLUDE renderDuration duration = curTime - step.starttime %] </td>
2013-02-20 16:47:57 +01:00
</tr>
2010-10-13 12:32:57 +00:00
[% END %]
2013-02-20 16:47:57 +01:00
[% END %]
[% IF idle == 1 %]
2015-07-10 15:34:29 +02:00
<tr><td colspan="6">Idle</td></tr>
2013-02-20 16:47:57 +01:00
[% END %]
2010-10-13 12:32:57 +00:00
</tbody>
2013-02-20 16:47:57 +01:00
[% END %]
2010-10-13 12:32:57 +00:00
</table>
2010-04-27 13:29:08 +00:00
[% END %]