Build page: Show output / closure sizes

This commit is contained in:
Eelco Dolstra 2014-10-07 18:12:00 +02:00
parent 83d4930101
commit aad3a11eca
3 changed files with 18 additions and 2 deletions

View file

@ -342,6 +342,21 @@
<th>Output store paths:</th> <th>Output store paths:</th>
<td><tt>[% INCLUDE renderOutputs outputs=build.buildoutputs %]</tt></td> <td><tt>[% INCLUDE renderOutputs outputs=build.buildoutputs %]</tt></td>
</tr> </tr>
[% chartsURL = c.uri_for('/job' build.project.name build.jobset.name build.job.name) _ "#tabs-charts" %]
[% 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 %]
[% IF build.finished && build.buildproducts %] [% IF build.finished && build.buildproducts %]
<tr> <tr>
<th>Availability:</th> <th>Availability:</th>

View file

@ -4,6 +4,9 @@ USE String;
USE HTML; USE HTML;
USE mibs=format("%.2f");
BLOCK renderDateTime; BLOCK renderDateTime;
date.format(timestamp, '%Y-%m-%d %H:%M:%S'); date.format(timestamp, '%Y-%m-%d %H:%M:%S');
END; END;

View file

@ -1,5 +1,3 @@
[% USE mibs=format("%.2f") %]
[% BLOCK renderProductLinks %] [% BLOCK renderProductLinks %]
<tr> <tr>
<th>URL:</th> <th>URL:</th>