From: Andrew Dunstan Date: Sat, 18 Dec 2010 22:12:46 +0000 (+0000) Subject: undo reorganization X-Git-Url: https://git.exim.org/buildfarm-server.git/commitdiff_plain/1c558dd75c7ab4f9f4b99ed80713c811d69ab24c undo reorganization --- diff --git a/templates/bfwrapper.tt.ttc b/templates/bfwrapper.tt.ttc new file mode 100644 index 0000000..19faeb3 --- /dev/null +++ b/templates/bfwrapper.tt.ttc @@ -0,0 +1,32 @@ +#------------------------------------------------------------------------ +# Compiled template generated by the Template Toolkit version 2.14 +#------------------------------------------------------------------------ + +Template::Document->new({ + METADATA => { + 'modtime' => '1107104454', + 'name' => 'bfwrapper.tt', + }, + BLOCK => sub { + my $context = shift || die "template sub called without context\n"; + my $stash = $context->stash; + my $output = ''; + my $error; + + eval { BLOCK: { + $output .= "\n\n\n \n PostgreSQL BuildFarm Status\n \n \n\n\n
\n\n
\n"; + #line 38 "/home/community/pgbuildfarm/templates/bfwrapper.tt" + $output .= $stash->get('content'); + $output .= "\n
\n
\n \n\n"; + } }; + if ($@) { + $error = $context->catch($@, \$output); + die $error unless $error->type eq 'return'; + } + + return $output; + }, + DEFBLOCKS => { + + }, +}); diff --git a/templates/dashboard.tt.ttc b/templates/dashboard.tt.ttc new file mode 100644 index 0000000..91c772a --- /dev/null +++ b/templates/dashboard.tt.ttc @@ -0,0 +1,312 @@ +#------------------------------------------------------------------------ +# Compiled template generated by the Template Toolkit version 2.14 +#------------------------------------------------------------------------ + +Template::Document->new({ + METADATA => { + 'modtime' => '1127835909', + 'name' => 'dashboard.tt', + }, + BLOCK => sub { + my $context = shift || die "template sub called without context\n"; + my $stash = $context->stash; + my $output = ''; + my $error; + + eval { BLOCK: { + #line 1 "/home/community/pgbuildfarm/templates/dashboard.tt" + $stash->set('flag_imgs', { 'perl' => '/img/camel.png', 'python' => '/img/python.png', 'debug' => '/img/bug.png', 'pam' => '/img/pam.png', 'cassert' => '/img/cassert.png', 'openssl' => '/img/ssl_icon.gif', 'nls' => '/img/translateicon.gif', 'krb5' => '/img/krb.gif', 'tcl' => '/img/tcl.png', 'thread-safety' => '/img/threads.gif', 'integer-datetimes' => '/img/days.png' }); + + + $output .= "\n
\n

PostgreSQL BuildFarm Status

\n

\n Shown here is the latest status of each farm member \n for each branch it has reported on in the last 30 days.\n

\n

\n Use the farm member link for history of that member \n on the relevant branch.\n

\n\n"; + #line 45 "/home/community/pgbuildfarm/templates/dashboard.tt" + + # FOREACH + do { + my ($value, $error, $oldloop); + my $list = $stash->get('flag_imgs'); + + unless (UNIVERSAL::isa($list, 'Template::Iterator')) { + $list = Template::Config->iterator($list) + || die $Template::Config::ERROR, "\n"; + } + + ($value, $error) = $list->get_first(); + eval { $oldloop = $stash->get('loop') }; + $stash->set('loop', $list); + eval { + LOOP: while (! $error) { + $stash->{'flagset'} = $value; + $output .= "\n\n"; + #line 44 "/home/community/pgbuildfarm/templates/dashboard.tt" + if ($stash->get(['loop', 0, 'count', 0]) eq 5) { + $output .= ""; + } + + $output .= "\n";; + ($value, $error) = $list->get_next(); + } + }; + $stash->set('loop', $oldloop); + die $@ if $@; + $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; + die $error if $error; + }; + + $output .= "\n
Legendget(['flagset', 0, 'value', 0]); + $output .= "\" title=\""; + #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['flagset', 0, 'key', 0]); + $output .= "\" alt=\""; + #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['flagset', 0, 'key', 0]); + $output .= "\" height=\"16\" width=\"16\" class=\"inline\" align=\"center\"/> = "; + #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['flagset', 0, 'key', 0]); + $output .= "
\n
\n \n"; + #line 49 "/home/community/pgbuildfarm/templates/dashboard.tt" + $stash->set('brch', ''); + $output .= "\n"; + #line 81 "/home/community/pgbuildfarm/templates/dashboard.tt" + + # FOREACH + do { + my ($value, $error, $oldloop); + my $list = $stash->get('statrows'); + + unless (UNIVERSAL::isa($list, 'Template::Iterator')) { + $list = Template::Config->iterator($list) + || die $Template::Config::ERROR, "\n"; + } + + ($value, $error) = $list->get_first(); + eval { $oldloop = $stash->get('loop') }; + $stash->set('loop', $list); + eval { + LOOP: while (! $error) { + $stash->{'row'} = $value; + $output .= "\n"; + #line 54 "/home/community/pgbuildfarm/templates/dashboard.tt" + if ($stash->get(['row', 0, 'branch', 0]) ne $stash->get('brch')) { + #line 51 "/home/community/pgbuildfarm/templates/dashboard.tt" + $stash->set('brch', $stash->get(['row', 0, 'branch', 0])); + $output .= "\n\n\n"; + } + + $output .= "\nprocess('cl', { 'bgfor' => $stash->get(['row', 0, 'stage', 0]) }); + $output .= ">\n \n \n \n\n \n\n";; + ($value, $error) = $list->get_next(); + } + }; + $stash->set('loop', $oldloop); + die $@ if $@; + $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; + die $error if $error; + }; + + $output .= "\n
Branch: "; + #line 52 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get('brch'); + $output .= "
AliasSystemStatusFlags
get(['row', 0, 'sysname', 0]); + $output .= "&br="; + #line 57 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['row', 0, 'branch', 0]); + $output .= "\"\n title=\"History\"\n >"; + #line 59 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['row', 0, 'sysname', 0]); + $output .= ""; + #line 60 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['row', 0, 'operating_system', 0]); + $output .= "\n "; + #line 61 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['row', 0, 'os_version', 0]); + $output .= " "; + #line 63 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['row', 0, 'compiler', 0]); + $output .= "\n "; + #line 64 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['row', 0, 'compiler_version', 0]); + $output .= " "; + #line 66 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['row', 0, 'architecture', 0]); + $output .= ""; + #line 69 "/home/community/pgbuildfarm/templates/dashboard.tt" + + # FILTER + $output .= do { + my $output = ''; + my $filter = $context->filter('replace', [ '\s', ' ' ]) + || $context->throw($context->error); + + $output .= $stash->get(['row', 0, 'when_ago', 0]); + + &$filter($output); + }; + + $output .= " ago \n "; + #line 70 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get(['row', 0, 'stage', 0]); + $output .= " get(['row', 0, 'sysname', 0]); + $output .= "&dt="; + #line 75 "/home/community/pgbuildfarm/templates/dashboard.tt" + + # FILTER + $output .= do { + my $output = ''; + my $filter = $context->filter('uri') + || $context->throw($context->error); + + $output .= $stash->get(['row', 0, 'snapshot', 0]); + + &$filter($output); + }; + + $output .= "\">"; + #line 77 "/home/community/pgbuildfarm/templates/dashboard.tt" + if ($stash->get(['row', 0, 'stage', 0]) ne 'OK') { + $output .= "Details"; + } + else { + $output .= "Config"; + } + + $output .= ""; + #line 79 "/home/community/pgbuildfarm/templates/dashboard.tt" + + # FOREACH + do { + my ($value, $error, $oldloop); + my $list = $stash->get(['row', 0, 'build_flags', 0, 'split', 0, 'sort', 0]); + + unless (UNIVERSAL::isa($list, 'Template::Iterator')) { + $list = Template::Config->iterator($list) + || die $Template::Config::ERROR, "\n"; + } + + ($value, $error) = $list->get_first(); + eval { $oldloop = $stash->get('loop') }; + $stash->set('loop', $list); + eval { + LOOP: while (! $error) { + $stash->{'flag'} = $value; + #line 79 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $context->process('img');; + ($value, $error) = $list->get_next(); + } + }; + $stash->set('loop', $oldloop); + die $@ if $@; + $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; + die $error if $error; + }; + + $output .= "
\n
\n\n"; + } }; + if ($@) { + $error = $context->catch($@, \$output); + die $error unless $error->type eq 'return'; + } + + return $output; + }, + DEFBLOCKS => { + 'cl' => sub { + my $context = shift || die "template sub called without context\n"; + my $stash = $context->stash; + my $output = ''; + my $error; + + eval { BLOCK: { + $output .= " class=\""; + #line 27 "/home/community/pgbuildfarm/templates/dashboard.tt" + + # SWITCH + do { + my $result = $stash->get('bgfor'); + my $match; + SWITCH: { + $match = 'OK'; + $match = [ $match ] unless ref $match eq 'ARRAY'; + if (grep(/^$result$/, @$match)) { + $output .= "pass"; + last SWITCH; + } + $match = 'ContribCheck'; + $match = [ $match ] unless ref $match eq 'ARRAY'; + if (grep(/^$result$/, @$match)) { + $output .= "warn"; + last SWITCH; + } + $match = [ 'Check', 'InstallCheck' ]; + $match = [ $match ] unless ref $match eq 'ARRAY'; + if (grep(/^$result$/, @$match)) { + $output .= "warnx"; + last SWITCH; + } + $output .= "fail"; + } + }; + + $output .= "\""; + } }; + if ($@) { + $error = $context->catch($@, \$output); + die $error unless $error->type eq 'return'; + } + + return $output; + }, + 'img' => sub { + my $context = shift || die "template sub called without context\n"; + my $stash = $context->stash; + my $output = ''; + my $error; + + eval { BLOCK: { + #line 22 "/home/community/pgbuildfarm/templates/dashboard.tt" + if ($stash->get('flag') eq 'depend' || $stash->get('flag') eq 'gnu-ld') { + + } + elsif ($stash->get(['flag_imgs', 0, $stash->get('flag'), 0])) { + #line 22 "/home/community/pgbuildfarm/templates/dashboard.tt" + + # FILTER + $output .= do { + my $output = ''; + my $filter = $context->filter('collapse') + || $context->throw($context->error); + + $output .= "get(['flag_imgs', 0, $stash->get('flag'), 0]); + $output .= "\" \n title=\""; + #line 20 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get('flag'); + $output .= "\" alt=\""; + #line 20 "/home/community/pgbuildfarm/templates/dashboard.tt" + $output .= $stash->get('flag'); + $output .= "\" \n height=\"16\" width=\"16\" class=\"inline\" align=\"bottom\" /> \n "; + + &$filter($output); + }; + + } + + } }; + if ($@) { + $error = $context->catch($@, \$output); + die $error unless $error->type eq 'return'; + } + + return $output; + }, + }, +}); diff --git a/templates/dyn/history.tt b/templates/dyn/history.tt new file mode 100644 index 0000000..4713047 --- /dev/null +++ b/templates/dyn/history.tt @@ -0,0 +1,69 @@ +[%- BLOCK cl %] class="[% SWITCH bgfor -%] + [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" +[%- END -%] + + + + + PostgreSQL BuildFarm History + + + + +
+ +
+

PostgreSQL BuildFarm Status History

+ + + + + + + + +
System Detail
Farm member[% member %]
OS[% statrows.0.operating_system %] [% statrows.0.os_version %]
Compiler[% statrows.0.compiler %] [% statrows.0.compiler_version %]
Architecture[% statrows.0.architecture %]
+

Branch: [% branch %][% IF statrows.size >= 240 %] (last 240 entries shown)[% END %]

+[% BLOCK stdet %] + + [%- row.when_ago | replace('\s',' ') %] ago  + [% row.stage -%] + + [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%] + + +[% END %] + +[% FOREACH offset IN [0,1,2] %][% low = offset * statrows.size / 3 ; high = -1 + (offset + 1) * statrows.size / 3 %] +[% TRY %][% PERL %] + use POSIX qw(floor); + $stash->set(low => floor($stash->get('low'))); + $stash->set(high => floor($stash->get('high'))); +[% END %][% CATCH %] [% END %] + +[% END %] +
+ + [% FOREACH xrow IN statrows.slice(low,high) %][% PROCESS stdet row=xrow %][% END %] +
+
+
+ + diff --git a/templates/dyn/status.tt b/templates/dyn/status.tt new file mode 100644 index 0000000..f17e415 --- /dev/null +++ b/templates/dyn/status.tt @@ -0,0 +1,80 @@ +[%- BLOCK cl %] class=" [% SWITCH bgfor -%] + [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" +[%- END -%] + + + + + PostgreSQL BuildFarm Status + + + + +
+ +
+

PostgreSQL BuildFarm Status

+

+ Shown here is the latest status of each farm member + for each branch it has reported on in the last 30 days. +

+

+ Use the farm member link for history of that member + on the relevant branch. +

+ +[% brch = "" %] +[% FOREACH row IN statrows %] +[% IF row.branch != brch ; brch = row.branch %] + + +[% END %] + + + + + + +[% END %] +
Branch: [% brch %]
AliasSystemStatus
[% row.sysname %][% row.operating_system %] + [% row.os_version %] + [%- row.compiler %] + [% row.compiler_version %] + [%- row.architecture %] + [%- row.when_ago | replace('\s',' ') %] ago  + [% row.stage -%] + + [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%]
+
+
+ + + + + + + + + + diff --git a/templates/history.tt b/templates/history.tt new file mode 100644 index 0000000..dd050ed --- /dev/null +++ b/templates/history.tt @@ -0,0 +1,56 @@ +[%- BLOCK cl %] class="[% SWITCH bgfor -%] + [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" +[%- END -%] +[% WRAPPER 'page.tt' + title = 'PostgreSQL BuildFarm History' + bodyclass = 'history' + pagebutton = 'none' +%] +

PostgreSQL BuildFarm Status History

+ + + + + + + +
System Detail
Farm member[% member %]
OS[% statrows.0.operating_system %] [% statrows.0.os_version %]
Compiler[% statrows.0.compiler %] [% statrows.0.compiler_version %]
Architecture[% statrows.0.architecture %]
Owner[% statrows.0.owner_email %]
+[% IF statrows.0.sys_notes %] +
+ + + + + + + + + + +
System NotesDateNotes
[% statrows.0.sys_notes_date %][% statrows.0.sys_notes %]
+[% END %] +

Branch: [% branch %][% IF statrows.size >= hm %] (last [% hm %] entries shown)[% END %]

+[% BLOCK stdet %] + + [%- row.when_ago | replace('\s',' ') %] ago  + [% row.stage -%] + + [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%] + + +[% END %] + + [% FOREACH offset IN [0,1,2] %][% low = offset * statrows.size / 3 ; high = -1 + (offset + 1) * statrows.size / 3 %] + [% TRY %][% PERL %] + use POSIX qw(floor); + $stash->set(low => floor($stash->get('low'))); + $stash->set(high => floor($stash->get('high'))); + [% END %][% CATCH %] [% END %] + + [% END %] +
+ [% FOREACH xrow IN statrows.slice(low,high) %][% PROCESS stdet row=xrow %][% END %] +
+[% END %] diff --git a/templates/index.tt b/templates/index.tt new file mode 100644 index 0000000..ad99339 --- /dev/null +++ b/templates/index.tt @@ -0,0 +1,38 @@ +[%# + + Use this template to generate the index page, with something like: + + tpage index.tt > ../htdocs/index.html + +-%] +[% WRAPPER 'page.tt' + title = 'PostgreSQL BuildFarm' + bodyclass = 'none' + pagebutton = 'home' +%] + +

+The PostgreSQL build farm is a distributed system for automatically testing +changes in the source code for PostgreSQL as they occur, on a wide variety +of platforms. This server is the central repository for the results of those +tests. +

+

+To see the current status of tests on various branches, check the +Status Page. +

+

+If you are interested in running a member of the build farm, then please visit +the Registration Page. +We are particularly interested in unusual platforms or combinations of +architecture, operating system and compiler. +

+

To see what is involved in running a buildfarm member, please +read http://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto. +The client code can be found at the +project page at +PGFoundry. +

+

The build farm software should run on all platforms that can support PostgreSQL. +

+[% END %] diff --git a/templates/log.tt b/templates/log.tt new file mode 100644 index 0000000..da255f2 --- /dev/null +++ b/templates/log.tt @@ -0,0 +1,103 @@ +[% PERL %] + use POSIX qw(ceil); + my $lrfactor = 6; + $stash->set(lrfactor => $lrfactor); + my $rows = $stash->get('log_file_names'); + my $logrows = ceil(scalar(@$rows)/$lrfactor); + my $logcells = $lrfactor * $logrows; + $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 -%] +[% + cvsurl = 'http://anoncvs.postgresql.org/cvsweb.cgi'; + giturl = scmurl || 'http://git.postgresql.org/gitweb?p=postgresql.git;a=commit;h='; +-%] +[% WRAPPER 'page.tt' + title = mytitle + bodyclass = 'none' + pagebutton = 'none' +%] +

PostgreSQL Build Farm Log

+

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

+ + + + + + + + + + + + + + + + + + +
System InformationFarm memberBranchOSCompilerArchitectureOwner
[% system %][% branch %][% info_row.operating_system %] [% info_row.os_version %][% info_row.compiler %] [% info_row.compiler_version %][% info_row.architecture %][% info_row.owner_email %]
+[% IF info_row.sys_notes %] +
+ + + + + + + + + + +
System NotesDateNotes
[% info_row.sys_notes_date %][% info_row.sys_notes %]
+[% END %] +[% cell = 0; FOREACH logstage IN log_file_names ; striplog = logstage.replace('\.log$','') ; cell = loop.count %] + [% IF loop.first %] +
+ [% END %] + [% IF loop.count > 1 and loop.count % lrfactor == 1 %][% END %] + + [% IF loop.count % lrfactor == 0 %][% END %] +[% END %] + +[% IF cell > 0 ; nrcell = cell + 1; ncells = [ nrcell .. logcells ] ; FOREACH rcell IN ncells %] + [% IF rcell > 1 and rcell % lrfactor == 1 %][% END %] + + [% IF rcell % lrfactor == 0 %][% END %] + [% END %] +
Stage Logs
[% striplog %]
 
+[% END %] + +

Configuration summary

+
+[% conf | html %]
+
+

Files changed this run

+
+[%- IF changed_this_run.0 -%]
+[%- FOREACH changed IN changed_this_run %]
+[% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %]
+[%- END -%]
+[%- ELSE %]
+not recorded
+[% END -%]
+
+[% IF stage != 'OK' %] +

Files changed since last success

+
+[%- IF changed_since_success.0 %]
+[%- FOREACH changed IN changed_since_success %]
+[% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %]
+[%- END -%]
+[%- ELSE %]
+not recorded
+[% END -%]
+
+[% END %] +

Log

+
+[% log | html %]
+
+[% END %] diff --git a/templates/members.tt b/templates/members.tt new file mode 100644 index 0000000..d55e7a5 --- /dev/null +++ b/templates/members.tt @@ -0,0 +1,70 @@ +[% WRAPPER 'page.tt' + title = 'PostgreSQL BuildFarm Members' + bodyclass = 'members' + pagebutton = 'members' +%] +

PostgreSQL BuildFarm Members

+

Click branch links to see build history. Click the heading links to resort the list. Select members by checkbox and hit the button at the bottom to create a status custom filter.

+
+ + + + + + + + + +[% alt = true %] +[% FOREACH row IN statrows ; + have_recent = 0; + FOREACH branch_days IN row.branches.split(',') ; + branch_fields = branch_days.split(':'); + branch_day = branch_fields.1; + IF branch_day < 365 ; have_recent = 1; END; + END; + IF have_recent ; +%] + [% alt = ! alt %] + + + + + + + +[% END; END %] +
 Name
Owner
OS / VersionCompiler / VersionArchBranches reported on
(most recent report)
[% row.name %]
[% row.owner_email %] +[% IF row.sys_notes %] +
+ Notes: ([% row.sys_notes_date %]) [% row.sys_notes %] +[% END %] +
[% row.operating_system %]
[% row.os_version %] + [% prev_osver = row.osversion; + FOREACH personality IN row.personalities; + IF personality.os_version != prev_osver + %] +
w.e.f. [% personality.effective_date %]: [% personality.os_version %] + [% prev_osver = personality.os_version; END; END %] +
[% row.compiler %]
[% row.compiler_version %] + [% prev_compver = row.compiler_version; + FOREACH personality IN row.personalities; + IF personality.compiler_version != prev_compver + %] +
w.e.f. [% personality.effective_date %]: [% personality.compiler_version %] + [% prev_compver = personality.compiler_version; END; END %] +
[% row.arch %][% IF ! row.branches ; ' ' ; END -%] +
    + [%- + FOREACH branch_days IN row.branches.split(',') ; + branch_fields = branch_days.split(':'); + branch = branch_fields.0; + branch_day = branch_fields.1; + IF branch_day < 365 ; + %]
  • [% branch %] ([% branch_day %] days ago)
  • [% END; END %]
+ +
+[% END %] diff --git a/templates/page.tt b/templates/page.tt new file mode 100644 index 0000000..f00da9b --- /dev/null +++ b/templates/page.tt @@ -0,0 +1,39 @@ + + + + + [% title %] + + + + + +
+ +
+ [% content %] +
+
+

+ Hosting for the PostgreSQL Buildfarm is generously + provided by: + CommandPrompt, The PostgreSQL Company +

+
+ + diff --git a/templates/register-form.tt b/templates/register-form.tt new file mode 100644 index 0000000..0f4f82b --- /dev/null +++ b/templates/register-form.tt @@ -0,0 +1,72 @@ +[% WRAPPER 'page.tt' + title = 'PostgreSQL BuildFarm Application' + bodyclass = 'application' + pagebutton = 'register' +%] +

Application to join PostgreSQL BuildFarm

+ +

Here is a short description of what is required to join the buildfarm successfully. Please read it carefully +before submitting this form.

+ + +
+ +

Please complete all items.

+

For Linux, please specify the name and version of the Distribution for the Operating Systems items. +Do not use the name "Linux". For example, for my test machine the Operating +Systems is "Fedora Core" and the version is "4".

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Operating System
OS Version
Compiler
Compiler Version
Architecture
Your name
Your email address
[% captcha %]
+
+[% END %] diff --git a/templates/register-incomplete.tt b/templates/register-incomplete.tt new file mode 100644 index 0000000..bc73f41 --- /dev/null +++ b/templates/register-incomplete.tt @@ -0,0 +1,9 @@ +[% WRAPPER 'page.tt' + title = 'PostgreSQL BuildFarm Application' + bodyclass = 'application' + pagebutton = 'none' +%] +

You need to complete all the form items. +Please click here to try again. +

+[% END %] diff --git a/templates/register-ok.tt b/templates/register-ok.tt new file mode 100644 index 0000000..fdfea96 --- /dev/null +++ b/templates/register-ok.tt @@ -0,0 +1,8 @@ +[% WRAPPER 'page.tt' + title = 'PostgreSQL BuildFarm Application' + bodyclass = 'application' + pagebutton = 'none' +%] +

PostgreSQL BuildFarm Application received

\ +

Thank you. You should hear from us shortly.

+[% END %] diff --git a/templates/status.tt b/templates/status.tt new file mode 100644 index 0000000..875c988 --- /dev/null +++ b/templates/status.tt @@ -0,0 +1,78 @@ +[% + flag_imgs = { + perl = '/img/camel.png', + python = '/img/python.png', + debug = '/img/bug.png', + pam => '/img/pam.png', + cassert => '/img/cassert.png', + openssl => '/img/ssl_icon.gif', + nls => '/img/translateicon.gif', + krb5 => '/img/krb.gif', + tcl => '/img/tcl.png', + vpath => '/img/vpath.png', + xml => '/img/xml.png', + 'thread-safety' => '/img/threads.gif', + 'integer-datetimes' = '/img/days.png', + git => '/img/git.png', + } +-%] +[%- BLOCK img ; IF flag == 'depend' or flag == 'gnu-ld' ; ; ELSIF flag_imgs.$flag %][% flag %] [% ELSE %][%# + flag ; ' ' +%][% END ; END -%] +[%- BLOCK sysnotes ; IF row.sys_notes %] +[%- ELSE %] [% END ; END -%] +[%- BLOCK cl %] class="[% SWITCH bgfor.replace('-.*','') -%] + [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" +[%- END -%] +[% WRAPPER 'page.tt' + title = 'PostgreSQL BuildFarm Status' + bodyclass = 'none' + pagebutton = 'status' +%] +

PostgreSQL BuildFarm Status

+

+ Shown here is the latest status of each farm member + for each branch it has reported on in the last 30 days. +

+

+ Use the farm member link for history of that member + on the relevant branch. +

+ +[% FOREACH flagset IN flag_imgs %] + +[% IF loop.count == 7 %][% END %] +[% END %] +
Legend[% flagset.key %] = [% flagset.key %]
+
+ +[% brch = "" %] +[% FOREACH row IN statrows %] +[% IF row.branch != brch ; brch = row.branch %] + + +[% END %] + + + + + + + + +[% END %] +
Branch: [% brch %]
AliasSystemStatusFlags
[% row.sysname %][% PROCESS sysnotes %][% row.operating_system %] + [% row.os_version %] + [%- row.compiler %] + [% row.compiler_version %] + [%- row.architecture %] + [%- row.when_ago | replace('\s',' ') %] ago  + [% row.stage -%] + + [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%][% FOREACH flag IN row.build_flags.split().sort() ; PROCESS img ; END %]
+[% END %] diff --git a/trunk/templates/bfwrapper.tt.ttc b/trunk/templates/bfwrapper.tt.ttc deleted file mode 100644 index 19faeb3..0000000 --- a/trunk/templates/bfwrapper.tt.ttc +++ /dev/null @@ -1,32 +0,0 @@ -#------------------------------------------------------------------------ -# Compiled template generated by the Template Toolkit version 2.14 -#------------------------------------------------------------------------ - -Template::Document->new({ - METADATA => { - 'modtime' => '1107104454', - 'name' => 'bfwrapper.tt', - }, - BLOCK => sub { - my $context = shift || die "template sub called without context\n"; - my $stash = $context->stash; - my $output = ''; - my $error; - - eval { BLOCK: { - $output .= "\n\n\n \n PostgreSQL BuildFarm Status\n \n \n\n\n
\n\n
\n"; - #line 38 "/home/community/pgbuildfarm/templates/bfwrapper.tt" - $output .= $stash->get('content'); - $output .= "\n
\n
\n \n\n"; - } }; - if ($@) { - $error = $context->catch($@, \$output); - die $error unless $error->type eq 'return'; - } - - return $output; - }, - DEFBLOCKS => { - - }, -}); diff --git a/trunk/templates/dashboard.tt.ttc b/trunk/templates/dashboard.tt.ttc deleted file mode 100644 index 91c772a..0000000 --- a/trunk/templates/dashboard.tt.ttc +++ /dev/null @@ -1,312 +0,0 @@ -#------------------------------------------------------------------------ -# Compiled template generated by the Template Toolkit version 2.14 -#------------------------------------------------------------------------ - -Template::Document->new({ - METADATA => { - 'modtime' => '1127835909', - 'name' => 'dashboard.tt', - }, - BLOCK => sub { - my $context = shift || die "template sub called without context\n"; - my $stash = $context->stash; - my $output = ''; - my $error; - - eval { BLOCK: { - #line 1 "/home/community/pgbuildfarm/templates/dashboard.tt" - $stash->set('flag_imgs', { 'perl' => '/img/camel.png', 'python' => '/img/python.png', 'debug' => '/img/bug.png', 'pam' => '/img/pam.png', 'cassert' => '/img/cassert.png', 'openssl' => '/img/ssl_icon.gif', 'nls' => '/img/translateicon.gif', 'krb5' => '/img/krb.gif', 'tcl' => '/img/tcl.png', 'thread-safety' => '/img/threads.gif', 'integer-datetimes' => '/img/days.png' }); - - - $output .= "\n
\n

PostgreSQL BuildFarm Status

\n

\n Shown here is the latest status of each farm member \n for each branch it has reported on in the last 30 days.\n

\n

\n Use the farm member link for history of that member \n on the relevant branch.\n

\n\n"; - #line 45 "/home/community/pgbuildfarm/templates/dashboard.tt" - - # FOREACH - do { - my ($value, $error, $oldloop); - my $list = $stash->get('flag_imgs'); - - unless (UNIVERSAL::isa($list, 'Template::Iterator')) { - $list = Template::Config->iterator($list) - || die $Template::Config::ERROR, "\n"; - } - - ($value, $error) = $list->get_first(); - eval { $oldloop = $stash->get('loop') }; - $stash->set('loop', $list); - eval { - LOOP: while (! $error) { - $stash->{'flagset'} = $value; - $output .= "\n\n"; - #line 44 "/home/community/pgbuildfarm/templates/dashboard.tt" - if ($stash->get(['loop', 0, 'count', 0]) eq 5) { - $output .= ""; - } - - $output .= "\n";; - ($value, $error) = $list->get_next(); - } - }; - $stash->set('loop', $oldloop); - die $@ if $@; - $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; - die $error if $error; - }; - - $output .= "\n
Legendget(['flagset', 0, 'value', 0]); - $output .= "\" title=\""; - #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['flagset', 0, 'key', 0]); - $output .= "\" alt=\""; - #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['flagset', 0, 'key', 0]); - $output .= "\" height=\"16\" width=\"16\" class=\"inline\" align=\"center\"/> = "; - #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['flagset', 0, 'key', 0]); - $output .= "
\n
\n \n"; - #line 49 "/home/community/pgbuildfarm/templates/dashboard.tt" - $stash->set('brch', ''); - $output .= "\n"; - #line 81 "/home/community/pgbuildfarm/templates/dashboard.tt" - - # FOREACH - do { - my ($value, $error, $oldloop); - my $list = $stash->get('statrows'); - - unless (UNIVERSAL::isa($list, 'Template::Iterator')) { - $list = Template::Config->iterator($list) - || die $Template::Config::ERROR, "\n"; - } - - ($value, $error) = $list->get_first(); - eval { $oldloop = $stash->get('loop') }; - $stash->set('loop', $list); - eval { - LOOP: while (! $error) { - $stash->{'row'} = $value; - $output .= "\n"; - #line 54 "/home/community/pgbuildfarm/templates/dashboard.tt" - if ($stash->get(['row', 0, 'branch', 0]) ne $stash->get('brch')) { - #line 51 "/home/community/pgbuildfarm/templates/dashboard.tt" - $stash->set('brch', $stash->get(['row', 0, 'branch', 0])); - $output .= "\n\n\n"; - } - - $output .= "\nprocess('cl', { 'bgfor' => $stash->get(['row', 0, 'stage', 0]) }); - $output .= ">\n \n \n \n\n \n\n";; - ($value, $error) = $list->get_next(); - } - }; - $stash->set('loop', $oldloop); - die $@ if $@; - $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; - die $error if $error; - }; - - $output .= "\n
Branch: "; - #line 52 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get('brch'); - $output .= "
AliasSystemStatusFlags
get(['row', 0, 'sysname', 0]); - $output .= "&br="; - #line 57 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['row', 0, 'branch', 0]); - $output .= "\"\n title=\"History\"\n >"; - #line 59 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['row', 0, 'sysname', 0]); - $output .= ""; - #line 60 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['row', 0, 'operating_system', 0]); - $output .= "\n "; - #line 61 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['row', 0, 'os_version', 0]); - $output .= " "; - #line 63 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['row', 0, 'compiler', 0]); - $output .= "\n "; - #line 64 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['row', 0, 'compiler_version', 0]); - $output .= " "; - #line 66 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['row', 0, 'architecture', 0]); - $output .= ""; - #line 69 "/home/community/pgbuildfarm/templates/dashboard.tt" - - # FILTER - $output .= do { - my $output = ''; - my $filter = $context->filter('replace', [ '\s', ' ' ]) - || $context->throw($context->error); - - $output .= $stash->get(['row', 0, 'when_ago', 0]); - - &$filter($output); - }; - - $output .= " ago \n "; - #line 70 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get(['row', 0, 'stage', 0]); - $output .= " get(['row', 0, 'sysname', 0]); - $output .= "&dt="; - #line 75 "/home/community/pgbuildfarm/templates/dashboard.tt" - - # FILTER - $output .= do { - my $output = ''; - my $filter = $context->filter('uri') - || $context->throw($context->error); - - $output .= $stash->get(['row', 0, 'snapshot', 0]); - - &$filter($output); - }; - - $output .= "\">"; - #line 77 "/home/community/pgbuildfarm/templates/dashboard.tt" - if ($stash->get(['row', 0, 'stage', 0]) ne 'OK') { - $output .= "Details"; - } - else { - $output .= "Config"; - } - - $output .= ""; - #line 79 "/home/community/pgbuildfarm/templates/dashboard.tt" - - # FOREACH - do { - my ($value, $error, $oldloop); - my $list = $stash->get(['row', 0, 'build_flags', 0, 'split', 0, 'sort', 0]); - - unless (UNIVERSAL::isa($list, 'Template::Iterator')) { - $list = Template::Config->iterator($list) - || die $Template::Config::ERROR, "\n"; - } - - ($value, $error) = $list->get_first(); - eval { $oldloop = $stash->get('loop') }; - $stash->set('loop', $list); - eval { - LOOP: while (! $error) { - $stash->{'flag'} = $value; - #line 79 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $context->process('img');; - ($value, $error) = $list->get_next(); - } - }; - $stash->set('loop', $oldloop); - die $@ if $@; - $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; - die $error if $error; - }; - - $output .= "
\n
\n\n"; - } }; - if ($@) { - $error = $context->catch($@, \$output); - die $error unless $error->type eq 'return'; - } - - return $output; - }, - DEFBLOCKS => { - 'cl' => sub { - my $context = shift || die "template sub called without context\n"; - my $stash = $context->stash; - my $output = ''; - my $error; - - eval { BLOCK: { - $output .= " class=\""; - #line 27 "/home/community/pgbuildfarm/templates/dashboard.tt" - - # SWITCH - do { - my $result = $stash->get('bgfor'); - my $match; - SWITCH: { - $match = 'OK'; - $match = [ $match ] unless ref $match eq 'ARRAY'; - if (grep(/^$result$/, @$match)) { - $output .= "pass"; - last SWITCH; - } - $match = 'ContribCheck'; - $match = [ $match ] unless ref $match eq 'ARRAY'; - if (grep(/^$result$/, @$match)) { - $output .= "warn"; - last SWITCH; - } - $match = [ 'Check', 'InstallCheck' ]; - $match = [ $match ] unless ref $match eq 'ARRAY'; - if (grep(/^$result$/, @$match)) { - $output .= "warnx"; - last SWITCH; - } - $output .= "fail"; - } - }; - - $output .= "\""; - } }; - if ($@) { - $error = $context->catch($@, \$output); - die $error unless $error->type eq 'return'; - } - - return $output; - }, - 'img' => sub { - my $context = shift || die "template sub called without context\n"; - my $stash = $context->stash; - my $output = ''; - my $error; - - eval { BLOCK: { - #line 22 "/home/community/pgbuildfarm/templates/dashboard.tt" - if ($stash->get('flag') eq 'depend' || $stash->get('flag') eq 'gnu-ld') { - - } - elsif ($stash->get(['flag_imgs', 0, $stash->get('flag'), 0])) { - #line 22 "/home/community/pgbuildfarm/templates/dashboard.tt" - - # FILTER - $output .= do { - my $output = ''; - my $filter = $context->filter('collapse') - || $context->throw($context->error); - - $output .= "get(['flag_imgs', 0, $stash->get('flag'), 0]); - $output .= "\" \n title=\""; - #line 20 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get('flag'); - $output .= "\" alt=\""; - #line 20 "/home/community/pgbuildfarm/templates/dashboard.tt" - $output .= $stash->get('flag'); - $output .= "\" \n height=\"16\" width=\"16\" class=\"inline\" align=\"bottom\" /> \n "; - - &$filter($output); - }; - - } - - } }; - if ($@) { - $error = $context->catch($@, \$output); - die $error unless $error->type eq 'return'; - } - - return $output; - }, - }, -}); diff --git a/trunk/templates/dyn/history.tt b/trunk/templates/dyn/history.tt deleted file mode 100644 index 4713047..0000000 --- a/trunk/templates/dyn/history.tt +++ /dev/null @@ -1,69 +0,0 @@ -[%- BLOCK cl %] class="[% SWITCH bgfor -%] - [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" -[%- END -%] - - - - - PostgreSQL BuildFarm History - - - - -
- -
-

PostgreSQL BuildFarm Status History

- - - - - - - - -
System Detail
Farm member[% member %]
OS[% statrows.0.operating_system %] [% statrows.0.os_version %]
Compiler[% statrows.0.compiler %] [% statrows.0.compiler_version %]
Architecture[% statrows.0.architecture %]
-

Branch: [% branch %][% IF statrows.size >= 240 %] (last 240 entries shown)[% END %]

-[% BLOCK stdet %] - - [%- row.when_ago | replace('\s',' ') %] ago  - [% row.stage -%] - - [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%] - - -[% END %] - -[% FOREACH offset IN [0,1,2] %][% low = offset * statrows.size / 3 ; high = -1 + (offset + 1) * statrows.size / 3 %] -[% TRY %][% PERL %] - use POSIX qw(floor); - $stash->set(low => floor($stash->get('low'))); - $stash->set(high => floor($stash->get('high'))); -[% END %][% CATCH %] [% END %] - -[% END %] -
- - [% FOREACH xrow IN statrows.slice(low,high) %][% PROCESS stdet row=xrow %][% END %] -
-
-
- - diff --git a/trunk/templates/dyn/status.tt b/trunk/templates/dyn/status.tt deleted file mode 100644 index f17e415..0000000 --- a/trunk/templates/dyn/status.tt +++ /dev/null @@ -1,80 +0,0 @@ -[%- BLOCK cl %] class=" [% SWITCH bgfor -%] - [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" -[%- END -%] - - - - - PostgreSQL BuildFarm Status - - - - -
- -
-

PostgreSQL BuildFarm Status

-

- Shown here is the latest status of each farm member - for each branch it has reported on in the last 30 days. -

-

- Use the farm member link for history of that member - on the relevant branch. -

- -[% brch = "" %] -[% FOREACH row IN statrows %] -[% IF row.branch != brch ; brch = row.branch %] - - -[% END %] - - - - - - -[% END %] -
Branch: [% brch %]
AliasSystemStatus
[% row.sysname %][% row.operating_system %] - [% row.os_version %] - [%- row.compiler %] - [% row.compiler_version %] - [%- row.architecture %] - [%- row.when_ago | replace('\s',' ') %] ago  - [% row.stage -%] - - [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%]
-
-
- - - - - - - - - - diff --git a/trunk/templates/history.tt b/trunk/templates/history.tt deleted file mode 100644 index dd050ed..0000000 --- a/trunk/templates/history.tt +++ /dev/null @@ -1,56 +0,0 @@ -[%- BLOCK cl %] class="[% SWITCH bgfor -%] - [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" -[%- END -%] -[% WRAPPER 'page.tt' - title = 'PostgreSQL BuildFarm History' - bodyclass = 'history' - pagebutton = 'none' -%] -

PostgreSQL BuildFarm Status History

- - - - - - - -
System Detail
Farm member[% member %]
OS[% statrows.0.operating_system %] [% statrows.0.os_version %]
Compiler[% statrows.0.compiler %] [% statrows.0.compiler_version %]
Architecture[% statrows.0.architecture %]
Owner[% statrows.0.owner_email %]
-[% IF statrows.0.sys_notes %] -
- - - - - - - - - - -
System NotesDateNotes
[% statrows.0.sys_notes_date %][% statrows.0.sys_notes %]
-[% END %] -

Branch: [% branch %][% IF statrows.size >= hm %] (last [% hm %] entries shown)[% END %]

-[% BLOCK stdet %] - - [%- row.when_ago | replace('\s',' ') %] ago  - [% row.stage -%] - - [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%] - - -[% END %] - - [% FOREACH offset IN [0,1,2] %][% low = offset * statrows.size / 3 ; high = -1 + (offset + 1) * statrows.size / 3 %] - [% TRY %][% PERL %] - use POSIX qw(floor); - $stash->set(low => floor($stash->get('low'))); - $stash->set(high => floor($stash->get('high'))); - [% END %][% CATCH %] [% END %] - - [% END %] -
- [% FOREACH xrow IN statrows.slice(low,high) %][% PROCESS stdet row=xrow %][% END %] -
-[% END %] diff --git a/trunk/templates/index.tt b/trunk/templates/index.tt deleted file mode 100644 index ad99339..0000000 --- a/trunk/templates/index.tt +++ /dev/null @@ -1,38 +0,0 @@ -[%# - - Use this template to generate the index page, with something like: - - tpage index.tt > ../htdocs/index.html - --%] -[% WRAPPER 'page.tt' - title = 'PostgreSQL BuildFarm' - bodyclass = 'none' - pagebutton = 'home' -%] - -

-The PostgreSQL build farm is a distributed system for automatically testing -changes in the source code for PostgreSQL as they occur, on a wide variety -of platforms. This server is the central repository for the results of those -tests. -

-

-To see the current status of tests on various branches, check the -Status Page. -

-

-If you are interested in running a member of the build farm, then please visit -the Registration Page. -We are particularly interested in unusual platforms or combinations of -architecture, operating system and compiler. -

-

To see what is involved in running a buildfarm member, please -read http://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto. -The client code can be found at the -project page at -PGFoundry. -

-

The build farm software should run on all platforms that can support PostgreSQL. -

-[% END %] diff --git a/trunk/templates/log.tt b/trunk/templates/log.tt deleted file mode 100644 index da255f2..0000000 --- a/trunk/templates/log.tt +++ /dev/null @@ -1,103 +0,0 @@ -[% PERL %] - use POSIX qw(ceil); - my $lrfactor = 6; - $stash->set(lrfactor => $lrfactor); - my $rows = $stash->get('log_file_names'); - my $logrows = ceil(scalar(@$rows)/$lrfactor); - my $logcells = $lrfactor * $logrows; - $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 -%] -[% - cvsurl = 'http://anoncvs.postgresql.org/cvsweb.cgi'; - giturl = scmurl || 'http://git.postgresql.org/gitweb?p=postgresql.git;a=commit;h='; --%] -[% WRAPPER 'page.tt' - title = mytitle - bodyclass = 'none' - pagebutton = 'none' -%] -

PostgreSQL Build Farm Log

-

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

- - - - - - - - - - - - - - - - - - -
System InformationFarm memberBranchOSCompilerArchitectureOwner
[% system %][% branch %][% info_row.operating_system %] [% info_row.os_version %][% info_row.compiler %] [% info_row.compiler_version %][% info_row.architecture %][% info_row.owner_email %]
-[% IF info_row.sys_notes %] -
- - - - - - - - - - -
System NotesDateNotes
[% info_row.sys_notes_date %][% info_row.sys_notes %]
-[% END %] -[% cell = 0; FOREACH logstage IN log_file_names ; striplog = logstage.replace('\.log$','') ; cell = loop.count %] - [% IF loop.first %] -
- [% END %] - [% IF loop.count > 1 and loop.count % lrfactor == 1 %][% END %] - - [% IF loop.count % lrfactor == 0 %][% END %] -[% END %] - -[% IF cell > 0 ; nrcell = cell + 1; ncells = [ nrcell .. logcells ] ; FOREACH rcell IN ncells %] - [% IF rcell > 1 and rcell % lrfactor == 1 %][% END %] - - [% IF rcell % lrfactor == 0 %][% END %] - [% END %] -
Stage Logs
[% striplog %]
 
-[% END %] - -

Configuration summary

-
-[% conf | html %]
-
-

Files changed this run

-
-[%- IF changed_this_run.0 -%]
-[%- FOREACH changed IN changed_this_run %]
-[% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %]
-[%- END -%]
-[%- ELSE %]
-not recorded
-[% END -%]
-
-[% IF stage != 'OK' %] -

Files changed since last success

-
-[%- IF changed_since_success.0 %]
-[%- FOREACH changed IN changed_since_success %]
-[% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %]
-[%- END -%]
-[%- ELSE %]
-not recorded
-[% END -%]
-
-[% END %] -

Log

-
-[% log | html %]
-
-[% END %] diff --git a/trunk/templates/members.tt b/trunk/templates/members.tt deleted file mode 100644 index d55e7a5..0000000 --- a/trunk/templates/members.tt +++ /dev/null @@ -1,70 +0,0 @@ -[% WRAPPER 'page.tt' - title = 'PostgreSQL BuildFarm Members' - bodyclass = 'members' - pagebutton = 'members' -%] -

PostgreSQL BuildFarm Members

-

Click branch links to see build history. Click the heading links to resort the list. Select members by checkbox and hit the button at the bottom to create a status custom filter.

-
- - - - - - - - - -[% alt = true %] -[% FOREACH row IN statrows ; - have_recent = 0; - FOREACH branch_days IN row.branches.split(',') ; - branch_fields = branch_days.split(':'); - branch_day = branch_fields.1; - IF branch_day < 365 ; have_recent = 1; END; - END; - IF have_recent ; -%] - [% alt = ! alt %] - - - - - - - -[% END; END %] -
 Name
Owner
OS / VersionCompiler / VersionArchBranches reported on
(most recent report)
[% row.name %]
[% row.owner_email %] -[% IF row.sys_notes %] -
- Notes: ([% row.sys_notes_date %]) [% row.sys_notes %] -[% END %] -
[% row.operating_system %]
[% row.os_version %] - [% prev_osver = row.osversion; - FOREACH personality IN row.personalities; - IF personality.os_version != prev_osver - %] -
w.e.f. [% personality.effective_date %]: [% personality.os_version %] - [% prev_osver = personality.os_version; END; END %] -
[% row.compiler %]
[% row.compiler_version %] - [% prev_compver = row.compiler_version; - FOREACH personality IN row.personalities; - IF personality.compiler_version != prev_compver - %] -
w.e.f. [% personality.effective_date %]: [% personality.compiler_version %] - [% prev_compver = personality.compiler_version; END; END %] -
[% row.arch %][% IF ! row.branches ; ' ' ; END -%] -
    - [%- - FOREACH branch_days IN row.branches.split(',') ; - branch_fields = branch_days.split(':'); - branch = branch_fields.0; - branch_day = branch_fields.1; - IF branch_day < 365 ; - %]
  • [% branch %] ([% branch_day %] days ago)
  • [% END; END %]
- -
-[% END %] diff --git a/trunk/templates/page.tt b/trunk/templates/page.tt deleted file mode 100644 index f00da9b..0000000 --- a/trunk/templates/page.tt +++ /dev/null @@ -1,39 +0,0 @@ - - - - - [% title %] - - - - - -
- -
- [% content %] -
-
-

- Hosting for the PostgreSQL Buildfarm is generously - provided by: - CommandPrompt, The PostgreSQL Company -

-
- - diff --git a/trunk/templates/register-form.tt b/trunk/templates/register-form.tt deleted file mode 100644 index 0f4f82b..0000000 --- a/trunk/templates/register-form.tt +++ /dev/null @@ -1,72 +0,0 @@ -[% WRAPPER 'page.tt' - title = 'PostgreSQL BuildFarm Application' - bodyclass = 'application' - pagebutton = 'register' -%] -

Application to join PostgreSQL BuildFarm

- -

Here is a short description of what is required to join the buildfarm successfully. Please read it carefully -before submitting this form.

- - -
- -

Please complete all items.

-

For Linux, please specify the name and version of the Distribution for the Operating Systems items. -Do not use the name "Linux". For example, for my test machine the Operating -Systems is "Fedora Core" and the version is "4".

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Operating System
OS Version
Compiler
Compiler Version
Architecture
Your name
Your email address
[% captcha %]
-
-[% END %] diff --git a/trunk/templates/register-incomplete.tt b/trunk/templates/register-incomplete.tt deleted file mode 100644 index bc73f41..0000000 --- a/trunk/templates/register-incomplete.tt +++ /dev/null @@ -1,9 +0,0 @@ -[% WRAPPER 'page.tt' - title = 'PostgreSQL BuildFarm Application' - bodyclass = 'application' - pagebutton = 'none' -%] -

You need to complete all the form items. -Please click here to try again. -

-[% END %] diff --git a/trunk/templates/register-ok.tt b/trunk/templates/register-ok.tt deleted file mode 100644 index fdfea96..0000000 --- a/trunk/templates/register-ok.tt +++ /dev/null @@ -1,8 +0,0 @@ -[% WRAPPER 'page.tt' - title = 'PostgreSQL BuildFarm Application' - bodyclass = 'application' - pagebutton = 'none' -%] -

PostgreSQL BuildFarm Application received

\ -

Thank you. You should hear from us shortly.

-[% END %] diff --git a/trunk/templates/status.tt b/trunk/templates/status.tt deleted file mode 100644 index 875c988..0000000 --- a/trunk/templates/status.tt +++ /dev/null @@ -1,78 +0,0 @@ -[% - flag_imgs = { - perl = '/img/camel.png', - python = '/img/python.png', - debug = '/img/bug.png', - pam => '/img/pam.png', - cassert => '/img/cassert.png', - openssl => '/img/ssl_icon.gif', - nls => '/img/translateicon.gif', - krb5 => '/img/krb.gif', - tcl => '/img/tcl.png', - vpath => '/img/vpath.png', - xml => '/img/xml.png', - 'thread-safety' => '/img/threads.gif', - 'integer-datetimes' = '/img/days.png', - git => '/img/git.png', - } --%] -[%- BLOCK img ; IF flag == 'depend' or flag == 'gnu-ld' ; ; ELSIF flag_imgs.$flag %][% flag %] [% ELSE %][%# - flag ; ' ' -%][% END ; END -%] -[%- BLOCK sysnotes ; IF row.sys_notes %] -[%- ELSE %] [% END ; END -%] -[%- BLOCK cl %] class="[% SWITCH bgfor.replace('-.*','') -%] - [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" -[%- END -%] -[% WRAPPER 'page.tt' - title = 'PostgreSQL BuildFarm Status' - bodyclass = 'none' - pagebutton = 'status' -%] -

PostgreSQL BuildFarm Status

-

- Shown here is the latest status of each farm member - for each branch it has reported on in the last 30 days. -

-

- Use the farm member link for history of that member - on the relevant branch. -

- -[% FOREACH flagset IN flag_imgs %] - -[% IF loop.count == 7 %][% END %] -[% END %] -
Legend[% flagset.key %] = [% flagset.key %]
-
- -[% brch = "" %] -[% FOREACH row IN statrows %] -[% IF row.branch != brch ; brch = row.branch %] - - -[% END %] - - - - - - - - -[% END %] -
Branch: [% brch %]
AliasSystemStatusFlags
[% row.sysname %][% PROCESS sysnotes %][% row.operating_system %] - [% row.os_version %] - [%- row.compiler %] - [% row.compiler_version %] - [%- row.architecture %] - [%- row.when_ago | replace('\s',' ') %] ago  - [% row.stage -%] - - [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%][% FOREACH flag IN row.build_flags.split().sort() ; PROCESS img ; END %]
-[% END %]