--- /dev/null
+BuildFarmWeb.pl
foreach my $sysbranch (@last_heard)
{
- # not all versions of DBD::Pg decode modern bytea literals nicely. cope.
- $sysbranch->{config} =~ s/^(\\?x)([a-fA-F0-9]+)$/pack('H*',$2)/e;
-
-
my $client_conf = thaw $sysbranch->{config};
my %client_alert_settings = %{ $client_conf->{alerts} || {} };
--- /dev/null
+#!/usr/bin/perl
+
+=comment
+
+Copyright (c) 2003-2010, Andrew Dunstan
+
+See accompanying License file for license details
+
+=cut
+
+use strict;
+
+use vars qw($dbhost $dbname $dbuser $dbpass $dbport
+ $all_stat $fail_stat $change_stat $green_stat
+ $server_time
+ $min_script_version $min_web_script_version
+ $default_host $local_git_clone
+);
+
+# force this before we do anything - even load modules
+BEGIN { $server_time = time; }
+
+use CGI;
+use Digest::SHA1 qw(sha1_hex);
+use MIME::Base64;
+use DBI;
+use DBD::mysql;
+use Data::Dumper;
+use Mail::Send;
+use Time::ParseDate;
+use Storable qw(thaw);
+
+require "$ENV{BFConfDir}/BuildFarmWeb.pl";
+my $buildlogs = "$ENV{BFConfDir}/buildlogs";
+
+die "no dbname" unless $dbname;
+die "no dbuser" unless $dbuser;
+
+my $dsn="dbi:mysql:dbname=$dbname";
+$dsn .= ";host=$dbhost" if $dbhost;
+$dsn .= ";port=$dbport" if $dbport;
+
+my $query = new CGI;
+
+my $sig = $query->path_info;
+$sig =~ s!^/!!;
+
+my $stage = $query->param('stage');
+my $ts = $query->param('ts');
+my $animal = $query->param('animal');
+my $log = $query->param('log');
+my $res = $query->param('res');
+my $conf = $query->param('conf');
+my $branch = $query->param('branch');
+my $changed_since_success = $query->param('changed_since_success');
+my $changed_this_run = $query->param('changed_files');
+my $log_archive = $query->param('logtar');
+my $frozen_sconf = $query->param('frozen_sconf') || '';
+
+my $brhandle;
+if (open($brhandle,"../htdocs/branches_of_interest.txt"))
+{
+ my @branches_of_interest = <$brhandle>;
+ close($brhandle);
+ chomp(@branches_of_interest);
+ unless (grep {$_ eq $branch} @branches_of_interest)
+ {
+ print
+ "Status: 492 bad branch parameter $branch\nContent-Type: text/plain\n\n",
+ "bad branch parameter $branch\n";
+ exit;
+ }
+}
+
+
+my $content =
+ "branch=$branch&res=$res&stage=$stage&animal=$animal&".
+ "ts=$ts&log=$log&conf=$conf";
+
+my $extra_content =
+ "changed_files=$changed_this_run&".
+ "changed_since_success=$changed_since_success&";
+
+unless ($animal && $ts && $stage && $sig)
+{
+ print
+ "Status: 490 bad parameters\nContent-Type: text/plain\n\n",
+ "bad parameters for request\n";
+ exit;
+
+}
+
+unless ($branch =~ /^(HEAD|REL\d+_\d+_STABLE)$/)
+{
+ print
+ "Status: 492 bad branch parameter $branch\nContent-Type: text/plain\n\n",
+ "bad branch parameter $branch\n";
+ exit;
+
+}
+
+
+my $db = DBI->connect($dsn,$dbuser,$dbpass);
+
+die $DBI::errstr unless $db;
+
+my $gethost=
+ "select secret from buildsystems where name = ? and status = 'approved'";
+my $sth = $db->prepare($gethost);
+$sth->execute($animal);
+my ($secret)=$sth->fetchrow_array();
+$sth->finish;
+
+my $tsdiff = time - $ts;
+
+my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($ts);
+$year += 1900; $mon +=1;
+my $date=
+ sprintf("%d-%.2d-%.2d_%.2d:%.2d:%.2d",$year,$mon,$mday,$hour,$min,$sec);
+
+if ($ENV{BF_DEBUG} || ($ts > time) || ($ts + 86400 < time ) || (! $secret) )
+{
+ open(TX,">$buildlogs/$animal.$date");
+ print TX "sig=$sig\nlogtar-len=" , length($log_archive),
+ "\nstatus=$res\nstage=$stage\nconf:\n$conf\n",
+ "tsdiff:$tsdiff\n",
+ "changed_this_run:\n$changed_this_run\n",
+ "changed_since_success:\n$changed_since_success\n",
+ "frozen_sconf:$frozen_sconf\n",
+ "log:\n",$log;
+# $query->save(\*TX);
+ close(TX);
+}
+
+unless ($ts < time + 120)
+{
+ my $gmt = gmtime($ts);
+ print "Status: 491 bad ts parameter - $ts ($gmt GMT) is in the future.\n",
+ "Content-Type: text/plain\n\n bad ts parameter - $ts ($gmt GMT) is in the future\n";
+ $db->disconnect;
+ exit;
+}
+
+unless ($ts + 86400 > time)
+{
+ my $gmt = gmtime($ts);
+ print "Status: 491 bad ts parameter - $ts ($gmt GMT) is more than 24 hours ago.\n",
+ "Content-Type: text/plain\n\n bad ts parameter - $ts ($gmt GMT) is more than 24 hours ago.\n";
+ $db->disconnect;
+ exit;
+}
+
+unless ($secret)
+{
+ print
+ "Status: 495 Unknown System\nContent-Type: text/plain\n\n",
+ "System $animal is unknown\n";
+ $db->disconnect;
+ exit;
+
+}
+
+
+
+
+my $calc_sig = sha1_hex($content,$secret);
+my $calc_sig2 = sha1_hex($extra_content,$content,$secret);
+
+if ($calc_sig ne $sig && $calc_sig2 ne $sig)
+{
+
+ print "Status: 450 sig mismatch\nContent-Type: text/plain\n\n";
+ print "$sig mismatches $calc_sig($calc_sig2) on content:\n$content";
+ $db->disconnect;
+ exit;
+}
+
+# undo escape-proofing of base64 data and decode it
+map {tr/$@/+=/; $_ = decode_base64($_); }
+ ($log, $conf,$changed_this_run,$changed_since_success,$log_archive, $frozen_sconf);
+
+if ($log =~/Last file mtime in snapshot: (.*)/)
+{
+ my $snaptime = parsedate($1);
+ my $brch = $branch eq 'HEAD' ? 'master' : $branch;
+ my $last_branch_time = time - (30 * 86400);
+ $last_branch_time = `TZ=UTC GIT_DIR=$local_git_clone git log -1 --pretty=format:\%ct $brch`;
+ if ($snaptime < ($last_branch_time - 86400))
+ {
+ print "Status: 493 snapshot too old: $1\nContent-Type: text/plain\n\n";
+ print "snapshot to old: $1\n";
+ $db->disconnect;
+ exit;
+ }
+}
+
+($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($ts);
+$year += 1900; $mon +=1;
+my $dbdate=
+ sprintf("%d-%.2d-%.2d %.2d:%.2d:%.2d",$year,$mon,$mday,$hour,$min,$sec);
+
+my $log_file_names;
+my @log_file_names;
+my $dirname = "$buildlogs/tmp.$$.unpacklogs";
+
+my $githeadref;
+
+if ($log_archive)
+{
+ my $log_handle;
+ my $archname = "$buildlogs/tmp.$$.tgz";
+ open($log_handle,">$archname");
+ binmode $log_handle;
+ print $log_handle $log_archive;
+ close $log_handle;
+ mkdir $dirname;
+ @log_file_names = `tar -z -C $dirname -xvf $archname 2>/dev/null`;
+ map {s/\s+//g; } @log_file_names;
+ my @qnames = grep { $_ ne 'githead.log' } @log_file_names;
+ map { $_ = qq("$_"); } @qnames;
+ $log_file_names = '{' . join(',',@qnames) . '}';
+ if (-e "$dirname/githead.log" )
+ {
+ open(my $githead,"$dirname/githead.log");
+ $githeadref = <$githead>;
+ chomp $githeadref;
+ close $githead;
+ }
+ # unlink $archname;
+}
+
+my $config_flags;
+my $client_conf;
+if ($frozen_sconf)
+{
+ $client_conf = thaw $frozen_sconf;
+}
+
+if ($min_script_version)
+{
+ $client_conf->{script_version} ||= '0.0';
+ my $cli_ver = $client_conf->{script_version} ;
+ $cli_ver =~ s/^REL_//;
+ my ($minmajor,$minminor) = split(/\./,$min_script_version);
+ my ($smajor,$sminor) = split(/\./,$cli_ver);
+ if ($minmajor > $smajor || ($minmajor == $smajor && $minminor > $sminor))
+ {
+ print "Status: 460 script version too low\nContent-Type: text/plain\n\n";
+ print
+ "Script version is below minimum required\n",
+ "Reported version: $client_conf->{script_version},",
+ "Minumum version required: $min_script_version\n";
+ $db->disconnect;
+ exit;
+ }
+}
+
+if ($min_web_script_version)
+{
+ $client_conf->{web_script_version} ||= '0.0';
+ my $cli_ver = $client_conf->{web_script_version} ;
+ $cli_ver =~ s/^REL_//;
+ my ($minmajor,$minminor) = split(/\./,$min_web_script_version);
+ my ($smajor,$sminor) = split(/\./,$cli_ver);
+ if ($minmajor > $smajor || ($minmajor == $smajor && $minminor > $sminor))
+ {
+ print "Status: 461 web script version too low\nContent-Type: text/plain\n\n";
+ print
+ "Web Script version is below minimum required\n",
+ "Reported version: $client_conf->{web_script_version}, ",
+ "Minumum version required: $min_web_script_version\n"
+ ;
+ $db->disconnect;
+ exit;
+ }
+}
+
+my @config_flags;
+if (not exists $client_conf->{config_opts} )
+{
+ @config_flags = ();
+}
+elsif (ref $client_conf->{config_opts} eq 'HASH')
+{
+ # leave out keys with false values
+ @config_flags = grep { $client_conf->{config_opts}->{$_} }
+ keys %{$client_conf->{config_opts}};
+}
+elsif (ref $client_conf->{config_opts} eq 'ARRAY' )
+{
+ @config_flags = @{$client_conf->{config_opts}};
+}
+
+if (@config_flags)
+{
+ @config_flags = grep {! m/=/ } @config_flags;
+ map {s/\s+//g; $_=qq("$_"); } @config_flags;
+ push @config_flags,'git' if $client_conf->{scm} eq 'git';
+ $config_flags = '{' . join(',',@config_flags) . '}' ;
+}
+
+my $scm = $client_conf->{scm} || 'cvs';
+my $scmurl = $client_conf->{scm_url};
+
+my $logst = <<EOSQL;
+ insert into build_status
+ (sysname, snapshot,status, stage, log,conf_sum, branch,
+ changed_this_run, changed_since_success,
+ log_archive_filenames , log_archive, build_flags, scm, scmurl,
+ git_head_ref,frozen_conf)
+ values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
+EOSQL
+;
+
+
+# this transaction lets us set log_error_verbosity to terse
+# just for the duration of the transaction. That turns off logging the
+# bind params, so all the logs don't get stuffed on the postgres logs
+
+
+my $sqlres;
+$db->begin_work;
+$db->do("select set_local_error_terse()");
+
+
+$sth=$db->prepare($logst);
+
+$sth->bind_param(1,$animal);
+$sth->bind_param(2,$dbdate);
+$sth->bind_param(3,$res & 0x8fffffff); # in case we get a 64 bit int status!
+$sth->bind_param(4,$stage);
+$sth->bind_param(5,$log);
+$sth->bind_param(6,$conf);
+$sth->bind_param(7,$branch);
+$sth->bind_param(8,$changed_this_run);
+$sth->bind_param(9,$changed_since_success);
+$sth->bind_param(10,$log_file_names);
+#$sth->bind_param(11,$log_archive,{ pg_type => DBD::mysql::PG_BYTEA });
+$sth->bind_param(11,undef,{ pg_type => DBD::mysql::PG_BYTEA });
+$sth->bind_param(12,$config_flags);
+$sth->bind_param(13,$scm);
+$sth->bind_param(14,$scmurl);
+$sth->bind_param(15,$githeadref);
+$sth->bind_param(16,$frozen_sconf,{ pg_type => DBD::mysql::PG_BYTEA });
+
+$sqlres = $sth->execute;
+
+if ($sqlres)
+{
+
+ $sth->finish;
+
+ my $logst2 = q{
+
+ insert into build_status_log
+ (sysname, snapshot, branch, log_stage, log_text, stage_duration)
+ values (?, ?, ?, ?, ?, ?)
+
+ };
+
+ $sth = $db->prepare($logst2);
+
+ $/=undef;
+
+ my $stage_start = $ts;
+
+ foreach my $log_file( @log_file_names )
+ {
+ next if $log_file =~ /^githead/;
+ my $handle;
+ open($handle,"$dirname/$log_file");
+ my $mtime = (stat $handle)[9];
+ my $stage_interval = $mtime - $stage_start;
+ $stage_start = $mtime;
+ my $ltext = <$handle>;
+ close($handle);
+ $ltext =~ s/\x00/\\0/g;
+ $sqlres = $sth->execute($animal,$dbdate,$branch,$log_file,$ltext,
+ "$stage_interval seconds");
+ last unless $sqlres;
+ }
+
+ $sth->finish unless $sqlres;
+
+}
+
+if (! $sqlres)
+{
+
+ print "Status: 462 database failure\nContent-Type: text/plain\n\n";
+ print "Your report generated a database failure:\n",
+ $db->errstr,
+ "\n";
+ $db->rollback;
+ $db->disconnect;
+ exit;
+}
+
+
+$db->commit;
+
+my $prevst = <<EOSQL;
+
+ select coalesce((select distinct on (snapshot) stage
+ from build_status
+ where sysname = ? and branch = ? and snapshot < ?
+ order by snapshot desc
+ limit 1), 'NEW') as prev_status
+
+EOSQL
+
+$sth=$db->prepare($prevst);
+$sth->execute($animal,$branch,$dbdate);
+my $row=$sth->fetchrow_arrayref;
+my $prev_stat=$row->[0];
+$sth->finish;
+
+my $det_st = <<EOS;
+
+ select operating_system|| ' / ' || os_version as os ,
+ compiler || ' / ' || compiler_version as compiler,
+ architecture as arch
+ from buildsystems
+ where status = 'approved'
+ and name = ?
+
+EOS
+;
+$sth=$db->prepare($det_st);
+$sth->execute($animal);
+$row=$sth->fetchrow_arrayref;
+my ($os, $compiler,$arch) = @$row;
+$sth->finish;
+
+$db->begin_work;
+# prevent occasional duplication by forcing serialization of this operation
+$db->do("lock table dashboard_mat in share row exclusive mode");
+$db->do("delete from dashboard_mat");
+$db->do("insert into dashboard_mat select * from dashboard_mat_data");
+$db->commit;
+
+if ($stage ne 'OK')
+{
+ $db->begin_work;
+ # prevent occasional duplication by forcing serialization of this operation
+ $db->do("lock table nrecent_failures in share row exclusive mode");
+ $db->do("delete from nrecent_failures");
+ $db->do("insert into nrecent_failures select bs.sysname, bs.snapshot, bs.branch from build_status bs where bs.stage <> 'OK' and bs.snapshot > now() - interval '90 days'");
+ $db->commit;
+}
+
+$db->disconnect;
+
+print "Content-Type: text/plain\n\n";
+print "request was on:\n";
+print "res=$res&stage=$stage&animal=$animal&ts=$ts";
+
+my $client_events = $client_conf->{mail_events};
+
+if ($ENV{BF_DEBUG})
+{
+ my $client_time = $client_conf->{current_ts};
+ open(TX,">>$buildlogs/$animal.$date");
+ print TX "\n",Dumper(\$client_conf),"\n";
+ print TX "server time: $server_time, client time: $client_time\n" if $client_time;
+ close(TX);
+}
+
+my $bcc_stat = [];
+my $bcc_chg=[];
+if (ref $client_events)
+{
+ my $cbcc = $client_events->{all};
+ if (ref $cbcc)
+ {
+ push @$bcc_stat, @$cbcc;
+ }
+ elsif (defined $cbcc)
+ {
+ push @$bcc_stat, $cbcc;
+ }
+ if ($stage ne 'OK')
+ {
+ $cbcc = $client_events->{all};
+ if (ref $cbcc)
+ {
+ push @$bcc_stat, @$cbcc;
+ }
+ elsif (defined $cbcc)
+ {
+ push @$bcc_stat, $cbcc;
+ }
+ }
+ $cbcc = $client_events->{change};
+ if (ref $cbcc)
+ {
+ push @$bcc_chg, @$cbcc;
+ }
+ elsif (defined $cbcc)
+ {
+ push @$bcc_chg, $cbcc;
+ }
+ if ($stage eq 'OK' || $prev_stat eq 'OK')
+ {
+ $cbcc = $client_events->{green};
+ if (ref $cbcc)
+ {
+ push @$bcc_chg, @$cbcc;
+ }
+ elsif (defined $cbcc)
+ {
+ push @$bcc_chg, $cbcc;
+ }
+ }
+}
+
+
+my $url = $query->url(-base => 1);
+
+
+my $stat_type = $stage eq 'OK' ? 'Status' : 'Failed at Stage';
+
+my $mailto = [@$all_stat];
+push(@$mailto,@$fail_stat) if $stage ne 'OK';
+
+my $me = `id -un`; chomp($me);
+
+my $host = `hostname`; chomp ($host);
+$host = $default_host unless ($host =~ m/[.]/ || !defined($default_host));
+
+my $from_addr = "PG Build Farm <$me\@$host>";
+$from_addr =~ tr /\r\n//d;
+
+my $msg = new Mail::Send;
+
+
+$msg->to(@$mailto);
+$msg->bcc(@$bcc_stat) if (@$bcc_stat);
+$msg->subject("PGBuildfarm member $animal Branch $branch $stat_type $stage");
+$msg->set('From',$from_addr);
+my $fh = $msg->open;
+print $fh <<EOMAIL;
+
+
+The PGBuildfarm member $animal had the following event on branch $branch:
+
+$stat_type: $stage
+
+The snapshot timestamp for the build that triggered this notification is: $dbdate
+
+The specs of this machine are:
+OS: $os
+Arch: $arch
+Comp: $compiler
+
+For more information, see $url/cgi-bin/show_history.pl?nm=$animal&br=$branch
+
+EOMAIL
+
+$fh->close;
+
+exit if ($stage eq $prev_stat);
+
+$mailto = [@$change_stat];
+push(@$mailto,@$green_stat) if ($stage eq 'OK' || $prev_stat eq 'OK');
+
+$msg = new Mail::Send;
+
+
+$msg->to(@$mailto);
+$msg->bcc(@$bcc_chg) if (@$bcc_chg);
+
+$stat_type = $prev_stat ne 'OK' ? "changed from $prev_stat failure to $stage" :
+ "changed from OK to $stage";
+$stat_type = "New member: $stage" if $prev_stat eq 'NEW';
+$stat_type .= " failure" if $stage ne 'OK';
+
+$msg->subject("PGBuildfarm member $animal Branch $branch Status $stat_type");
+$msg->set('From',$from_addr);
+$fh = $msg->open;
+print $fh <<EOMAIL;
+
+The PGBuildfarm member $animal had the following event on branch $branch:
+
+Status $stat_type
+
+The snapshot timestamp for the build that triggered this notification is: $dbdate
+
+The specs of this machine are:
+OS: $os
+Arch: $arch
+Comp: $compiler
+
+For more information, see $url/cgi-bin/show_history.pl?nm=$animal&br=$branch
+
+EOMAIL
+
+$fh->close;
use SOAP::Lite ;
my $obj = SOAP::Lite
- ->uri('http://www.pgbuildfarm.org/PGBuildFarm')
- ->proxy('http://www.pgbuildfarm.org/cgi-bin/show_status_soap.pl')
+ ->uri('http://eximbuild.mrball.net/EximBuildFarm')
+ ->proxy('http://eximbuild.mrball.net/cgi-bin/show_status_soap.pl')
;
my $data = $obj->get_status->result;
+++ /dev/null
-#!/usr/bin/perl
-
-=comment
-
-Copyright (c) 2003-2010, Andrew Dunstan
-
-See accompanying License file for license details
-
-=cut
-
-use strict;
-
-use vars qw($dbhost $dbname $dbuser $dbpass $dbport
- $all_stat $fail_stat $change_stat $green_stat
- $server_time
- $min_script_version $min_web_script_version
- $default_host $local_git_clone
-);
-
-# force this before we do anything - even load modules
-BEGIN { $server_time = time; }
-
-use CGI;
-use Digest::SHA1 qw(sha1_hex);
-use MIME::Base64;
-use DBI;
-use DBD::Pg;
-use Data::Dumper;
-use Mail::Send;
-use Time::ParseDate;
-use Storable qw(thaw);
-
-require "$ENV{BFConfDir}/BuildFarmWeb.pl";
-my $buildlogs = "$ENV{BFConfDir}/buildlogs";
-
-die "no dbname" unless $dbname;
-die "no dbuser" unless $dbuser;
-
-my $dsn="dbi:Pg:dbname=$dbname";
-$dsn .= ";host=$dbhost" if $dbhost;
-$dsn .= ";port=$dbport" if $dbport;
-
-my $query = new CGI;
-
-my $sig = $query->path_info;
-$sig =~ s!^/!!;
-
-my $stage = $query->param('stage');
-my $ts = $query->param('ts');
-my $animal = $query->param('animal');
-my $log = $query->param('log');
-my $res = $query->param('res');
-my $conf = $query->param('conf');
-my $branch = $query->param('branch');
-my $changed_since_success = $query->param('changed_since_success');
-my $changed_this_run = $query->param('changed_files');
-my $log_archive = $query->param('logtar');
-my $frozen_sconf = $query->param('frozen_sconf') || '';
-
-my $brhandle;
-if (open($brhandle,"../htdocs/branches_of_interest.txt"))
-{
- my @branches_of_interest = <$brhandle>;
- close($brhandle);
- chomp(@branches_of_interest);
- unless (grep {$_ eq $branch} @branches_of_interest)
- {
- print
- "Status: 492 bad branch parameter $branch\nContent-Type: text/plain\n\n",
- "bad branch parameter $branch\n";
- exit;
- }
-}
-
-
-my $content =
- "branch=$branch&res=$res&stage=$stage&animal=$animal&".
- "ts=$ts&log=$log&conf=$conf";
-
-my $extra_content =
- "changed_files=$changed_this_run&".
- "changed_since_success=$changed_since_success&";
-
-unless ($animal && $ts && $stage && $sig)
-{
- print
- "Status: 490 bad parameters\nContent-Type: text/plain\n\n",
- "bad parameters for request\n";
- exit;
-
-}
-
-unless ($branch =~ /^(HEAD|REL\d+_\d+_STABLE)$/)
-{
- print
- "Status: 492 bad branch parameter $branch\nContent-Type: text/plain\n\n",
- "bad branch parameter $branch\n";
- exit;
-
-}
-
-
-my $db = DBI->connect($dsn,$dbuser,$dbpass);
-
-die $DBI::errstr unless $db;
-
-my $gethost=
- "select secret from buildsystems where name = ? and status = 'approved'";
-my $sth = $db->prepare($gethost);
-$sth->execute($animal);
-my ($secret)=$sth->fetchrow_array();
-$sth->finish;
-
-my $tsdiff = time - $ts;
-
-my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($ts);
-$year += 1900; $mon +=1;
-my $date=
- sprintf("%d-%.2d-%.2d_%.2d:%.2d:%.2d",$year,$mon,$mday,$hour,$min,$sec);
-
-if ($ENV{BF_DEBUG} || ($ts > time) || ($ts + 86400 < time ) || (! $secret) )
-{
- open(TX,">$buildlogs/$animal.$date");
- print TX "sig=$sig\nlogtar-len=" , length($log_archive),
- "\nstatus=$res\nstage=$stage\nconf:\n$conf\n",
- "tsdiff:$tsdiff\n",
- "changed_this_run:\n$changed_this_run\n",
- "changed_since_success:\n$changed_since_success\n",
- "frozen_sconf:$frozen_sconf\n",
- "log:\n",$log;
-# $query->save(\*TX);
- close(TX);
-}
-
-unless ($ts < time + 120)
-{
- my $gmt = gmtime($ts);
- print "Status: 491 bad ts parameter - $ts ($gmt GMT) is in the future.\n",
- "Content-Type: text/plain\n\n bad ts parameter - $ts ($gmt GMT) is in the future\n";
- $db->disconnect;
- exit;
-}
-
-unless ($ts + 86400 > time)
-{
- my $gmt = gmtime($ts);
- print "Status: 491 bad ts parameter - $ts ($gmt GMT) is more than 24 hours ago.\n",
- "Content-Type: text/plain\n\n bad ts parameter - $ts ($gmt GMT) is more than 24 hours ago.\n";
- $db->disconnect;
- exit;
-}
-
-unless ($secret)
-{
- print
- "Status: 495 Unknown System\nContent-Type: text/plain\n\n",
- "System $animal is unknown\n";
- $db->disconnect;
- exit;
-
-}
-
-
-
-
-my $calc_sig = sha1_hex($content,$secret);
-my $calc_sig2 = sha1_hex($extra_content,$content,$secret);
-
-if ($calc_sig ne $sig && $calc_sig2 ne $sig)
-{
-
- print "Status: 450 sig mismatch\nContent-Type: text/plain\n\n";
- print "$sig mismatches $calc_sig($calc_sig2) on content:\n$content";
- $db->disconnect;
- exit;
-}
-
-# undo escape-proofing of base64 data and decode it
-map {tr/$@/+=/; $_ = decode_base64($_); }
- ($log, $conf,$changed_this_run,$changed_since_success,$log_archive, $frozen_sconf);
-
-if ($log =~/Last file mtime in snapshot: (.*)/)
-{
- my $snaptime = parsedate($1);
- my $brch = $branch eq 'HEAD' ? 'master' : $branch;
- my $last_branch_time = time - (30 * 86400);
- $last_branch_time = `TZ=UTC GIT_DIR=$local_git_clone git log -1 --pretty=format:\%ct $brch`;
- if ($snaptime < ($last_branch_time - 86400))
- {
- print "Status: 493 snapshot too old: $1\nContent-Type: text/plain\n\n";
- print "snapshot to old: $1\n";
- $db->disconnect;
- exit;
- }
-}
-
-($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($ts);
-$year += 1900; $mon +=1;
-my $dbdate=
- sprintf("%d-%.2d-%.2d %.2d:%.2d:%.2d",$year,$mon,$mday,$hour,$min,$sec);
-
-my $log_file_names;
-my @log_file_names;
-my $dirname = "$buildlogs/tmp.$$.unpacklogs";
-
-my $githeadref;
-
-if ($log_archive)
-{
- my $log_handle;
- my $archname = "$buildlogs/tmp.$$.tgz";
- open($log_handle,">$archname");
- binmode $log_handle;
- print $log_handle $log_archive;
- close $log_handle;
- mkdir $dirname;
- @log_file_names = `tar -z -C $dirname -xvf $archname 2>/dev/null`;
- map {s/\s+//g; } @log_file_names;
- my @qnames = grep { $_ ne 'githead.log' } @log_file_names;
- map { $_ = qq("$_"); } @qnames;
- $log_file_names = '{' . join(',',@qnames) . '}';
- if (-e "$dirname/githead.log" )
- {
- open(my $githead,"$dirname/githead.log");
- $githeadref = <$githead>;
- chomp $githeadref;
- close $githead;
- }
- # unlink $archname;
-}
-
-my $config_flags;
-my $client_conf;
-if ($frozen_sconf)
-{
- $client_conf = thaw $frozen_sconf;
-}
-
-if ($min_script_version)
-{
- $client_conf->{script_version} ||= '0.0';
- my $cli_ver = $client_conf->{script_version} ;
- $cli_ver =~ s/^REL_//;
- my ($minmajor,$minminor) = split(/\./,$min_script_version);
- my ($smajor,$sminor) = split(/\./,$cli_ver);
- if ($minmajor > $smajor || ($minmajor == $smajor && $minminor > $sminor))
- {
- print "Status: 460 script version too low\nContent-Type: text/plain\n\n";
- print
- "Script version is below minimum required\n",
- "Reported version: $client_conf->{script_version},",
- "Minumum version required: $min_script_version\n";
- $db->disconnect;
- exit;
- }
-}
-
-if ($min_web_script_version)
-{
- $client_conf->{web_script_version} ||= '0.0';
- my $cli_ver = $client_conf->{web_script_version} ;
- $cli_ver =~ s/^REL_//;
- my ($minmajor,$minminor) = split(/\./,$min_web_script_version);
- my ($smajor,$sminor) = split(/\./,$cli_ver);
- if ($minmajor > $smajor || ($minmajor == $smajor && $minminor > $sminor))
- {
- print "Status: 461 web script version too low\nContent-Type: text/plain\n\n";
- print
- "Web Script version is below minimum required\n",
- "Reported version: $client_conf->{web_script_version}, ",
- "Minumum version required: $min_web_script_version\n"
- ;
- $db->disconnect;
- exit;
- }
-}
-
-my @config_flags;
-if (not exists $client_conf->{config_opts} )
-{
- @config_flags = ();
-}
-elsif (ref $client_conf->{config_opts} eq 'HASH')
-{
- # leave out keys with false values
- @config_flags = grep { $client_conf->{config_opts}->{$_} }
- keys %{$client_conf->{config_opts}};
-}
-elsif (ref $client_conf->{config_opts} eq 'ARRAY' )
-{
- @config_flags = @{$client_conf->{config_opts}};
-}
-
-if (@config_flags)
-{
- @config_flags = grep {! m/=/ } @config_flags;
- map {s/\s+//g; $_=qq("$_"); } @config_flags;
- push @config_flags,'git' if $client_conf->{scm} eq 'git';
- $config_flags = '{' . join(',',@config_flags) . '}' ;
-}
-
-my $scm = $client_conf->{scm} || 'cvs';
-my $scmurl = $client_conf->{scm_url};
-
-my $logst = <<EOSQL;
- insert into build_status
- (sysname, snapshot,status, stage, log,conf_sum, branch,
- changed_this_run, changed_since_success,
- log_archive_filenames , log_archive, build_flags, scm, scmurl,
- git_head_ref,frozen_conf)
- values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
-EOSQL
-;
-
-
-# this transaction lets us set log_error_verbosity to terse
-# just for the duration of the transaction. That turns off logging the
-# bind params, so all the logs don't get stuffed on the postgres logs
-
-
-my $sqlres;
-$db->begin_work;
-$db->do("select set_local_error_terse()");
-
-
-$sth=$db->prepare($logst);
-
-$sth->bind_param(1,$animal);
-$sth->bind_param(2,$dbdate);
-$sth->bind_param(3,$res & 0x8fffffff); # in case we get a 64 bit int status!
-$sth->bind_param(4,$stage);
-$sth->bind_param(5,$log);
-$sth->bind_param(6,$conf);
-$sth->bind_param(7,$branch);
-$sth->bind_param(8,$changed_this_run);
-$sth->bind_param(9,$changed_since_success);
-$sth->bind_param(10,$log_file_names);
-#$sth->bind_param(11,$log_archive,{ pg_type => DBD::Pg::PG_BYTEA });
-$sth->bind_param(11,undef,{ pg_type => DBD::Pg::PG_BYTEA });
-$sth->bind_param(12,$config_flags);
-$sth->bind_param(13,$scm);
-$sth->bind_param(14,$scmurl);
-$sth->bind_param(15,$githeadref);
-$sth->bind_param(16,$frozen_sconf,{ pg_type => DBD::Pg::PG_BYTEA });
-
-$sqlres = $sth->execute;
-
-if ($sqlres)
-{
-
- $sth->finish;
-
- my $logst2 = q{
-
- insert into build_status_log
- (sysname, snapshot, branch, log_stage, log_text, stage_duration)
- values (?, ?, ?, ?, ?, ?)
-
- };
-
- $sth = $db->prepare($logst2);
-
- $/=undef;
-
- my $stage_start = $ts;
-
- foreach my $log_file( @log_file_names )
- {
- next if $log_file =~ /^githead/;
- my $handle;
- open($handle,"$dirname/$log_file");
- my $mtime = (stat $handle)[9];
- my $stage_interval = $mtime - $stage_start;
- $stage_start = $mtime;
- my $ltext = <$handle>;
- close($handle);
- $ltext =~ s/\x00/\\0/g;
- $sqlres = $sth->execute($animal,$dbdate,$branch,$log_file,$ltext,
- "$stage_interval seconds");
- last unless $sqlres;
- }
-
- $sth->finish unless $sqlres;
-
-}
-
-if (! $sqlres)
-{
-
- print "Status: 462 database failure\nContent-Type: text/plain\n\n";
- print "Your report generated a database failure:\n",
- $db->errstr,
- "\n";
- $db->rollback;
- $db->disconnect;
- exit;
-}
-
-
-$db->commit;
-
-my $prevst = <<EOSQL;
-
- select coalesce((select distinct on (snapshot) stage
- from build_status
- where sysname = ? and branch = ? and snapshot < ?
- order by snapshot desc
- limit 1), 'NEW') as prev_status
-
-EOSQL
-
-$sth=$db->prepare($prevst);
-$sth->execute($animal,$branch,$dbdate);
-my $row=$sth->fetchrow_arrayref;
-my $prev_stat=$row->[0];
-$sth->finish;
-
-my $det_st = <<EOS;
-
- select operating_system|| ' / ' || os_version as os ,
- compiler || ' / ' || compiler_version as compiler,
- architecture as arch
- from buildsystems
- where status = 'approved'
- and name = ?
-
-EOS
-;
-$sth=$db->prepare($det_st);
-$sth->execute($animal);
-$row=$sth->fetchrow_arrayref;
-my ($os, $compiler,$arch) = @$row;
-$sth->finish;
-
-$db->begin_work;
-# prevent occasional duplication by forcing serialization of this operation
-$db->do("lock table dashboard_mat in share row exclusive mode");
-$db->do("delete from dashboard_mat");
-$db->do("insert into dashboard_mat select * from dashboard_mat_data");
-$db->commit;
-
-if ($stage ne 'OK')
-{
- $db->begin_work;
- # prevent occasional duplication by forcing serialization of this operation
- $db->do("lock table nrecent_failures in share row exclusive mode");
- $db->do("delete from nrecent_failures");
- $db->do("insert into nrecent_failures select bs.sysname, bs.snapshot, bs.branch from build_status bs where bs.stage <> 'OK' and bs.snapshot > now() - interval '90 days'");
- $db->commit;
-}
-
-$db->disconnect;
-
-print "Content-Type: text/plain\n\n";
-print "request was on:\n";
-print "res=$res&stage=$stage&animal=$animal&ts=$ts";
-
-my $client_events = $client_conf->{mail_events};
-
-if ($ENV{BF_DEBUG})
-{
- my $client_time = $client_conf->{current_ts};
- open(TX,">>$buildlogs/$animal.$date");
- print TX "\n",Dumper(\$client_conf),"\n";
- print TX "server time: $server_time, client time: $client_time\n" if $client_time;
- close(TX);
-}
-
-my $bcc_stat = [];
-my $bcc_chg=[];
-if (ref $client_events)
-{
- my $cbcc = $client_events->{all};
- if (ref $cbcc)
- {
- push @$bcc_stat, @$cbcc;
- }
- elsif (defined $cbcc)
- {
- push @$bcc_stat, $cbcc;
- }
- if ($stage ne 'OK')
- {
- $cbcc = $client_events->{all};
- if (ref $cbcc)
- {
- push @$bcc_stat, @$cbcc;
- }
- elsif (defined $cbcc)
- {
- push @$bcc_stat, $cbcc;
- }
- }
- $cbcc = $client_events->{change};
- if (ref $cbcc)
- {
- push @$bcc_chg, @$cbcc;
- }
- elsif (defined $cbcc)
- {
- push @$bcc_chg, $cbcc;
- }
- if ($stage eq 'OK' || $prev_stat eq 'OK')
- {
- $cbcc = $client_events->{green};
- if (ref $cbcc)
- {
- push @$bcc_chg, @$cbcc;
- }
- elsif (defined $cbcc)
- {
- push @$bcc_chg, $cbcc;
- }
- }
-}
-
-
-my $url = $query->url(-base => 1);
-
-
-my $stat_type = $stage eq 'OK' ? 'Status' : 'Failed at Stage';
-
-my $mailto = [@$all_stat];
-push(@$mailto,@$fail_stat) if $stage ne 'OK';
-
-my $me = `id -un`; chomp($me);
-
-my $host = `hostname`; chomp ($host);
-$host = $default_host unless ($host =~ m/[.]/ || !defined($default_host));
-
-my $from_addr = "PG Build Farm <$me\@$host>";
-$from_addr =~ tr /\r\n//d;
-
-my $msg = new Mail::Send;
-
-
-$msg->to(@$mailto);
-$msg->bcc(@$bcc_stat) if (@$bcc_stat);
-$msg->subject("PGBuildfarm member $animal Branch $branch $stat_type $stage");
-$msg->set('From',$from_addr);
-my $fh = $msg->open;
-print $fh <<EOMAIL;
-
-
-The PGBuildfarm member $animal had the following event on branch $branch:
-
-$stat_type: $stage
-
-The snapshot timestamp for the build that triggered this notification is: $dbdate
-
-The specs of this machine are:
-OS: $os
-Arch: $arch
-Comp: $compiler
-
-For more information, see $url/cgi-bin/show_history.pl?nm=$animal&br=$branch
-
-EOMAIL
-
-$fh->close;
-
-exit if ($stage eq $prev_stat);
-
-$mailto = [@$change_stat];
-push(@$mailto,@$green_stat) if ($stage eq 'OK' || $prev_stat eq 'OK');
-
-$msg = new Mail::Send;
-
-
-$msg->to(@$mailto);
-$msg->bcc(@$bcc_chg) if (@$bcc_chg);
-
-$stat_type = $prev_stat ne 'OK' ? "changed from $prev_stat failure to $stage" :
- "changed from OK to $stage";
-$stat_type = "New member: $stage" if $prev_stat eq 'NEW';
-$stat_type .= " failure" if $stage ne 'OK';
-
-$msg->subject("PGBuildfarm member $animal Branch $branch Status $stat_type");
-$msg->set('From',$from_addr);
-$fh = $msg->open;
-print $fh <<EOMAIL;
-
-The PGBuildfarm member $animal had the following event on branch $branch:
-
-Status $stat_type
-
-The snapshot timestamp for the build that triggered this notification is: $dbdate
-
-The specs of this machine are:
-OS: $os
-Arch: $arch
-Comp: $compiler
-
-For more information, see $url/cgi-bin/show_history.pl?nm=$animal&br=$branch
-
-EOMAIL
-
-$fh->close;
my $host = `hostname`; chomp ($host);
$host = $default_host unless ($host =~ m/[.]/ || !defined($default_host));
-my $from_addr = "PG Build Farm <$me\@$host>";
+my $from_addr = "Exim Build Farm <$me\@$host>";
$from_addr =~ tr /\r\n//d;
$msg->set('From',$from_addr);
my @members = $query->param('member');
map { s/[^a-zA-Z0-9_ -]//g; } @members;
-my $dsn="dbi:Pg:dbname=$dbname";
+my $dsn="dbi:mysql:dbname=$dbname";
$dsn .= ";host=$dbhost" if $dbhost;
$dsn .= ";port=$dbport" if $dbport;
use SOAP::Transport::HTTP;
-SOAP::Transport::HTTP::CGI->dispatch_to('PGBuildFarm')->handle;
+SOAP::Transport::HTTP::CGI->dispatch_to('EximBuildFarm')->handle;
exit;
-package PGBuildFarm;
+package EximBuildFarm;
use DBI;
-REL8_4_STABLE
-REL9_0_STABLE
-REL9_1_STABLE
-REL9_2_STABLE
-REL9_3_STABLE
HEAD
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>PostgreSQL BuildFarm</title>
+ <title>Exim BuildFarm</title>
<link rel="icon" type="image/png" href="/elephant-icon.png" />
<link rel="stylesheet" rev="stylesheet" href="/inc/pgbf.css" charset="utf-8" />
<style type="text/css"><!--
<body class="none">
<div id="wrapper">
<div id="banner">
- <a href="/index.html"><img src="/inc/pgbuildfarm-banner.png" alt="PostgreSQL BuildFarm" width="800" height="73" /></a>
+ <a href="/index.html"><img src="/inc/pgbuildfarm-banner.png" alt="Exim BuildFarm" width="800" height="73" /></a>
<div class="nav">
<ul>
- <li id="home"><a href="/index.html" title="PostgreSQL BuildFarm Home">Home</a></li>
+ <li id="home"><a href="/index.html" title="Exim BuildFarm Home">Home</a></li>
<li id="status"><a href="/cgi-bin/show_status.pl" title="Current results">Status</a></li>
<li id="failures"><a href="/cgi-bin/show_failures.pl" title="Recent Failures">Failures</a></li>
<li id="members"><a href="/cgi-bin/show_members.pl" title="Platforms tested">Members</a></li>
- <li id="register"><a href="/cgi-bin/register-form.pl" title="Join PostgreSQL BuildFarm">Register</a></li>
+ <li id="register"><a href="/cgi-bin/register-form.pl" title="Join Exim BuildFarm">Register</a></li>
<li id="github"><a href="https://github.com/PGBuildFarm/client-code">GitHub</a></li>
<li id="lists"><a href="http://pgfoundry.org/mail/?group_id=1000040">Email lists and status archives</a></li>
</ul>
<!-- html generated from index.tt -->
<p>
-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
+The Exim build farm is a distributed system for automatically testing
+changes in the source code for Exim as they occur, on a wide variety
of platforms. This server is the central repository for the results of those
tests.
</p>
architecture, operating system and compiler.
</p>
<p>To see what is involved in running a buildfarm member, please
-read <a href="http://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto">http://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto</a>.
+read <a href="http://wiki.exim.org/wiki/Exim_Buildfarm_Howto">http://wiki.exim.org/wiki/Exim_Buildfarm_Howto</a>.
The client code can be found at the
-<a href="http://www.pgbuildfarm.org/downloads/">downloads page</a>.
+<a href="http://eximbuildfarm.mrball.net/downloads/">downloads page</a>.
</p>
-<p>The build farm software should run on all platforms that can support PostgreSQL.
+<p>The build farm software should run on all platforms that can support Exim.
</p>
</div><!-- main -->
<hr />
<p style="text-align: center;">
- Hosting for the PostgreSQL Buildfarm is generously
+ Hosting for the Exim Buildfarm is generously
provided by:
- <a href="http://www.commandprompt.com">CommandPrompt, The PostgreSQL Company</a>
+ <a href="http://www.mrball.net">Todd Lyons</a>
</p>
</div><!-- wrapper -->
</body>
[%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]"
[%- END -%]
[% WRAPPER 'page.tt'
- title = 'PostgreSQL BuildFarm Recent Failures'
+ title = 'Exim BuildFarm Recent Failures'
bodyclass = 'none'
pagebutton = 'failures'
%]
- <h1>PostgreSQL BuildFarm Recent Failures</h1>
+ <h1>Exim BuildFarm Recent Failures</h1>
<p>
Shown here are build failures that occurred in the last [% max_days %] days.
</p>
[%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]"
[%- END -%]
[% WRAPPER 'page.tt'
- title = 'PostgreSQL BuildFarm History'
+ title = 'Exim BuildFarm History'
bodyclass = 'history'
pagebutton = 'none'
%]
-<h1>PostgreSQL BuildFarm Status History</h1>
+<h1>Exim BuildFarm Status History</h1>
<table cellspacing="0">
<tr><th class="head" colspan="3">System Detail</th></tr>
<tr class="member"><th>Farm member</th><td>[% member %]</td></tr>
-%]
[% WRAPPER 'page.tt'
- title = 'PostgreSQL BuildFarm'
+ title = 'Exim BuildFarm'
bodyclass = 'none'
pagebutton = 'home'
%]
<!-- html generated from index.tt -->
<p>
-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
+The Exim build farm is a distributed system for automatically testing
+changes in the source code for Exim as they occur, on a wide variety
of platforms. This server is the central repository for the results of those
tests.
</p>
architecture, operating system and compiler.
</p>
<p>To see what is involved in running a buildfarm member, please
-read <a href="http://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto">http://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto</a>.
+read <a href="http://wiki.exim.org/wiki/Exim_Buildfarm_Howto">http://wiki.exim.org/wiki/Exim_Buildfarm_Howto</a>.
The client code can be found at the
<a href="http://www.pgbuildfarm.org/downloads/">downloads page</a>.
</p>
-<p>The build farm software should run on all platforms that can support PostgreSQL.
+<p>The build farm software should run on all platforms that can support Exim.
</p>
[% END %]
$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=';
%]<a href="[% giturl ; commitref %]">[% commitref %]</a>[% logtail | html %]
[% END -%]
-<h1>PostgreSQL Build Farm Log</h1>
+<h1>Exim Build Farm Log</h1>
<h2>Details for system "[% system %]"[% IF stage != 'OK' %] failure at stage [% stage ; ELSE %], status 'OK'[% END %], snapshot taken [% urldt %]</h2>
<table cellspacing="0">
<tr>
-%]
[% WRAPPER 'page.tt'
- title = 'PostgreSQL BuildFarm Members'
+ title = 'Exim BuildFarm Members'
bodyclass = 'members'
pagebutton = 'members'
%]
-<h1>PostgreSQL BuildFarm Members</h1>
+<h1>Exim BuildFarm Members</h1>
<p>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.</p>
<form name="filter" method="GET" action="/cgi-bin/show_status.pl">
<table cellspacing="0">
<body class="[% bodyclass %]">
<div id="wrapper">
<div id="banner">
- <a href="/index.html"><img src="/inc/pgbuildfarm-banner.png" alt="PostgreSQL BuildFarm" width="800" height="73" /></a>
+ <a href="/index.html"><img src="/inc/pgbuildfarm-banner.png" alt="Exim BuildFarm" width="800" height="73" /></a>
<div class="nav">
<ul>
- <li id="home"><a href="/index.html" title="PostgreSQL BuildFarm Home">Home</a></li>
+ <li id="home"><a href="/index.html" title="Exim BuildFarm Home">Home</a></li>
<li id="status"><a href="/cgi-bin/show_status.pl" title="Current results">Status</a></li>
<li id="failures"><a href="/cgi-bin/show_failures.pl" title="Recent Failures">Failures</a></li>
<li id="members"><a href="/cgi-bin/show_members.pl" title="Platforms tested">Members</a></li>
- <li id="register"><a href="/cgi-bin/register-form.pl" title="Join PostgreSQL BuildFarm">Register</a></li>
+ <li id="register"><a href="/cgi-bin/register-form.pl" title="Join Exim BuildFarm">Register</a></li>
<li id="github"><a href="https://github.com/PGBuildFarm/client-code">GitHub</a></li>
<li id="lists"><a href="http://pgfoundry.org/mail/?group_id=1000040">Email lists and status archives</a></li>
</ul>
</div><!-- main -->
<hr />
<p style="text-align: center;">
- Hosting for the PostgreSQL Buildfarm is generously
+ Hosting for the Exim Buildfarm is generously
provided by:
- <a href="http://www.commandprompt.com">CommandPrompt, The PostgreSQL Company</a>
+ <a href="http://www.mrball.net">Todd Lyons</a>
</p>
</div><!-- wrapper -->
</body>
-%]
[% WRAPPER 'page.tt'
- title = 'PostgreSQL BuildFarm Application'
+ title = 'Exim BuildFarm Application'
bodyclass = 'application'
pagebutton = 'register'
%]
-<h1>Application to join PostgreSQL BuildFarm</h1>
+<h1>Application to join Exim BuildFarm</h1>
<p>Here is a short description of what is required to join the buildfarm successfully. Please read it carefully
before submitting this form.</p>
<ul>
<li> your machine will need to be able to contact <a href="http://www.pgbuildfarm.org">http://www.pgbuildfarm.org</a>
- either directly or via proxy, and it will need access to a PostgreSQL Git repository,
+ either directly or via proxy, and it will need access to a Exim Git repository,
either the one at postgresql.org or a mirror.</li>
<li> have <a href="http://git-scm.org">git</a> installed.</li>
<li> have a working Postgresql build environment for your platform.</li>
<li> download and unpack the latest release of client code from
<a href="http://www.pgbuildfarm.org/downloads/">http://www.pgbuildfarm.org/downloads/</a></li>
<li> read instructions at
- <a href="http://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto">http://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto</a></li>
+ <a href="http://wiki.postgresql.org/wiki/Exim_Buildfarm_Howto">http://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto</a></li>
<li> get the software running locally using flags --force --nostatus --nosend</li>
<li> register your machine on this page</li>
<li> when you receive credentials, put them in the config file, and schedule regular builds (without those flags)
-%]
[% WRAPPER 'page.tt'
- title = 'PostgreSQL BuildFarm Application'
+ title = 'Exim BuildFarm Application'
bodyclass = 'application'
pagebutton = 'none'
%]
-%]
[% WRAPPER 'page.tt'
- title = 'PostgreSQL BuildFarm Application'
+ title = 'Exim BuildFarm Application'
bodyclass = 'application'
pagebutton = 'none'
%]
-<h1>PostgreSQL BuildFarm Application received</h1>
+<h1>Exim BuildFarm Application received</h1>
<p>Thank you. You should hear from us shortly.</p>
[% END %]
[%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]"
[%- END -%]
[% WRAPPER 'page.tt'
- title = 'PostgreSQL BuildFarm Status'
+ title = 'Exim BuildFarm Status'
bodyclass = 'none'
pagebutton = 'status'
%]
- <h1>PostgreSQL BuildFarm Status</h1>
+ <h1>Exim BuildFarm Status</h1>
<p>
Shown here is the latest status of each farm member
for each branch it has reported on in the last 30 days.