From 25cbcfcc0acd485873fb2e4005c489a56406e6f5 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sat, 18 Dec 2010 17:59:48 -0500 Subject: [PATCH] remove outdated artefacts --- templates/bfwrapper.tt.ttc | 32 ---- templates/dashboard.tt.ttc | 312 ------------------------------------- templates/dyn/history.tt | 69 -------- templates/dyn/status.tt | 80 ---------- 4 files changed, 493 deletions(-) delete mode 100644 templates/bfwrapper.tt.ttc delete mode 100644 templates/dashboard.tt.ttc delete mode 100644 templates/dyn/history.tt delete mode 100644 templates/dyn/status.tt diff --git a/templates/bfwrapper.tt.ttc b/templates/bfwrapper.tt.ttc deleted file mode 100644 index 19faeb3..0000000 --- a/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/templates/dashboard.tt.ttc b/templates/dashboard.tt.ttc deleted file mode 100644 index 91c772a..0000000 --- a/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/templates/dyn/history.tt b/templates/dyn/history.tt deleted file mode 100644 index 4713047..0000000 --- a/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/templates/dyn/status.tt b/templates/dyn/status.tt deleted file mode 100644 index f17e415..0000000 --- a/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 -%]
-
-
- - - - - - - - - - -- 2.30.2