X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/1ca81965bad89e2ddae9a9b97bdc6f6ea278673f..a95aefd0bc7b551a30e1c025b25b2f0837ca513a:/templates/log.tt
diff --git a/templates/log.tt b/templates/log.tt
index 1b3905c..0e9b8b2 100644
--- a/templates/log.tt
+++ b/templates/log.tt
@@ -1,6 +1,13 @@
+[%#
+
+Copyright (c) 2003-2010, Andrew Dunstan
+
+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);
@@ -8,10 +15,10 @@
$stash->set( logcells => $logcells);
$stash->set( logrows => $logrows );
[% END -%]
-[% mytitle = BLOCK %]PostgreSQL BuildFarm | [% IF stage != 'OK' %]Log for system "[% system %]" failure on snapshot taken [% urldt ; ELSE %]Configuration summary for system "[% system %]" snapshot taken [% urldt ; END ; END -%]
+[% mytitle = BLOCK %]Exim BuildFarm | [% IF stage != 'OK' %]Log for system "[% system %]" failure on snapshot taken [% urldt ; ELSE %]Configuration summary for system "[% system %]" snapshot taken [% urldt ; END ; END -%]
[%
cvsurl = 'http://anoncvs.postgresql.org/cvsweb.cgi';
- giturl = scmurl || 'http://git.postgresql.org/gitweb?p=postgresql.git;a=commit;h=';
+ giturl = scmurl || 'https://git.exim.org/gitweb?p=exim.git;a=commit;h=';
-%]
[% WRAPPER 'page.tt'
title = mytitle
@@ -19,15 +26,13 @@
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
+Exim Build Farm Log
Details for system "[% system %]"[% IF stage != 'OK' %] failure at stage [% stage ; ELSE %], status 'OK'[% END %], snapshot taken [% urldt %]
@@ -41,7 +46,7 @@ commit [% commitref %]
[% system %] |
- [% branch %] |
+ [% branch %] |
[% info_row.operating_system %] [% info_row.os_version %] |
[% info_row.compiler %] [% info_row.compiler_version %] |
[% info_row.architecture %] |
@@ -64,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 |
+
Stage Logs
Total run time [% run_time %] |
[% END %]
[% IF loop.count > 1 and loop.count % lrfactor == 1 %]
---|
[% END %]
- [% striplog %] |
+ [% striplog %] ([% stage_times.$logstage.stage_duration %]) |
[% IF loop.count % lrfactor == 0 %]
[% END %]
[% END %]
@@ -83,6 +88,9 @@ commit [% commitref %]
[% conf | html %]
+
+
+
Files changed this run
[%- IF changed_this_run.0 -%]
@@ -91,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 -%]
-
+
+ |
[%- ELSE %]
-
not recorded
+
[% END -%]
+
[% IF stage != 'OK' %]
+
+
Files changed since last success
[%- IF changed_since_success.0 %]
@@ -114,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 -%]
-
+
+ |
[%- ELSE %]
not recorded
+
[% END -%]
+
[% END %]
+
Log
[% log | html %]
---|