2021-11-22 13:23:02 -05:00
[% WRAPPER layout.tt
title="Build $id of job " _ makeNameTextForJob(jobset, job)
titleHTML="Build $id of job " _ linkToJob(jobset, job)
%]
2008-11-17 23:59:20 +00:00
[% PROCESS common.tt %]
2008-11-27 18:27:19 +00:00
[% PROCESS "product-list.tt" %]
2008-11-18 14:48:40 +00:00
[% USE HTML %]
2010-02-05 14:48:22 +00:00
[% USE Date %]
2008-10-28 10:19:31 +00:00
2015-10-27 15:37:17 +01:00
[%
isAggregate = constituents.size > 0;
busy = 0;
2017-04-05 17:55:56 +02:00
building = 0;
FOR step IN steps;
IF step.busy;
busy = 1;
IF step.drvpath == build.drvpath; building = 1; END;
END;
END;
2015-10-27 15:37:17 +01:00
%]
2009-03-12 23:46:17 +00:00
2013-02-13 16:49:28 +00:00
[% BLOCK renderOutputs %]
[% start=1; FOREACH output IN outputs %]
[% IF !start %],<br/>[% END; start=0; output.path %]
[% END %]
[% END %]
2010-02-05 14:48:22 +00:00
2013-02-13 16:49:28 +00:00
[% BLOCK renderBuildSteps %]
2013-04-26 14:49:11 +02:00
<table class="table table-striped table-condensed clickable-rows">
2013-02-13 16:49:28 +00:00
<thead>
<tr><th>Nr</th><th>What</th><th>Duration</th><th>Machine</th><th>Status</th></tr>
</thead>
<tbody>
2015-12-14 13:01:35 +01:00
[% FOREACH step IN steps %]
2017-12-07 15:35:31 +01:00
[% IF ( type == "All" ) || ( type == "Failed" && step.busy == 0 && step.status != 0 ) || ( type == "Running" && step.busy != 0 ) %]
2015-06-30 00:27:31 +02:00
[% has_log = seen.${step.drvpath} ? 0 : buildStepLogExists(step);
seen.${step.drvpath} = 1;
2013-02-20 17:02:07 +01:00
log = c.uri_for('/build' build.id 'nixlog' step.stepnr); %]
2013-02-22 18:05:04 +01:00
<tr>
2013-02-20 17:02:07 +01:00
<td>[% step.stepnr %]</td>
<td>
[% IF step.type == 0 %]
Build of <tt>[% INCLUDE renderOutputs outputs=step.buildstepoutputs %]</tt>
[% ELSE %]
Substitution of <tt>[% INCLUDE renderOutputs outputs=step.buildstepoutputs %]</tt>
[% END %]
</td>
<td>
[% IF step.busy == 0;
2015-05-28 17:39:29 +02:00
IF step.stoptime;
INCLUDE renderDuration duration = step.stoptime - step.starttime;
ELSE;
2015-06-15 15:48:05 +02:00
%]<em>n/a</em>[%
2015-05-28 17:39:29 +02:00
END;
2013-02-20 17:02:07 +01:00
ELSIF build.finished;
INCLUDE renderDuration duration = build.stoptime - step.starttime;
ELSE;
INCLUDE renderDuration duration = curTime - step.starttime;
END %]
</td>
2017-12-07 15:35:31 +01:00
<td>[% IF step.busy != 0 || ((step.machine || step.starttime) && (step.status == 0 || step.status == 1 || step.status == 3 || step.status == 4 || step.status == 7)); INCLUDE renderMachineName machine=step.machine; ELSE; "<em>n/a</em>"; END %]</td>
2016-12-07 15:57:13 +01:00
<td class="step-status">
2017-12-07 15:35:31 +01:00
[% IF step.busy != 0 %]
[% IF step.busy == 1 %]
<strong>Preparing</strong>
[% ELSIF step.busy == 10 %]
<strong>Connecting</strong>
[% ELSIF step.busy == 20 %]
<strong>Sending inputs</strong>
[% ELSIF step.busy == 30 %]
<strong>Building</strong>
[% ELSIF step.busy == 40 %]
<strong>Receiving outputs</strong>
[% ELSIF step.busy == 50 %]
<strong>Post-processing</strong>
[% ELSE %]
<strong>Unknown state</strong>
[% END %]
2013-02-20 17:02:07 +01:00
[% ELSIF step.status == 0 %]
2016-12-07 15:57:13 +01:00
[% IF step.isnondeterministic %]
<span class="warn">Succeeded with non-determistic result</span>
[% ELSE %]
Succeeded
[% END %]
2017-10-18 13:39:39 +02:00
[% IF step.timesbuilt && step.timesbuilt > 1 %]
2016-12-07 15:57:13 +01:00
([% step.timesbuilt %] times)
[% END %]
2016-03-09 15:15:12 +01:00
[% ELSIF step.status == 3 %]
2016-12-07 15:57:13 +01:00
<span class="error">Aborted</span>[% IF step.errormsg %]: <em>[% HTML.escape(step.errormsg) %]</em>[% END %]
2016-10-31 14:58:29 +01:00
[% ELSIF step.status == 4 %]
<span class="error">Cancelled</span>
2013-05-09 22:13:01 +00:00
[% ELSIF step.status == 7 %]
<span class="error">Timed out</span>
[% ELSIF step.status == 8 %]
<span class="error">Cached failure</span>
2015-06-15 15:07:04 +02:00
[% ELSIF step.status == 9 %]
<span class="error">Unsupported system type</span>
2015-10-06 17:35:08 +02:00
[% ELSIF step.status == 10 %]
<span class="error">Log limit exceeded</span>
2016-03-09 16:59:38 +01:00
[% ELSIF step.status == 11 %]
<span class="error">Output limit exceeded</span>
2016-12-06 17:46:06 +01:00
[% ELSIF step.status == 12 %]
2016-12-07 15:57:13 +01:00
<span class="error">Non-determinism detected</span> [% IF step.timesbuilt %] after [% step.timesbuilt %] times[% END %]
2015-05-28 17:39:29 +02:00
[% ELSIF step.errormsg %]
2016-12-07 15:57:13 +01:00
<span class="error">Failed</span>: <em>[% HTML.escape(step.errormsg) %]</em>
2015-05-28 17:39:29 +02:00
[% ELSE %]
<span class="error">Failed</span>
2013-02-20 17:02:07 +01:00
[% END %]
2013-02-22 18:05:04 +01:00
[%%] [%+ IF has_log; INCLUDE renderLogLinks url=log inRow=1; END %]
2015-02-25 16:42:32 +01:00
[%+ IF step.propagatedfrom; %](propagated from [% INCLUDE renderBuildIdLink id=step.propagatedfrom.get_column('id') %])[% END %]
2013-02-20 17:02:07 +01:00
</td>
</tr>
2013-02-13 16:49:28 +00:00
[% END %]
2013-02-20 17:02:07 +01:00
[% END %]
2013-02-13 16:49:28 +00:00
</tbody>
</table>
2010-02-05 14:48:22 +00:00
[% END %]
2013-02-20 17:02:07 +01:00
<ul class="nav nav-tabs">
2019-07-30 17:51:24 -04:00
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" area-haspopup="true" aria-expanded="false">Actions</a>
<div class="dropdown-menu">
2021-01-22 07:14:24 -05:00
[% IF eval.nixexprinput || eval.flake %]
2019-07-30 17:51:24 -04:00
<a class="dropdown-item" href="#reproduce" data-toggle="modal">Reproduce locally</a>
2013-10-02 19:10:00 +02:00
[% END %]
[% IF c.user_exists %]
[% IF available %]
[% IF build.keep %]
2019-07-30 17:51:24 -04:00
<a class="dropdown-item" href="[% c.uri_for('/build' build.id 'keep' 0) %]">Unkeep</a>
2013-10-02 19:10:00 +02:00
[% ELSE %]
2019-07-30 17:51:24 -04:00
<a class="dropdown-item" href="[% c.uri_for('/build' build.id 'keep' 1) %]">Keep</a>
2013-10-02 19:10:00 +02:00
[% END %]
[% END %]
[% IF build.finished %]
2019-07-30 17:51:24 -04:00
<a class="dropdown-item" href="[% c.uri_for('/build' build.id 'restart') %]">Restart</a>
2013-10-02 19:10:00 +02:00
[% ELSE %]
2019-07-30 17:51:24 -04:00
<a class="dropdown-item" href="[% c.uri_for('/build' build.id 'cancel') %]">Cancel</a>
<a class="dropdown-item" href="[% c.uri_for('/build' build.id 'bump') %]">Bump up</a>
2013-10-02 19:10:00 +02:00
[% END %]
[% END %]
2019-07-30 17:51:24 -04:00
</div>
2013-10-02 19:10:00 +02:00
</li>
2015-07-31 00:57:30 +02:00
2019-07-30 17:51:24 -04:00
<li class="nav-item"><a class="nav-link active" href="#tabs-summary" data-toggle="tab">Summary</a></li>
[% IF isAggregate %]<li class="nav-item"><a class="nav-link" href="#tabs-constituents" data-toggle="tab">Constituents</a></li>[% END %]
<li class="nav-item"><a class="nav-link" href="#tabs-details" data-toggle="tab">Details</a></li>
<li class="nav-item"><a class="nav-link" href="#tabs-buildinputs" data-toggle="tab">Inputs</a></li>
2021-12-08 20:02:14 -05:00
[% IF steps.size() > 0 %]<li class="nav-item"><a class="nav-link" href="#tabs-buildsteps" data-toggle="tab">Build Steps</a></li>[% END %]
[% IF build.dependents %]<li class="nav-item"><a class="nav-link" href="#tabs-usedby" data-toggle="tab">Used By</a></li>[% END%]
[% IF drvAvailable %]<li class="nav-item"><a class="nav-link" href="#tabs-build-deps" data-toggle="tab">Build Dependencies</a></li>[% END %]
[% IF localStore && available %]<li class="nav-item"><a class="nav-link" href="#tabs-runtime-deps" data-toggle="tab">Runtime Dependencies</a></li>[% END %]
2021-11-19 15:21:45 -05:00
<li class="nav-item"><a class="nav-link" href="#tabs-runcommandlogs" data-toggle="tab">RunCommand Logs</a></li>
2013-02-20 17:02:07 +01:00
</ul>
<div id="generic-tabs" class="tab-content">
<div id="tabs-summary" class="tab-pane active">
2013-02-21 13:42:44 +01:00
<table>
2013-02-20 17:02:07 +01:00
<tr>
<td>
2016-12-07 15:57:13 +01:00
[% INCLUDE renderBuildStatusIcon size=128 build=build %]
2013-02-20 17:02:07 +01:00
</td>
<td>
2013-02-21 13:42:44 +01:00
<table class="info-table">
2013-02-20 17:02:07 +01:00
<tr>
<th>Build ID:</th>
<td>[% build.id %]</td>
</tr>
<tr>
<th>Status:</th>
2013-08-15 02:17:06 +02:00
<td>
2015-10-27 15:37:17 +01:00
[% INCLUDE renderStatus build=build icon=0 busy=busy %]
2013-08-15 02:17:06 +02:00
[% IF isAggregate;
2013-08-15 02:33:10 +02:00
nrConstituents = 0;
2013-08-15 02:17:06 +02:00
nrFinished = 0;
2013-08-15 02:33:10 +02:00
nrFailedConstituents = 0;
2013-08-15 03:28:21 +02:00
FOREACH b IN constituents;
2013-08-15 02:33:10 +02:00
nrConstituents = nrConstituents + 1;
2013-08-15 02:17:06 +02:00
IF b.finished; nrFinished = nrFinished + 1; END;
2013-08-15 02:33:10 +02:00
IF b.finished && b.buildstatus != 0; nrFailedConstituents = nrFailedConstituents + 1; END;
2013-08-15 02:17:06 +02:00
END;
%];
2020-01-26 20:15:18 +01:00
[%+ IF nrFinished == nrConstituents && nrFailedConstituents == 0 %]
2013-08-15 02:33:10 +02:00
all [% nrConstituents %] constituent builds succeeded
2013-08-15 02:17:06 +02:00
[% ELSE %]
2013-08-15 02:33:10 +02:00
[% nrFailedConstituents %] out of [% nrConstituents %] constituent builds failed
[% IF nrFinished < nrConstituents %]
([% nrConstituents - nrFinished %] still pending)
2013-08-15 02:17:06 +02:00
[% END %]
[% END %]
[% END %]
</td>
2013-02-20 17:02:07 +01:00
</tr>
<tr>
<th>System:</th>
<td><tt>[% build.system %]</tt></td>
</tr>
[% IF build.releasename %]
<tr>
<th>Release name:</th>
<td><tt>[% HTML.escape(build.releasename) %]</tt></td>
</tr>
[% ELSE %]
2013-02-20 18:13:20 +01:00
<tr>
2013-02-20 17:02:07 +01:00
<th>Nix name:</th>
<td><tt>[% build.nixname %]</tt></td>
</tr>
[% END %]
2013-02-21 18:42:18 +01:00
[% IF eval %]
<tr>
<th>Part of:</th>
<td>
<a href="[% c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id]) %]">evaluation [% eval.id %]</a>
2013-02-21 18:49:57 +01:00
[% IF nrEvals > 1 +%] (and <a href="[% c.uri_for('/build' build.id 'evals') %]">[% nrEvals - 1 %] others</a>)[% END %]
2013-02-21 18:42:18 +01:00
</td>
</tr>
[% END %]
2013-02-20 17:02:07 +01:00
[% IF build.iscachedbuild %]
<tr>
<th>Cached from:</th>
2013-05-24 12:43:31 -04:00
<td>[% IF cachedBuild; INCLUDE renderFullBuildLink build=cachedBuild; ELSE %]<em>unknown</em>[% END %]</td>
2013-02-20 17:02:07 +01:00
</tr>
[% END %]
2017-04-05 17:55:56 +02:00
[% actualBuild = build.iscachedbuild ? cachedBuild : build %]
[% IF (!isAggregate || !build.ischannel) && build.finished; %]
2015-06-15 15:48:05 +02:00
[% IF actualBuild %]
<tr>
<th>Duration:</th>
<td>[% INCLUDE renderDuration duration = actualBuild.stoptime - actualBuild.starttime %]</td>
</tr>
[% END %]
<tr>
<th>Finished at:</th>
<td>[% INCLUDE renderDateTime timestamp = build.stoptime; %]</td>
</tr>
2013-02-26 16:01:00 +01:00
[% END %]
2017-04-05 17:55:56 +02:00
[% IF (!build.finished && building) || (build.finished && (!isAggregate || !build.ischannel) && buildLogExists(build)) %]
2013-02-20 17:02:07 +01:00
<tr>
<th>Logfile:</th>
2013-01-22 14:41:02 +01:00
<td>
2017-04-11 14:25:48 +02:00
[% actualLog = cachedBuildStep ? c.uri_for('/build' cachedBuild.id 'nixlog' cachedBuildStep.stepnr) : c.uri_for('/build' build.id 'log') %]
2021-04-08 10:58:02 -04:00
<a class="btn btn-secondary btn-sm" href="[%actualLog%]">pretty</a>
<a class="btn btn-secondary btn-sm" href="[%actualLog%]/raw">raw</a>
<a class="btn btn-secondary btn-sm" href="[%actualLog%]/tail">tail</a>
2013-01-22 14:41:02 +01:00
</td>
</tr>
2013-02-20 17:02:07 +01:00
[% END %]
</table>
</td>
</tr>
</table>
2015-04-26 18:03:42 +02:00
[% IF build.ischannel || (build.buildproducts && !isAggregate) %]
2013-01-22 14:41:02 +01:00
2013-02-20 17:02:07 +01:00
<h3>Build products</h3>
2013-01-22 14:41:02 +01:00
2013-02-20 17:02:07 +01:00
[% IF !available %]
<p class="error">Note: this build is no longer available.</p>
[% END %]
2013-01-22 14:41:02 +01:00
2020-05-27 20:09:36 +02:00
[% INCLUDE renderProductList latestRoot=['/job' build.project.name build.jobset.name build.job 'latest'] %]
2013-01-22 14:41:02 +01:00
2013-02-20 17:02:07 +01:00
[% END %]
2013-01-22 14:41:02 +01:00
2015-10-27 15:37:17 +01:00
[% IF busy %]
2013-02-20 17:02:07 +01:00
<h3>Running build steps</h3>
[% INCLUDE renderBuildSteps type="Running" %]
[% END %]
2010-02-05 14:48:22 +00:00
2013-02-20 17:02:07 +01:00
[% IF build.finished %]
2013-02-22 13:17:07 +01:00
2016-10-31 14:58:29 +01:00
[% IF steps && build.buildstatus != 0 && build.buildstatus != 4 && build.buildstatus != 6 %]
2013-02-20 17:02:07 +01:00
<h3>Failed build steps</h3>
[% INCLUDE renderBuildSteps type="Failed" %]
[% END %]
2010-02-05 14:48:22 +00:00
2014-11-18 11:00:15 +01:00
[% IF otherEval %]
2013-02-20 17:02:07 +01:00
<h3>Changes</h3>
2014-11-18 11:00:15 +01:00
[% INCLUDE renderInputDiff inputs2=eval.jobsetevalinputs inputs1=otherEval.jobsetevalinputs %]
[% END %]
[% IF prevSuccessfulBuild %]
<h3>Previous builds</h3>
2013-02-20 17:02:07 +01:00
<table class="table table-striped table-condensed">
<thead>
2013-04-26 17:12:43 +02:00
<th>Last successful build [% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]</th>
2013-02-20 17:02:07 +01:00
[% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %]
2013-04-26 17:12:43 +02:00
<th>First broken build [% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %]
2013-02-20 17:02:07 +01:00
</th>
2011-10-12 12:43:31 +00:00
[% END %]
2013-04-26 17:12:43 +02:00
<th>This build [% INCLUDE renderDateTime timestamp = build.timestamp %]
2013-02-20 17:02:07 +01:00
</th>
</thead>
<tr>
2013-02-22 13:17:07 +01:00
<td valign="center">[% INCLUDE renderBuildStatusIcon build=prevSuccessfulBuild size=32 %] [% INCLUDE renderBuildLink build=prevSuccessfulBuild %]</td>
[% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %]
<td valign="center">[% INCLUDE renderBuildStatusIcon build=firstBrokenBuild size=32 %] [% INCLUDE renderBuildLink build=firstBrokenBuild %]</td>
[% END %]
<td>[% INCLUDE renderBuildStatusIcon build=build size=32 %] [% INCLUDE renderBuildLink build=build %]</td>
2013-02-20 17:02:07 +01:00
</tr>
<tr>
<td></td>
2013-02-22 13:17:07 +01:00
[% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %]
2013-03-05 16:19:33 +01:00
<td>[% INCLUDE renderInputDiff inputs1=prevSuccessfulBuild.inputs inputs2=firstBrokenBuild.inputs %]</td>
2013-02-22 13:17:07 +01:00
[% END %]
2013-02-20 17:02:07 +01:00
</tr>
</table>
[% END %]
[% END %]
</div>
2013-01-22 14:41:02 +01:00
2013-08-15 02:17:06 +02:00
[% IF isAggregate %]
2013-08-15 00:30:19 +02:00
2013-08-15 02:17:06 +02:00
<div id="tabs-constituents" class="tab-pane">
2013-08-15 00:30:19 +02:00
<p>This build is an aggregate of the following builds:</p>
2013-08-15 03:35:18 +02:00
[% INCLUDE renderBuildList builds=constituents hideProjectName=1 hideJobsetName=1 %]
2013-08-15 00:30:19 +02:00
</div>
[% END %]
2013-02-21 13:42:44 +01:00
<div id="tabs-details" class="tab-pane">
2013-02-20 17:02:07 +01:00
2013-02-21 13:42:44 +01:00
<table class="info-table">
2014-10-07 17:16:41 +02:00
<tr>
2015-06-15 15:48:05 +02:00
<th>Queued at:</th>
2014-10-07 17:16:41 +02:00
<td>[% INCLUDE renderDateTime timestamp = build.timestamp %]</td>
</tr>
[% IF build.finished && !build.iscachedbuild %]
<tr>
<th>Build started:</th>
<td>[% INCLUDE renderDateTime timestamp = build.starttime %]</td>
</tr>
<tr>
<th>Build finished:</th>
<td>[% INCLUDE renderDateTime timestamp = build.stoptime %]</td>
</tr>
[% END %]
[% IF !build.finished %]
<tr>
<th>Priority:</th>
<td>[% build.priority %]</td>
</tr>
[% END %]
2021-01-22 07:14:24 -05:00
[% IF eval.nixexprinput %]
2013-02-20 17:02:07 +01:00
<tr>
<th>Nix expression:</th>
2021-01-22 07:14:24 -05:00
<td>file <tt>[% HTML.escape(eval.nixexprpath) %]</tt> in input <tt>[% HTML.escape(eval.nixexprinput) %]</tt></td>
2013-02-20 17:02:07 +01:00
</tr>
[% END %]
<tr>
<th>Nix name:</th>
<td><tt>[% build.nixname %]</tt></td>
</tr>
<tr>
<th>Short description:</th>
2013-05-24 12:43:31 -04:00
<td>[% IF build.description %][% HTML.escape(build.description) %][% ELSE %]<em>not given</em>[% END %]</td>
2013-02-20 17:02:07 +01:00
</tr>
<tr>
<th>License:</th>
2013-05-24 12:43:31 -04:00
<td>[% IF build.license %][% HTML.escape(build.license) %][% ELSE %]<em>not given</em>[% END %]</td>
2013-02-20 17:02:07 +01:00
</tr>
<tr>
<th>Homepage:</th>
2013-05-24 12:43:31 -04:00
<td>[% IF build.homepage %]<a [% HTML.attributes(href => build.homepage) %]>[% HTML.escape(build.homepage) %]</a>[% ELSE %]<em>not given</em>[% END %]</td>
2013-02-20 17:02:07 +01:00
</tr>
<tr>
<th>Maintainer(s):</th>
2013-05-24 12:43:31 -04:00
<td>[% IF build.maintainers %][% HTML.escape(build.maintainers) %][% ELSE %]<em>not given</em>[% END %]</td>
2013-02-20 17:02:07 +01:00
</tr>
<tr>
<th>System:</th>
<td><tt>[% build.system %]</tt></td>
</tr>
<tr>
<th>Derivation store path:</th>
2013-02-20 17:58:27 +01:00
<td><tt>[% build.drvpath %]</tt></td>
2013-02-20 17:02:07 +01:00
</tr>
<tr>
<th>Output store paths:</th>
2013-02-20 17:58:27 +01:00
<td><tt>[% INCLUDE renderOutputs outputs=build.buildoutputs %]</tt></td>
2013-02-20 17:02:07 +01:00
</tr>
2020-05-27 20:09:36 +02:00
[% chartsURL = c.uri_for('/job' build.project.name build.jobset.name build.job) _ "#tabs-charts" %]
2014-10-07 18:12:00 +02:00
[% IF build.finished && build.closuresize %]
<tr>
<th>Closure size:</th>
<td>[% mibs(build.closuresize / (1024 * 1024)) %] MiB
(<a href="[%chartsURL%]">history</a>)</td>
</tr>
[% END %]
[% IF build.finished && build.closuresize %]
<tr>
<th>Output size:</th>
<td>[% mibs(build.size / (1024 * 1024)) %] MiB
(<a href="[%chartsURL%]">history</a>)</td>
</tr>
[% END %]
2013-02-20 17:02:07 +01:00
[% IF build.finished && build.buildproducts %]
<tr>
<th>Availability:</th>
<td>
[% IF !available %]
<em>Build output is no longer available</em>
[% ELSIF build.keep %]
<em>Build output will be kept permanently</em>
[% ELSE %]
<em>Build output is available, but may be garbage-collected</em>
[% END %]
</td>
</tr>
[% END %]
</table>
2015-07-31 00:57:30 +02:00
[% IF build.finished && build.buildmetrics %]
<h3>Metrics</h3>
<table class="table table-small table-striped table-hover clickable-rows">
<thead>
2016-03-25 12:08:18 +01:00
<tr><th>Name</th><th>Value</th><th></th></tr>
2015-07-31 00:57:30 +02:00
</thead>
<tbody>
[% FOREACH metric IN build.buildmetrics %]
<tr>
2020-05-27 20:09:36 +02:00
<td><tt><a class="row-link" [% HTML.attributes(href => c.uri_for('/job' project.name jobset.name job 'metric' metric.name)) %]">[%HTML.escape(metric.name)%]</a></tt></td>
2016-03-25 12:08:18 +01:00
<td style="text-align: right">[%metric.value%]</td>
<td>[%metric.unit%]</td>
2015-07-31 00:57:30 +02:00
</tr>
[% END %]
</tbody>
</table>
[% END %]
2013-02-20 17:02:07 +01:00
</div>
2013-01-22 22:48:02 +01:00
2013-02-20 17:02:07 +01:00
<div id="tabs-buildinputs" class="tab-pane">
2015-12-15 14:28:07 +01:00
[% IF build.inputs && build.inputs.size > 0 %]
2014-09-25 14:49:09 +02:00
[% INCLUDE renderInputs inputs=build.inputs %]
[% ELSIF eval %]
[% INCLUDE renderInputs inputs=eval.jobsetevalinputs %]
2013-01-22 14:41:02 +01:00
2013-02-20 17:02:07 +01:00
[% END %]
2008-11-05 06:23:41 +00:00
2012-04-17 09:35:37 +00:00
</div>
2010-02-05 14:48:22 +00:00
2015-10-27 15:37:17 +01:00
[% IF steps %]
2013-02-20 17:02:07 +01:00
<div id="tabs-buildsteps" class="tab-pane">
[% INCLUDE renderBuildSteps type="All" %]
</div>
[% END %]
2011-03-11 08:50:42 +00:00
2013-02-20 17:02:07 +01:00
[% IF build.dependents %]
<div id="tabs-usedby" class="tab-pane">
2011-03-11 08:50:42 +00:00
2013-02-20 17:02:07 +01:00
<p>The following builds have used this build as an input:</p>
2013-04-26 14:49:11 +02:00
<table class="table table-condensed table-striped">
2013-02-20 17:02:07 +01:00
<thead>
<tr><th>Build</th><th>Input name</th><th>System</th><th>Timestamp</th></tr>
</thead>
<tbody>
[% FOREACH input IN build.dependents %]
<tr>
<td>[% INCLUDE renderFullBuildLink build=input.build %]</td>
<td><tt>[% input.name %]</tt></td>
<td><tt>[% input.build.system %]</tt></td>
<td>[% INCLUDE renderDateTime timestamp = input.build.timestamp %]</td>
</tr>
[% END %]
</tbody>
</table>
</div>
2021-11-19 15:21:45 -05:00
[% END %]
2010-02-10 10:15:09 +00:00
2013-02-20 17:58:27 +01:00
[% IF drvAvailable %]
2013-02-22 13:36:15 +01:00
[% INCLUDE makeLazyTab tabName="tabs-build-deps" uri=c.uri_for('/build' build.id 'build-deps') %]
2013-02-20 17:58:27 +01:00
[% END %]
[% IF available %]
2013-02-22 13:36:15 +01:00
[% INCLUDE makeLazyTab tabName="tabs-runtime-deps" uri=c.uri_for('/build' build.id 'runtime-deps') %]
2013-02-20 17:58:27 +01:00
[% END %]
2021-11-19 15:21:45 -05:00
<div id="tabs-runcommandlogs" class="tab-pane">
<div class="d-flex flex-column">
[% FOREACH runcommandlog IN runcommandlogs %]
<div class="p-2 border-bottom">
<div class="d-flex flex-row">
<div class="d-flex flex-column" style="padding: 10px; width: 50px;">
[% IF runcommandlog.did_succeed() %]
<img src="[% c.uri_for("/static/images/emojione-check-2714.svg") %]" height="30" width="30" title="Succeeded" alt="Succeeded" class="build-status" />
[% ELSIF runcommandlog.is_running() %]
[% ELSE %]
<img src="[% c.uri_for("/static/images/emojione-red-x-274c.svg") %]" height="30" width="30" title="Failed" alt="Failed" class="build-status" />
[% END %]
</div>
<div class="d-flex flex-column mr-auto align-self-center">
<div><tt>[% runcommandlog.command | html%]</tt></div>
<div>
[% IF not runcommandlog.is_running() %]
[% IF runcommandlog.did_fail_with_signal() %]
Exit signal: [% runcommandlog.signal %]
[% IF runcommandlog.core_dumped %]
(Core Dumped)
[% END %]
[% ELSIF runcommandlog.did_fail_with_exec_error() %]
Exec error: [% runcommandlog.error_number %]
[% ELSIF not runcommandlog.did_succeed() %]
Exit code: [% runcommandlog.exit_code %]
[% END %]
[% END %]
</div>
</div>
<div class="d-flex flex-column align-items-end">
[% IF runcommandlog.start_time != undef %]
<div>Started at [% INCLUDE renderDateTime timestamp = runcommandlog.start_time; %]</div>
[% IF runcommandlog.end_time != undef %]
<div>Ran for [% INCLUDE renderDuration duration = runcommandlog.end_time - runcommandlog.start_time %]</div>
[% ELSE %]
<div>Running for [% INCLUDE renderDuration duration = curTime - runcommandlog.start_time %]</div>
[% END %]
[% ELSE %]
<div>Pending</div>
[% END %]
</div>
</div>
</div>
[% END %]
</div>
</div>
2010-02-05 14:48:22 +00:00
</div>
2008-11-06 13:40:31 +00:00
2013-10-02 19:10:00 +02:00
<div id="reproduce" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
2019-07-30 17:51:24 -04:00
<div class="modal-dialog" role="document">
<div class="modal-content">
[% url = c.uri_for('/build' build.id 'reproduce') %]
2013-10-02 19:10:00 +02:00
2019-07-30 17:51:24 -04:00
<div class="modal-header">
<h3>Reproduce this build</h3>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
2013-10-02 19:10:00 +02:00
2019-07-30 17:51:24 -04:00
<div class="modal-body">
2013-10-02 19:10:00 +02:00
2021-04-08 11:13:09 -04:00
[% IF eval.flake %]
2019-05-11 00:52:25 +02:00
2021-04-08 11:13:09 -04:00
<p>If you have <a href='https://nixos.org/nix/download.html'>Nix
installed</a>, you can reproduce this build on your own machine by
running the following command:</p>
2019-05-11 00:52:25 +02:00
2021-04-07 15:15:34 -04:00
<div class="card bg-light"><div class="card-body p-2"><code>
2020-05-27 20:09:36 +02:00
<span class="shell-prompt"># </span>nix build [% HTML.escape(eval.flake) %]#hydraJobs.[% HTML.escape(job) %]
2021-04-07 15:15:34 -04:00
</code></div></div>
2019-05-11 00:52:25 +02:00
2021-04-08 11:13:09 -04:00
[% ELSE %]
2019-05-11 00:52:25 +02:00
2021-04-08 11:13:09 -04:00
<p>If you have <a href='https://nixos.org/nix/download.html'>Nix
installed</a>, you can reproduce this build on your own machine by
downloading <a [% HTML.attributes(href => url) %]>a script</a>
that checks out all inputs of the build and then invokes Nix to
perform the build.</p>
2013-10-02 19:10:00 +02:00
2021-04-08 11:13:09 -04:00
<p>To download and execute the script from the command line, run the
following command:</p>
2013-10-02 19:10:00 +02:00
2021-04-07 15:15:34 -04:00
<div class="card bg-light"><div class="card-body p-2"><code>
2019-05-11 00:52:25 +02:00
<span class="shell-prompt"># </span>curl <a [% HTML.attributes(href => url) %]>[% HTML.escape(url) %]</a> | bash
2021-04-07 15:15:34 -04:00
</code></div></div>
2013-10-02 19:10:00 +02:00
2021-04-08 11:13:09 -04:00
[% END %]
2019-05-11 00:52:25 +02:00
2019-07-30 17:51:24 -04:00
</div>
2013-10-02 19:10:00 +02:00
2019-07-30 17:51:24 -04:00
<div class="modal-footer">
<a href="#" class="btn btn-primary" data-dismiss="modal">Close</a>
</div>
</div>
2013-10-02 19:10:00 +02:00
</div>
</div>
2008-11-11 12:54:37 +00:00
[% END %]