From b5d59c5c63e8b4236e14fcda35f88cc0f979cbae Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 20 Feb 2013 17:02:07 +0100 Subject: [PATCH] Fix indentation of build.tt --- src/root/build.tt | 877 +++++++++++++++++++++++----------------------- 1 file changed, 429 insertions(+), 448 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index 0deb6e53..b178f2cb 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -23,501 +23,484 @@ [% FOREACH step IN build.buildsteps %] [% IF ( type == "All" ) || ( type == "Failed" && step.status != 0 ) || ( type == "Running" && step.busy == 1 ) %] [% has_log = log_exists(step.drvpath); - log = c.uri_for('/build' build.id 'nixlog' step.stepnr); %] - - [% step.stepnr %] - - [% IF step.type == 0 %] - Build of [% INCLUDE renderOutputs outputs=step.buildstepoutputs %] - [% ELSE %] - Substitution of [% INCLUDE renderOutputs outputs=step.buildstepoutputs %] - [% END %] - - - [% IF step.busy == 0; - INCLUDE renderDuration duration = step.stoptime - step.starttime; - ELSIF build.finished; - INCLUDE renderDuration duration = build.stoptime - step.starttime; - ELSE; - INCLUDE renderDuration duration = curTime - step.starttime; - END %] - - [% step.machine.split('@').1 %] - - [% IF step.busy == 1 %] - Building - [% ELSIF step.status == 0 %] - Succeeded - [% ELSIF step.status == 4 %] - Aborted - [% ELSE %] - Failed: [% HTML.escape(step.errormsg) %] - [% END %] - [%%] [%+ IF has_log; INCLUDE renderLogLinks url=log; END %] - - - [% END %] + log = c.uri_for('/build' build.id 'nixlog' step.stepnr); %] + + [% step.stepnr %] + + [% IF step.type == 0 %] + Build of [% INCLUDE renderOutputs outputs=step.buildstepoutputs %] + [% ELSE %] + Substitution of [% INCLUDE renderOutputs outputs=step.buildstepoutputs %] + [% END %] + + + [% IF step.busy == 0; + INCLUDE renderDuration duration = step.stoptime - step.starttime; + ELSIF build.finished; + INCLUDE renderDuration duration = build.stoptime - step.starttime; + ELSE; + INCLUDE renderDuration duration = curTime - step.starttime; + END %] + + [% step.machine.split('@').1 %] + + [% IF step.busy == 1 %] + Building + [% ELSIF step.status == 0 %] + Succeeded + [% ELSIF step.status == 4 %] + Aborted + [% ELSE %] + Failed: [% HTML.escape(step.errormsg) %] + [% END %] + [%%] [%+ IF has_log; INCLUDE renderLogLinks url=log; END %] + + [% END %] + [% END %] [% END %] + - -
-
+
- +
+ +
+ + + + + + + [% ELSE %] + + + + + [% END %] + [% IF log_exists(build.drvpath) %] + + + + + [% END %] +
+ [% INCLUDE renderBuildStatusIcon size=128, build=build %] + + + + + + + + + + + + + + + [% IF build.releasename %] - - + + + + [% ELSE %] + + + -
Build ID:[% build.id %]
Status:[% INCLUDE renderStatus build=build icon=0 %]
System:[% build.system %]
- [% INCLUDE renderBuildStatusIcon size=128, build=build %] - - - - - - - - - - - - - - - [% IF build.releasename %] - - - - - [% ELSE %] - - - - - [% END %] - [% IF build.iscachedbuild %] - - - - - [% ELSE %] - - - - - [% END %] - [% IF log_exists(build.drvpath) %] - - - - - [% END %] -
Build ID:[% build.id %]
Status: - [% INCLUDE renderStatus build=build icon=0 %] -
System:[% build.system %]
Release name:[% HTML.escape(build.releasename) %]
Nix name:[% build.nixname %]
Cached from: - [% INCLUDE renderFullBuildLink build=cachedBuild %] -
Duration: - [% INCLUDE renderDuration duration = build.stoptime - build.starttime %]; finished at [% INCLUDE renderDateTime timestamp = build.stoptime %] -
Logfile: - pretty - raw - tail -
-
Release name:[% HTML.escape(build.releasename) %]
Nix name:[% build.nixname %]
- - [% IF c.user_exists && available %] -
-
-
- -
- - -
-
-
- [% END %] - - [% IF build.buildproducts %] - -

Build products

- - [% IF !available %] -

Note: this build is no longer available.

- [% END %] - - [% INCLUDE renderProductList latestRoot=['/job' build.project.name build.jobset.name build.job.name 'latest'] %] - - [% END %] - - [% IF build.busy %] -

Running build steps

- [% INCLUDE renderBuildSteps type="Running" %] - [% END %] - - [% IF build.finished %] - [% IF build.buildsteps && build.buildstatus != 0 && build.buildstatus != 6 %] -

Failed build steps

- [% INCLUDE renderBuildSteps type="Failed" %] - [% END %] - - [% IF prevSuccessfulBuild %] -

Changes

- - - - [% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %] - - [% END %] - - - - - [% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %][% END %] - - - - - [% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %][% END %] - - -
Last successful build [% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]First broken build [% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %] - log diff - This build [% INCLUDE renderDateTime timestamp = build.timestamp %] - log diff -
[% INCLUDE renderBuildStatusIcon build=prevSuccessfulBuild size=32 %] [% INCLUDE renderFullBuildLink build=prevSuccessfulBuild, hideProjectName=1, hideJobsetName=1 %][% INCLUDE renderBuildStatusIcon build=firstBrokenBuild size=32 %] [% INCLUDE renderFullBuildLink build=firstBrokenBuild, hideProjectName=1, hideJobsetName=1 %][% INCLUDE renderBuildStatusIcon build=build size=32 %] [% INCLUDE renderFullBuildLink build=build, hideProjectName=1, hideJobsetName=1 %]
[% INCLUDE renderInputDiff build1=prevSuccessfulBuild , build2=firstBrokenBuild %][% INCLUDE renderInputDiff build1=prevSuccessfulBuild , build2=build %]
[% END %] + [% IF build.iscachedbuild %] +
Cached from:[% INCLUDE renderFullBuildLink build=cachedBuild %]
Duration:[% INCLUDE renderDuration duration = build.stoptime - build.starttime %]; finished at [% INCLUDE renderDateTime timestamp = build.stoptime %]
Logfile: + pretty + raw + tail +
+ + + - [% IF build.errormsg && build.buildstatus != 5 %] - -

Nix error output

- -
[% HTML.escape(build.errormsg) %]
- [% END %] - [% END %] - - [% IF logtext %] -

Log

-
[% HTML.escape(logtext) %]
- [% END %] + [% IF c.user_exists && available %] +
+
+
+ +
+ + +
-
+ + [% END %] - - [% IF build.nixexprinput %] - - - - - [% END %] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [% IF build.finished && build.buildstatus != 4 %] - - - - - - - - - [% END %] - [% IF !build.finished %] - - - - - [% END %] - [% IF build.finished && build.buildproducts %] - - - - - [% END %] -
Nix expression:file [% HTML.escape(build.nixexprpath) %] in input [% HTML.escape(build.nixexprinput) %]
Nix name:[% build.nixname %]
Short description:[% IF build.description %][% HTML.escape(build.description) %][% ELSE %](not given)[% END %]
Long description:[% IF build.longdescription %][% HTML.escape(build.longdescription) %][% ELSE %](not given)[% END %]
License:[% IF build.license %][% HTML.escape(build.license) %][% ELSE %](not given)[% END %]
Homepage:[% IF build.homepage %] build.homepage) %]>[% HTML.escape(build.homepage) %][% ELSE %](not given)[% END %]
Maintainer(s):[% IF build.maintainers %][% HTML.escape(build.maintainers) %][% ELSE %](not given)[% END %]
System:[% build.system %]
Derivation store path: - [% build.drvpath %] - [% IF drvAvailable %] - (build-time dependencies) - [% END %] -
Output store paths: - [% INCLUDE renderOutputs outputs=build.buildoutputs %] - [% IF available %] - (runtime dependencies) - [% END %] -
Time added:[% INCLUDE renderDateTime timestamp = build.timestamp %]
Build started:[% IF build.starttime %][% INCLUDE renderDateTime timestamp = build.starttime %][% ELSE %](cached build)[% END %]
Build finished:[% IF build.stoptime %][% INCLUDE renderDateTime timestamp = build.stoptime %][% ELSE %](cached build)[% END %]
Priority:[% build.priority %]
Availability: - [% IF !available %] - Build output is no longer available - [% ELSIF build.keep %] - Build output will be kept permanently - [% ELSE %] - Build output is available, but may be garbage-collected - [% END %] -
-
-
+ [% IF build.buildproducts %] - - - - - - [% FOREACH input IN build.inputs %] - - - - - - - - [% END %] - -
NameTypeValueRevisionStore path
[% input.name %][% type = input.type; inputTypes.$type %] - [% IF input.type == "build" || input.type == "sysbuild" %] - [% INCLUDE renderFullBuildLink build=input.dependency %] - [% ELSIF input.type == "string" || input.type == "boolean" %] - "[% input.value %]" - [% ELSE %] - [% input.uri %] - [% END %] - [% IF input.revision %][% input.revision %][% END %][% input.path %]
+

Build products

-

+ [% IF !available %] +

Note: this build is no longer available.

+ [% END %] - [% IF prevBuild %] -

Changes since previous build: [% INCLUDE renderFullBuildLink build=prevBuild, hideProjectName=1, hideJobsetName=1 %]

- [% INCLUDE renderInputDiff build2=build , build1=prevBuild %] - [% END %] + [% INCLUDE renderProductList latestRoot=['/job' build.project.name build.jobset.name build.job.name 'latest'] %] -
+ [% END %] - [% IF relatedbuilds %] -
-

The following builds are part of the same jobset evaluation that produced this build.

- [% INCLUDE renderBuildList builds=relatedbuilds hideProjectName=1 hideJobsetName=1 %] -
- [% END %] + [% IF build.busy %] +

Running build steps

+ [% INCLUDE renderBuildSteps type="Running" %] + [% END %] + + [% IF build.finished %] + [% IF build.buildsteps && build.buildstatus != 0 && build.buildstatus != 6 %] +

Failed build steps

+ [% INCLUDE renderBuildSteps type="Failed" %] + [% END %] + + [% IF prevSuccessfulBuild %] +

Changes

+ + + + [% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %] + + [% END %] + + + + + [% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %][% END %] + + + + + [% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %][% END %] + + +
Last successful build [% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]First broken build [% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %] + log diff + This build [% INCLUDE renderDateTime timestamp = build.timestamp %] + log diff +
[% INCLUDE renderBuildStatusIcon build=prevSuccessfulBuild size=32 %] [% INCLUDE renderFullBuildLink build=prevSuccessfulBuild, hideProjectName=1, hideJobsetName=1 %][% INCLUDE renderBuildStatusIcon build=firstBrokenBuild size=32 %] [% INCLUDE renderFullBuildLink build=firstBrokenBuild, hideProjectName=1, hideJobsetName=1 %][% INCLUDE renderBuildStatusIcon build=build size=32 %] [% INCLUDE renderFullBuildLink build=build, hideProjectName=1, hideJobsetName=1 %]
[% INCLUDE renderInputDiff build1=prevSuccessfulBuild , build2=firstBrokenBuild %][% INCLUDE renderInputDiff build1=prevSuccessfulBuild , build2=build %]
+ [% END %] + + [% IF build.errormsg && build.buildstatus != 5 %] +

Nix error output

+
[% HTML.escape(build.errormsg) %]
+ [% END %] + + [% END %] + + [% IF logtext %] +

Log

+
[% HTML.escape(logtext) %]
+ [% END %] -[% IF build.buildsteps %] -
- [% INCLUDE renderBuildSteps type="All" %]
-[% END %] +
-[% IF build.dependents %] + + [% IF build.nixexprinput %] + + + + + [% END %] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [% IF build.finished && build.buildstatus != 4 %] + + + + + + + + + [% END %] + [% IF !build.finished %] + + + + + [% END %] + [% IF build.finished && build.buildproducts %] + + + + + [% END %] +
Nix expression:file [% HTML.escape(build.nixexprpath) %] in input [% HTML.escape(build.nixexprinput) %]
Nix name:[% build.nixname %]
Short description:[% IF build.description %][% HTML.escape(build.description) %][% ELSE %](not given)[% END %]
Long description:[% IF build.longdescription %][% HTML.escape(build.longdescription) %][% ELSE %](not given)[% END %]
License:[% IF build.license %][% HTML.escape(build.license) %][% ELSE %](not given)[% END %]
Homepage:[% IF build.homepage %] build.homepage) %]>[% HTML.escape(build.homepage) %][% ELSE %](not given)[% END %]
Maintainer(s):[% IF build.maintainers %][% HTML.escape(build.maintainers) %][% ELSE %](not given)[% END %]
System:[% build.system %]
Derivation store path:[% build.drvpath %][% IF drvAvailable %] (build-time dependencies)[% END %]
Output store paths:[% INCLUDE renderOutputs outputs=build.buildoutputs %] [% IF available %](runtime dependencies)[% END %]
Time added:[% INCLUDE renderDateTime timestamp = build.timestamp %]
Build started:[% IF build.starttime %][% INCLUDE renderDateTime timestamp = build.starttime %][% ELSE %](cached build)[% END %]
Build finished:[% IF build.stoptime %][% INCLUDE renderDateTime timestamp = build.stoptime %][% ELSE %](cached build)[% END %]
Priority:[% build.priority %]
Availability: + [% IF !available %] + Build output is no longer available + [% ELSIF build.keep %] + Build output will be kept permanently + [% ELSE %] + Build output is available, but may be garbage-collected + [% END %] +
+
+ +
+ + + + + + + [% FOREACH input IN build.inputs %] + + + + + + + + [% END %] + +
NameTypeValueRevisionStore path
[% input.name %][% type = input.type; inputTypes.$type %] + [% IF input.type == "build" || input.type == "sysbuild" %] + [% INCLUDE renderFullBuildLink build=input.dependency %] + [% ELSIF input.type == "string" || input.type == "boolean" %] + "[% input.value %]" + [% ELSE %] + [% input.uri %] + [% END %] + [% IF input.revision %][% input.revision %][% END %][% input.path %]
+ +
+ + [% IF prevBuild %] +

Changes since previous build: [% INCLUDE renderFullBuildLink build=prevBuild, hideProjectName=1, hideJobsetName=1 %]

+ [% INCLUDE renderInputDiff build2=build , build1=prevBuild %] + [% END %] + +
+ + [% IF relatedbuilds %] +
+

The following builds are part of the same jobset evaluation that produced this build.

+ [% INCLUDE renderBuildList builds=relatedbuilds hideProjectName=1 hideJobsetName=1 %] +
+ [% END %] + + [% IF build.buildsteps %] +
+ [% INCLUDE renderBuildSteps type="All" %] +
+ [% END %] + + [% IF build.dependents %]
-

Used by

+

Used by

-

The following builds have used this build as an input:

+

The following builds have used this build as an input:

- - - - - - [% FOREACH input IN build.dependents %] - - - - - - - [% END %] - -
BuildInput nameSystemTimestamp
[% INCLUDE renderFullBuildLink build=input.build %][% input.name %][% input.build.system %][% INCLUDE renderDateTime timestamp = input.build.timestamp %]
+ + + + + + [% FOREACH input IN build.dependents %] + + + + + + + [% END %] + +
BuildInput nameSystemTimestamp
[% INCLUDE renderFullBuildLink build=input.build %][% input.name %][% input.build.system %][% INCLUDE renderDateTime timestamp = input.build.timestamp %]
-[% END %] -[% IF prevBuilds %] + [% END %] + + [% IF prevBuilds %]
-

Build time history (in seconds)

-
-
+

Build time history (in seconds)

+
+
- - - + + - +

Store path size history (in MB)

+
+
+ + $("#overview-size").bind("plotselected", function (event, ranges) { + plot.setSelection(ranges); + }); + $("#placeholder-size").bind("plotclick", function (e, pos, item) { + if (item) { + plot.highlight(item.series, item.datapoint); + buildid = ids[item.datapoint[0]]; + window.location = "/build/"+buildid; + } + }); + }); +
-[% END %] + [% END %]
@@ -525,7 +508,5 @@ $('#tab').tab('show'); - - [% END %]