Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C07821337B47 for ; Wed, 4 May 2011 19:17:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 53078-07 for ; Wed, 4 May 2011 22:17:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.120]) by mail.postgresql.org (Postfix) with ESMTP id 001491337B92 for ; Wed, 4 May 2011 19:17:44 -0300 (ADT) X-Authority-Analysis: v=1.1 cv=zBQrDHOGJVa+32FYvZQb0EuBWG+8UjOxCya+IIWDaxY= c=1 sm=0 a=lpDWfFNTT9MA:10 a=4e6WZy5SdIUA:10 a=Acs96HtBqXsA:10 a=8nJEP1OIZ-IA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:17 a=IQCkgeH6E9efE7zj3fUA:9 a=bJTFEKNiNzxb3Bno5qUA:7 a=wPNLvfGTeEIA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:117 X-Cloudmark-Score: 0 X-Originating-IP: 98.27.48.207 Received: from [98.27.48.207] ([98.27.48.207:40449] helo=[192.168.10.146]) by cdptpa-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 9A/EF-29443-880D1CD4; Wed, 04 May 2011 22:17:44 +0000 Message-ID: <4DC1D088.3040005@dunslane.net> Date: Wed, 04 May 2011 18:17:44 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: Mike Fowler CC: Alvaro Herrera , pgsql-jdbc@postgresql.org Subject: Re: JDBC specific Buildfarm member References: <4DC1C27D.9060503@mlfowler.com> In-Reply-To: <4DC1C27D.9060503@mlfowler.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201105/3 X-Sequence-Number: 21833 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