pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Mike Fowler <mike@mlfowler.com>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC specific Buildfarm member
Date: Wed, 04 May 2011 18:17:44 -0400
Message-ID: <4DC1D088.3040005@dunslane.net> (raw)
In-Reply-To: <4DC1C27D.9060503@mlfowler.com>
References: <4DC1C27D.9060503@mlfowler.com>



On 05/04/2011 05:17 PM, Mike Fowler wrote:
> Hi Andrew/Alvaro,
>
> I've just received the animal "piapiac" for my buildfarm which will 
> run for 8.4, 9.0 and HEAD. I've created a JDBC module which is invoked 
> during the locale testing once the database is running. It's activated 
> by a new configuration parameter in build-farm.conf (set to undef in 
> the attached patch). When invoked the module updates the JDBC source, 
> builds and runs the tests for jdks 4, 5 and 6. In order to report the 
> distinct JDBC failures I've added the following "stages" for the 
> purposes of the send_result function:
>
> JDBC-CVS - SCM related problems, the JDBC code is in CVS
> JDBC-Clean - clearing out the previous build fails
> JDBC-JDK - the JDK's configuration is incorrect
> JDBC-Build - compiler failures
> JDBC-Create - creating the test user/database/lang failed
> JDBC-Test-Config - creating the overridden properties for the JUnit 
> failed
> JDBC-Test - any JUnit failures/errors
> JDBC-Drop- dropping the test database/user failed
>
> Currently the module assumes that Apache ant is installed and the the 
> JUnit jar file resides in the path - on Ubuntu it's simply "sudo 
> apt-get install ant junit".
>
> The JDBC module isn't complete and could do with some more tweaks, but 
> it is running and I've been able to test most of the failure 
> conditions locally. Of course things might be different in the "wild". 
> A couple of sore thumbs that stick out is that the JDBC specific 
> configuration (e.g. the paths to the jdks) is baked in to the module 
> and the JDBC suite is run for each locale which may be overkill. I'll 
> continue to refine and provide you patches if you're interested in the 
> code.
>
> As I'm running this one of the "free" Amazon EC2 micro instances I've 
> got it configured to run one of the three development branches every 8 
> hours (HEAD,REL9_0_STABLE,REL8_4_STABLE) with all three JDKs being 
> tested with fresh code from the JDBC repo each time. Hopefully I'll 
> remain within my free usage!
>
> If you're happy with this I will enable my buildfarm member.



This looks pretty good.

You should probably fill in $steps_completed. You'd need to change its 
declaration so it was visible - change it so the declarations is :

    use vars qw($steps_completed);

As a matter of style, I stopped using globs for file handles long ago, 
in favor of local variables. It would be best to keep to that style for 
consistency (although you've done a pretty good job on that front, I 
must say.)

Go ahead and enable it and let's see the results on the server.

Maybe I should factor out the core tests in a similar fashion.

Nice work.

cheers

andrew





view thread (8+ messages)  latest in thread

Message-ID: <4DC1D088.3040005@dunslane.net>
Permalink:  ../4DC1D088.3040005@dunslane.net/
Also on:    postgresql.org/message-id/4DC1D088.3040005@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: andrew@dunslane.net, mike@mlfowler.com, alvherre@commandprompt.com
  Subject: Re: JDBC specific Buildfarm member
  In-Reply-To: <4DC1D088.3040005@dunslane.net>
  References: <4DC1C27D.9060503@mlfowler.com> <4DC1D088.3040005@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox