2013-02-20 14:54:33 +00:00
[% WRAPPER layout.tt title="Evaluation $eval.id of jobset $project.name:$jobset.name " %]
2012-04-02 14:11:22 +00:00
[% PROCESS common.tt %]
2013-03-05 16:37:17 +00:00
<div class="btn-group pull-right">
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-white icon-eye-open"></i> Compare to...</a>
<ul class="dropdown-menu">
2013-09-30 09:18:48 +00:00
<li><a href="?">Preceding evaluation in this jobset</a></li>
2013-08-28 13:46:08 +00:00
<li class="divider"></li>
2013-09-30 09:18:48 +00:00
<li><a href="?compare=-[% 24 * 60 * 60 %]">This jobset <strong>one day</strong> earlier</a></li>
<li><a href="?compare=-[% 7 * 24 * 60 * 60 %]">This jobset <strong>one week</strong> earlier</a></li>
<li><a href="?compare=-[% 31 * 24 * 60 * 60 %]">This jobset <strong>one month</strong> earlier</a></li>
2013-03-05 16:37:17 +00:00
[% IF project.jobsets_rs.count > 1 %]
<li class="divider"></li>
2013-08-28 13:26:50 +00:00
[% FOREACH j IN project.jobsets.sort('name'); IF j.name != jobset.name %]
2013-03-05 16:37:17 +00:00
<li><a href="?compare=[% j.name %]">Jobset <tt>[% project.name %]:[% j.name %]</tt></a></li>
[% END; END %]
[% END %]
</ul>
</div>
2019-05-10 22:52:06 +00:00
<p>This evaluation was performed [% IF eval.flake %]from the flake
<tt>[%HTML.escape(eval.flake)%]</tt>[%END%] on [% INCLUDE renderDateTime
2015-02-26 12:11:33 +00:00
timestamp=eval.timestamp %]. Fetching the dependencies took [%
eval.checkouttime %]s and evaluation took [% eval.evaltime %]s.</p>
2013-02-14 15:51:42 +00:00
[% IF otherEval %]
2012-04-02 18:40:59 +00:00
<p>Comparisons are relative to [% INCLUDE renderFullJobsetName
2013-02-14 17:03:12 +00:00
project=otherEval.jobset.project.name jobset=otherEval.jobset.name %] evaluation <a href="[%
2012-04-02 18:40:59 +00:00
c.uri_for(c.controller('JobsetEval').action_for('view'),
[otherEval.id]) %]">[% otherEval.id %]</a>.</p>
2013-08-28 13:46:08 +00:00
[% ELSE %]
<div class="alert">Couldn't find an evaluation to compare to.</div>
2013-02-14 15:51:42 +00:00
[% END %]
2012-04-02 14:11:22 +00:00
2013-08-28 15:06:08 +00:00
<form class="form-search">
<input name="filter" type="text" class="input-large search-query" placeholder="Search jobs by name..." [% HTML.attributes(value => filter) %]/>
<input name="compare" type="hidden" [% HTML.attributes(value => otherEval.id) %]/>
<input name="full" type="hidden" [% HTML.attributes(value => full) %]/>
</form>
2013-03-05 15:19:33 +00:00
<ul class="nav nav-tabs">
2013-10-02 23:34:17 +00:00
[% IF c.user_exists %]
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Actions
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
2015-07-06 13:17:35 +00:00
<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('create_jobset'), [eval.id]) %]">Create a jobset from this evaluation</a></li>
2015-08-10 16:56:19 +00:00
[% IF unfinished.size > 0 %]
<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('cancel'), [eval.id]) %]">Cancel all scheduled builds</a></li>
[% END %]
2015-10-28 14:04:12 +00:00
[% IF aborted.size > 0 || stillFail.size > 0 || nowFail.size > 0 %]
<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('restart_failed'), [eval.id]) %]">Restart all failed builds</a></li>
[% END %]
2015-08-10 16:56:19 +00:00
[% IF aborted.size > 0 %]
<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('restart_aborted'), [eval.id]) %]">Restart all aborted builds</a></li>
[% END %]
[% IF unfinished.size > 0 %]
<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('bump'), [eval.id]) %]">Bump builds to front of queue</a></li>
[% END %]
2013-10-02 23:34:17 +00:00
</ul>
</li>
[% END %]
2013-10-02 23:54:42 +00:00
[% IF aborted.size > 0 %]
2013-10-04 14:35:56 +00:00
<li><a href="#tabs-aborted" data-toggle="tab"><span class="text-warning">Aborted jobs ([% aborted.size %])</span></a></li>
2013-10-02 23:54:42 +00:00
[% END %]
2013-08-28 15:06:08 +00:00
[% IF nowFail.size > 0 %]
2014-01-15 15:09:02 +00:00
<li><a href="#tabs-now-fail" data-toggle="tab"><span class="text-warning">Newly failing jobs ([% nowFail.size %])</span></a></li>
2013-08-28 15:06:08 +00:00
[% END %]
[% IF nowSucceed.size > 0 %]
2014-01-15 15:09:02 +00:00
<li><a href="#tabs-now-succeed" data-toggle="tab"><span class="text-success">Newly succeeding jobs ([% nowSucceed.size %])</span></a></li>
2013-08-28 15:06:08 +00:00
[% END %]
[% IF new.size > 0 %]
2013-10-04 14:35:56 +00:00
<li><a href="#tabs-new" data-toggle="tab">New jobs ([% new.size %])</a></li>
2013-08-28 15:06:08 +00:00
[% END %]
[% IF removed.size > 0 %]
2013-10-04 14:35:56 +00:00
<li><a href="#tabs-removed" data-toggle="tab">Removed jobs ([% removed.size %])</a></li>
2013-08-28 15:06:08 +00:00
[% END %]
[% IF stillFail.size > 0 %]
2014-01-15 15:09:02 +00:00
<li><a href="#tabs-still-fail" data-toggle="tab">Still failing jobs ([% stillFail.size %])</a></li>
2013-08-28 15:06:08 +00:00
[% END %]
[% IF stillSucceed.size > 0 %]
2014-01-15 15:09:02 +00:00
<li><a href="#tabs-still-succeed" data-toggle="tab">Still succeeding jobs ([% stillSucceed.size %])</a></li>
2013-08-28 15:06:08 +00:00
[% END %]
[% IF unfinished.size > 0 %]
2013-10-04 14:35:56 +00:00
<li><a href="#tabs-unfinished" data-toggle="tab">Queued jobs ([% unfinished.size %])</a></li>
2013-08-28 15:06:08 +00:00
[% END %]
2013-03-05 15:19:33 +00:00
<li><a href="#tabs-inputs" data-toggle="tab">Inputs</a></li>
2021-01-21 17:59:03 +00:00
2021-02-01 23:35:48 +00:00
[% IF eval.evaluationerror.errormsg %]
2021-01-21 17:59:03 +00:00
<li><a href="#tabs-errors" data-toggle="tab"><span class="text-warning">Evaluation errors</span></a></li>
[% END %]
2013-03-05 15:19:33 +00:00
</ul>
2012-04-02 14:11:22 +00:00
2013-08-28 15:06:08 +00:00
[% BLOCK renderSome %]
[% INCLUDE renderBuildListHeader unsortable=1 %]
[% size = builds.size; max = full ? size : 250; %]
[% INCLUDE renderBuildListBody builds=builds.slice(0, (size > max ? max : size) - 1)
2015-10-27 14:37:17 +00:00
hideProjectName=1 hideJobsetName=1 busy=0 %]
2013-08-28 15:06:08 +00:00
[% IF size > max; params = c.req.params; params.full = 1 %]
2018-07-15 15:19:03 +00:00
<tr><td class="centered" colspan="6"><a href="[% c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id], params) %][% tabname %]"><em>([% size - max %] more builds omitted)</em></a></td></tr>
2013-08-28 15:06:08 +00:00
[% END %]
[% INCLUDE renderBuildListFooter %]
[% END %]
2013-01-22 13:41:02 +00:00
2013-08-28 15:06:08 +00:00
<div class="tab-content">
2012-04-02 14:11:22 +00:00
2021-02-01 23:35:48 +00:00
[% IF eval.evaluationerror.errormsg %]
2021-01-21 17:13:09 +00:00
<div id="tabs-errors" class="tab-pane">
2021-02-01 23:35:48 +00:00
<p>Errors occurred at [% INCLUDE renderDateTime timestamp=(eval.evaluationerror.errortime || eval.timestamp) %].</p>
<pre class="alert alert-error">[% HTML.escape(eval.evaluationerror.errormsg) %]</pre>
2021-01-21 17:13:09 +00:00
</div>
[% END %]
2013-10-02 23:54:42 +00:00
<div id="tabs-aborted" class="tab-pane">
2018-07-15 15:19:03 +00:00
[% INCLUDE renderSome builds=aborted tabname="#tabs-aborted" %]
2013-10-02 23:54:42 +00:00
</div>
2013-08-28 15:06:08 +00:00
<div id="tabs-now-fail" class="tab-pane">
2018-07-15 15:19:03 +00:00
[% INCLUDE renderSome builds=nowFail tabname="#tabs-now-fail" %]
2013-08-28 15:06:08 +00:00
</div>
2012-04-02 14:11:22 +00:00
2013-08-28 15:06:08 +00:00
<div id="tabs-now-succeed" class="tab-pane">
2018-07-15 15:19:03 +00:00
[% INCLUDE renderSome builds=nowSucceed tabname="#tabs-now-succeed" %]
2013-08-28 15:06:08 +00:00
</div>
2012-04-02 14:11:22 +00:00
2013-08-28 15:06:08 +00:00
<div id="tabs-new" class="tab-pane">
2018-07-15 15:19:03 +00:00
[% INCLUDE renderSome builds=new tabname="#tabs-new" %]
2013-08-28 15:06:08 +00:00
</div>
2013-03-05 15:19:33 +00:00
2013-08-28 15:06:08 +00:00
<div id="tabs-removed" class="tab-pane">
<table class="table table-striped table-condensed clickable-rows">
<thead>
<tr><th>Job</th><th>System</th></tr>
</thead>
<tbody>
[% size = removed.size; max = full ? size : 250; %]
[% FOREACH j IN removed.slice(0,(size > max ? max : size) - 1) %]
<tr>
<td>[% INCLUDE renderJobName project=project.name jobset=jobset.name job=j.job %]</td>
<td><tt>[% j.system %]</tt></td>
</tr>
[% END %]
[% IF size > max; params = c.req.params; params.full = 1 %]
2018-07-15 15:19:03 +00:00
<tr><td class="centered" colspan="2"><a href="[% c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id], params) %]#tabs-removed"><em>([% size - max %] more jobs omitted)</em></a></td></tr>
2013-08-28 15:06:08 +00:00
[% END %]
</tbody>
</table>
</div>
2013-03-05 15:19:33 +00:00
2013-08-28 15:06:08 +00:00
<div id="tabs-still-fail" class="tab-pane">
2018-07-15 15:19:03 +00:00
[% INCLUDE renderSome builds=stillFail tabname="#tabs-still-fail" %]
2013-08-28 15:06:08 +00:00
</div>
2013-03-05 15:19:33 +00:00
2013-08-28 15:06:08 +00:00
<div id="tabs-still-succeed" class="tab-pane">
2018-07-15 15:19:03 +00:00
[% INCLUDE renderSome builds=stillSucceed tabname="#tabs-still-succeed" %]
2013-08-28 15:06:08 +00:00
</div>
2013-03-05 15:19:33 +00:00
2013-08-28 15:06:08 +00:00
<div id="tabs-unfinished" class="tab-pane">
2018-07-15 15:19:03 +00:00
[% INCLUDE renderSome builds=unfinished tabname="#tabs-unfinished" %]
2013-03-05 15:19:33 +00:00
</div>
<div id="tabs-inputs" class="tab-pane">
[% INCLUDE renderInputs inputs=eval.jobsetevalinputs %]
[% IF otherEval %]
<h3>Changes</h3>
[% INCLUDE renderInputDiff inputs2=eval.jobsetevalinputs inputs1=otherEval.jobsetevalinputs %]
[% END %]
</div>
2021-02-01 23:35:48 +00:00
[% IF eval.evaluationerror.errormsg %]
2021-01-21 17:59:03 +00:00
<div id="tabs-errors" class="tab-pane">
2021-02-01 23:35:48 +00:00
<p>Errors occurred at [% INCLUDE renderDateTime timestamp=(eval.evaluationerror.errortime || eval.timestamp) %].</p>
<pre class="alert alert-error">[% HTML.escape(eval.evaluationerror.errormsg) %]</pre>
2021-01-21 17:59:03 +00:00
</div>
[% END %]
2013-03-05 15:19:33 +00:00
</div>
2012-07-18 21:46:41 +00:00
2012-04-02 14:11:22 +00:00
[% END %]