4 $stash->set(lrfactor => $lrfactor);
5 my $rows = $stash->get('log_file_names');
6 my $logrows = ceil(scalar(@$rows)/$lrfactor);
7 my $logcells = $lrfactor * $logrows;
8 $stash->set( logcells => $logcells);
9 $stash->set( logrows => $logrows );
11 [% 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 -%]
13 cvsurl = 'http://anoncvs.postgresql.org/cvsweb.cgi';
14 giturl = scmurl || 'http://git.postgresql.org/gitweb?p=postgresql.git;a=commit;h=';
21 <h1>PostgreSQL Build Farm Log</h1>
22 <h2>Details for system "[% system %]"[% IF stage != 'OK' %] failure at stage [% stage ; ELSE %], status 'OK'[% END %], snapshot taken [% urldt %]</h2>
23 <table cellspacing="0">
25 <th class="head" rowspan="2">System Information</th>
35 <td><a href="/cgi-bin/show_history.pl?nm=[% system %]&br=[% branch %]">[% branch %]</a></td>
36 <td>[% info_row.operating_system %] [% info_row.os_version %]</td>
37 <td>[% info_row.compiler %] [% info_row.compiler_version %]</td>
38 <td>[% info_row.architecture %]</td>
39 <td>[% info_row.owner_email %]</td>
42 [% IF info_row.sys_notes %]
46 <th class="head" rowspan="2">System Notes</th>
51 <td>[% info_row.sys_notes_date %]</td>
52 <td>[% info_row.sys_notes %]</td>
56 [% cell = 0; FOREACH logstage IN log_file_names ; striplog = logstage.replace('\.log$','') ; cell = loop.count %]
58 <br /> <table><tr><th class='head' rowspan='[% logrows %]'>Stage Logs</th>
60 [% IF loop.count > 1 and loop.count % lrfactor == 1 %]<tr>[% END %]
61 <td><a href='show_stage_log.pl?nm=[% system %]&dt=[% urldt | uri %]&stg=[% striplog %]'>[% striplog %]</a></td>
62 [% IF loop.count % lrfactor == 0 %]</tr>[% END %]
65 [% IF cell > 0 ; nrcell = cell + 1; ncells = [ nrcell .. logcells ] ; FOREACH rcell IN ncells %]
66 [% IF rcell > 1 and rcell % lrfactor == 1 %]<tr>[% END %]
68 [% IF rcell % lrfactor == 0 %]</tr>[% END %]
73 <h3>Configuration summary</h3>
77 <h3>Files changed this run</h3>
79 [%- IF changed_this_run.0 -%]
80 [%- FOREACH changed IN changed_this_run %]
81 <a href="[% IF scm == 'git' ; giturl; changed.1; ELSE ; cvsurl ; changed.0; 'rev='; changed.1; END %]">[% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %]</a>
87 [% IF stage != 'OK' %]
88 <h3>Files changed since last success</h3>
90 [%- IF changed_since_success.0 %]
91 [%- FOREACH changed IN changed_since_success %]
92 <a href="[% IF scm == 'git' ; giturl; changed.1; ELSE ; cvsurl ; changed.0; 'rev='; changed.1; END %]">[% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %]</a>