X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/6468395bf22e4123f05d99f36f0f13d96911e89e..77f0f9c5c215c72ce7a105bb3ac16d1c8f3b8a68:/templates/log.tt diff --git a/templates/log.tt b/templates/log.tt index 07699b0..29d51e8 100644 --- a/templates/log.tt +++ b/templates/log.tt @@ -7,7 +7,7 @@ See accompanying License file for license details -%] [% PERL %] use POSIX qw(ceil); - my $lrfactor = 6; + my $lrfactor = 4; $stash->set(lrfactor => $lrfactor); my $rows = $stash->get('log_file_names'); my $logrows = ceil(scalar(@$rows)/$lrfactor); @@ -26,18 +26,11 @@ See accompanying License file for license details pagebutton = 'none' %] [%- BLOCK gitlog ; - loglines = clog.split('\n'); - firstline = loglines.shift; - commitref = firstline.replace('commit ([0-9A-Fa-f]+)','$1'); -%] - -commit [% commitref %] -[% loglines.join("\n") | html %] + commitref = clog.replace('^commit ([0-9A-Fa-f]+)(.|\n)*','$1'); + logtail = clog.replace('^commit ([0-9A-Fa-f]+)',''); + logtail = logtail.replace('\n',' '); +%][% commitref %][% logtail | html %] [% END -%]

PostgreSQL Build Farm Log

Details for system "[% system %]"[% IF stage != 'OK' %] failure at stage [% stage ; ELSE %], status 'OK'[% END %], snapshot taken [% urldt %]

@@ -76,10 +69,10 @@ commit [% commitref %] [% END %] [% cell = 0; FOREACH logstage IN log_file_names ; striplog = logstage.replace('\.log$','') ; cell = loop.count %] [% IF loop.first %] -
+
Stage Logs
[% END %] [% IF loop.count > 1 and loop.count % lrfactor == 1 %][% END %] - + [% IF loop.count % lrfactor == 0 %][% END %] [% END %] @@ -95,6 +88,9 @@ commit [% commitref %]
 [% conf | html %]
 
+
Stage Logs

Total run time
[% run_time %]
[% striplog %][% striplog %] ([% stage_times.$logstage.stage_duration %])
+ + + [%- ELSE %] -
 not recorded
 
+ [% END -%] + [% IF stage != 'OK' %] + + + [%- ELSE %]
 not recorded
 
+ [% END -%] + [% END %] +

Files changed this run

[%- IF changed_this_run.0 -%]
@@ -103,21 +99,27 @@ commit [% commitref %]
 [%- END -%]
 
[% END %] +
[% IF changed_this_run_logs.0 %]
Git log
-
-[%- FOREACH clog IN changed_this_run_logs ; PROCESS gitlog -%]
-[%IF not loop.last %]
-===================================================================
-[% END -%]
+
+[% IF last_build_git_ref && git_head_ref %]
+Change Set for this build
+[% END %]
+[% FOREACH clog IN changed_this_run_logs ; PROCESS gitlog -%]
 [%- END -%]
-
+ +

Files changed since last success

[%- IF changed_since_success.0 %]
@@ -126,21 +128,28 @@ not recorded
 [%- END -%]
 
[% END %] +
[% IF changed_since_success_logs.0 %]
Git log
-
-[%- FOREACH clog IN changed_since_success_logs ; PROCESS gitlog -%]
-[%IF not loop.last %]
-===================================================================
-[% END -%]
+
+Change Set prior to this build
+
+Change Set including this build
+
+[% FOREACH clog IN changed_since_success_logs ; PROCESS gitlog -%]
 [%- END -%]
-
+ +

Log

 [% log | html %]