pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedBuildfarm test failure
5+ messages / 3 participants
[nested] [flat]
* Buildfarm test failure
@ 2012-11-01 20:52 Mike Fowler <mike@mlfowler.com>
0 siblings, 2 replies; 5+ messages in thread
From: Mike Fowler @ 2012-11-01 20:52 UTC (permalink / raw)
To: pgsql-jdbc
The buildfarm failed last night whilst performing the JDK 5 builds:
testjar:
[mkdir] Created dir: /home/ubuntu/buildarea/HEAD/pgjdbc/build/tests
[javac] /home/ubuntu/buildarea/HEAD/pgjdbc/build.xml:399: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds
[javac] Compiling 58 source files to
/home/ubuntu/buildarea/HEAD/pgjdbc/build/tests
[javac]
/home/ubuntu/buildarea/HEAD/pgjdbc/org/postgresql/test/jdbc2/ArrayTest.java:213:
cannot find symbol
[javac] symbol : method
createArrayOf(java.lang.String,java.lang.String[])
[javac] location: interface java.sql.Connection
[javac] Array sqlArray = conn.createArrayOf("text", strArray);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
I've done some digging and it appears that a test of a JDBC4 method has
ended up in the JDBC2 test suite. I've attached a patch that removes the
offending test and there is no need to add it to the corresponding JDBC4
tests as it is already present.
Kind regards,
--
Mike Fowler
Registered Linux user: 379787
Attachments:
testfix.patch (text/x-diff, 1.6K) download
*** a/org/postgresql/test/jdbc2/ArrayTest.java
--- b/org/postgresql/test/jdbc2/ArrayTest.java
***************
*** 186,222 **** public class ArrayTest extends TestCase
assertEquals(3, resultCount);
}
- public void testSetObjectFromJavaArray() throws SQLException {
- String[] strArray = new String[]{"a","b","c"};
-
- PreparedStatement pstmt = conn.prepareStatement("INSERT INTO arrtest(strarr) VALUES (?)");
-
- // Incorrect, but commonly attempted by many ORMs:
- try {
- pstmt.setObject(1, strArray, Types.ARRAY);
- pstmt.executeUpdate();
- fail("setObject() with a Java array parameter and Types.ARRAY shouldn't succeed");
- } catch (org.postgresql.util.PSQLException ex) {
- // Expected failure.
- }
-
- // Also incorrect, but commonly attempted by many ORMs:
- try {
- pstmt.setObject(1, strArray);
- pstmt.executeUpdate();
- fail("setObject() with a Java array parameter and no Types argument shouldn't succeed");
- } catch (org.postgresql.util.PSQLException ex) {
- // Expected failure.
- }
-
- // Correct way, though the use of "text" as a type is non-portable.
- Array sqlArray = conn.createArrayOf("text", strArray);
- pstmt.setArray(1, sqlArray);
- pstmt.executeUpdate();
-
- pstmt.close();
- }
-
/**
* Starting with 8.0 non-standard (beginning index isn't 1) bounds
* the dimensions are returned in the data. The following should
--- 186,191 ----
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Buildfarm test failure
@ 2012-11-01 21:01 Dave Cramer <pg@fastcrypt.com>
parent: Mike Fowler <mike@mlfowler.com>
1 sibling, 1 reply; 5+ messages in thread
From: Dave Cramer @ 2012-11-01 21:01 UTC (permalink / raw)
To: Mike Fowler <mike@mlfowler.com>; +Cc: pgsql-jdbc
Ya, that's my ineptitude with git showing through.
The buildfarm is a good thing.
Thanks
Dave
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On Thu, Nov 1, 2012 at 4:52 PM, Mike Fowler <mike@mlfowler.com> wrote:
> The buildfarm failed last night whilst performing the JDK 5 builds:
>
> testjar:
> [mkdir] Created dir: /home/ubuntu/buildarea/HEAD/**pgjdbc/build/tests
> [javac] /home/ubuntu/buildarea/HEAD/**pgjdbc/build.xml:399: warning:
> 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
> to false for repeatable builds
> [javac] Compiling 58 source files to /home/ubuntu/buildarea/HEAD/**
> pgjdbc/build/tests
> [javac] /home/ubuntu/buildarea/HEAD/**pgjdbc/org/postgresql/test/**jdbc2/ArrayTest.java:213:
> cannot find symbol
> [javac] symbol : method createArrayOf(java.lang.**
> String,java.lang.String[])
> [javac] location: interface java.sql.Connection
> [javac] Array sqlArray = conn.createArrayOf("text", strArray);
> [javac] ^
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 1 error
>
> I've done some digging and it appears that a test of a JDBC4 method has
> ended up in the JDBC2 test suite. I've attached a patch that removes the
> offending test and there is no need to add it to the corresponding JDBC4
> tests as it is already present.
>
> Kind regards,
> --
> Mike Fowler
> Registered Linux user: 379787
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Buildfarm test failure
@ 2012-11-02 01:17 Dave Cramer <pg@fastcrypt.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 5+ messages in thread
From: Dave Cramer @ 2012-11-02 01:17 UTC (permalink / raw)
To: Mike Fowler <mike@mlfowler.com>; +Cc: pgsql-jdbc
Mike,
Again, thanks
Fixed.
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On Thu, Nov 1, 2012 at 5:01 PM, Dave Cramer <pg@fastcrypt.com> wrote:
> Ya, that's my ineptitude with git showing through.
>
> The buildfarm is a good thing.
>
> Thanks
>
> Dave
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
>
>
> On Thu, Nov 1, 2012 at 4:52 PM, Mike Fowler <mike@mlfowler.com> wrote:
>
>> The buildfarm failed last night whilst performing the JDK 5 builds:
>>
>> testjar:
>> [mkdir] Created dir: /home/ubuntu/buildarea/HEAD/**pgjdbc/build/tests
>> [javac] /home/ubuntu/buildarea/HEAD/**pgjdbc/build.xml:399: warning:
>> 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
>> to false for repeatable builds
>> [javac] Compiling 58 source files to /home/ubuntu/buildarea/HEAD/**
>> pgjdbc/build/tests
>> [javac] /home/ubuntu/buildarea/HEAD/**pgjdbc/org/postgresql/test/**jdbc2/ArrayTest.java:213:
>> cannot find symbol
>> [javac] symbol : method createArrayOf(java.lang.**
>> String,java.lang.String[])
>> [javac] location: interface java.sql.Connection
>> [javac] Array sqlArray = conn.createArrayOf("text", strArray);
>> [javac] ^
>> [javac] Note: Some input files use or override a deprecated API.
>> [javac] Note: Recompile with -Xlint:deprecation for details.
>> [javac] Note: Some input files use unchecked or unsafe operations.
>> [javac] Note: Recompile with -Xlint:unchecked for details.
>> [javac] 1 error
>>
>> I've done some digging and it appears that a test of a JDBC4 method has
>> ended up in the JDBC2 test suite. I've attached a patch that removes the
>> offending test and there is no need to add it to the corresponding JDBC4
>> tests as it is already present.
>>
>> Kind regards,
>> --
>> Mike Fowler
>> Registered Linux user: 379787
>>
>>
>> --
>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>
>>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Buildfarm test failure
@ 2012-11-02 11:06 Mike Fowler <mike@mlfowler.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 0 replies; 5+ messages in thread
From: Mike Fowler @ 2012-11-02 11:06 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc
Dave,
Confirmed - the buildfarm is now building cleanly for all builds.
Kind regards,
--
Mike Fowler
Registered Linux user: 379787
> Mike,
>
> Again, thanks
>
> Fixed.
>
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
>
>
> On Thu, Nov 1, 2012 at 5:01 PM, Dave Cramer <pg@fastcrypt.com> wrote:
>
>> Ya, that's my ineptitude with git showing through.
>>
>> The buildfarm is a good thing.
>>
>> Thanks
>>
>> Dave
>>
>> Dave Cramer
>>
>> dave.cramer(at)credativ(dot)ca
>> http://www.credativ.ca
>>
>>
>>
>> On Thu, Nov 1, 2012 at 4:52 PM, Mike Fowler <mike@mlfowler.com> wrote:
>>
>>> The buildfarm failed last night whilst performing the JDK 5 builds:
>>>
>>> testjar:
>>> [mkdir] Created dir:
>>> /home/ubuntu/buildarea/HEAD/**pgjdbc/build/tests
>>> [javac] /home/ubuntu/buildarea/HEAD/**pgjdbc/build.xml:399:
>>> warning:
>>> 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
>>> set
>>> to false for repeatable builds
>>> [javac] Compiling 58 source files to /home/ubuntu/buildarea/HEAD/**
>>> pgjdbc/build/tests
>>> [javac]
>>> /home/ubuntu/buildarea/HEAD/**pgjdbc/org/postgresql/test/**jdbc2/ArrayTest.java:213:
>>> cannot find symbol
>>> [javac] symbol : method createArrayOf(java.lang.**
>>> String,java.lang.String[])
>>> [javac] location: interface java.sql.Connection
>>> [javac] Array sqlArray = conn.createArrayOf("text",
>>> strArray);
>>> [javac] ^
>>> [javac] Note: Some input files use or override a deprecated API.
>>> [javac] Note: Recompile with -Xlint:deprecation for details.
>>> [javac] Note: Some input files use unchecked or unsafe operations.
>>> [javac] Note: Recompile with -Xlint:unchecked for details.
>>> [javac] 1 error
>>>
>>> I've done some digging and it appears that a test of a JDBC4 method has
>>> ended up in the JDBC2 test suite. I've attached a patch that removes
>>> the
>>> offending test and there is no need to add it to the corresponding
>>> JDBC4
>>> tests as it is already present.
>>>
>>> Kind regards,
>>> --
>>> Mike Fowler
>>> Registered Linux user: 379787
>>>
>>>
>>> --
>>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>>> To make changes to your subscription:
>>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>>
>>>
>>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Buildfarm test failure
@ 2012-11-03 07:35 Craig Ringer <ringerc@ringerc.id.au>
parent: Mike Fowler <mike@mlfowler.com>
1 sibling, 0 replies; 5+ messages in thread
From: Craig Ringer @ 2012-11-03 07:35 UTC (permalink / raw)
To: Mike Fowler <mike@mlfowler.com>; +Cc: pgsql-jdbc
On 11/02/2012 04:52 AM, Mike Fowler wrote:
> The buildfarm failed last night whilst performing the JDK 5 builds:
>
> testjar:
> [mkdir] Created dir: /home/ubuntu/buildarea/HEAD/pgjdbc/build/tests
> [javac] /home/ubuntu/buildarea/HEAD/pgjdbc/build.xml:399: warning:
> 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds
> [javac] Compiling 58 source files to
> /home/ubuntu/buildarea/HEAD/pgjdbc/build/tests
> [javac]
> /home/ubuntu/buildarea/HEAD/pgjdbc/org/postgresql/test/jdbc2/ArrayTest.java:213:
> cannot find symbol
> [javac] symbol : method
> createArrayOf(java.lang.String,java.lang.String[])
> [javac] location: interface java.sql.Connection
> [javac] Array sqlArray = conn.createArrayOf("text", strArray);
That was a mistake I introduced in a patch ages ago, but it should not
appear in any public history, so I'm confused about how it made it to
the buildfarm, let alone now.
--
Craig Ringer
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2012-11-03 07:35 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-11-01 20:52 Buildfarm test failure Mike Fowler <mike@mlfowler.com>
2012-11-01 21:01 ` Dave Cramer <pg@fastcrypt.com>
2012-11-02 01:17 ` Dave Cramer <pg@fastcrypt.com>
2012-11-02 11:06 ` Mike Fowler <mike@mlfowler.com>
2012-11-03 07:35 ` Craig Ringer <ringerc@ringerc.id.au>
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