Commit 887564d
authored
Fix JDBC driver CI test failures (#2333)
Fix JDBC driver CI test failures: encoding, Testcontainers, and
Docker compatibility.
Note: This PR was created with the help of AI tools and a human.
- Set JavaCompile encoding to UTF-8 to fix unicode test failures in
CI environments that default to US-ASCII.
- Add Testcontainers wait strategy (Wait.forLogMessage) to wait for
PostgreSQL to be fully ready before connecting.
- Use agensGraphContainer.getHost() instead of hardcoded localhost
for Docker-in-Docker compatibility.
- Add sslmode=disable to JDBC URL since PostgreSQL driver 42.6.0+
attempts SSL by default.
- Remove silent exception swallowing around connection setup to fail
fast with meaningful errors instead of NullPointerException.
- Upgrade Testcontainers from 1.18.0 to 1.21.4 to fix Docker 29.x
detection failure on ubuntu-24.04 runners (docker-java 3.3.x in
1.18.0 cannot negotiate with Docker Engine 29.1.5 API).
modified: drivers/jdbc/lib/build.gradle.kts
modified: drivers/jdbc/lib/src/test/java/org/apache/age/jdbc/BaseDockerizedTest.java1 parent 5fe2121 commit 887564d
2 files changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | | - | |
| 67 | + | |
63 | 68 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
0 commit comments