-
Notifications
You must be signed in to change notification settings - Fork 3k
Use dev services instead of external container for DB2 #51128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Use dev services instead of external container for DB2 #51128
Conversation
|
/cc @gsmet (hibernate-orm) |
Status for workflow
|
| Status | Name | Step | Failures | Logs | Raw logs | Build scan |
|---|---|---|---|---|---|---|
| ❌ | Native Tests - Data7 | Build |
Failures | Logs | Raw logs | 🔍 |
| ❌ | JVM Integration Tests - JDK 17 | Build |
Failures | Logs | Raw logs | 🔍 |
| ✔️ | JVM Integration Tests - JDK 17 Windows | Logs | Raw logs | 🔍 | ||
| ❌ | JVM Integration Tests - JDK 21 | Build |
Failures | Logs | Raw logs | 🔍 |
| ❌ | JVM Integration Tests - JDK 25 | Build |
Failures | Logs | Raw logs | 🔍 |
Full information is available in the Build summary check run.
You can consult the Develocity build scans.
Failures
⚙️ Native Tests - Data7 #
- Failing: integration-tests/reactive-db2-client
📦 integration-tests/reactive-db2-client
❌ io.quarkus.it.reactive.db2.client.HealthCheckIT.testHealthCheck - History - More details - Source on GitHub
java.lang.AssertionError:
2 expectations failed.
JSON path status doesn't match.
Expected: is "UP"
Actual: DOWN
JSON path checks.status doesn't match.
Expected: iterable with items ["UP"] in any order
❌ io.quarkus.it.reactive.db2.client.NativeQueryIT.testListAllFruits - History - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <500>.
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:73)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:108)
❌ io.quarkus.it.reactive.db2.client.NativeQueryIT.testListAllLegumes - History - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <500>.
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:73)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:108)
⚙️ JVM Integration Tests - JDK 17 #
- Failing: integration-tests/reactive-db2-client
📦 integration-tests/reactive-db2-client
❌ io.quarkus.it.reactive.db2.client.HealthCheckTest.testHealthCheck line 20 - History - More details - Source on GitHub
java.lang.AssertionError:
2 expectations failed.
JSON path status doesn't match.
Expected: is "UP"
Actual: DOWN
JSON path checks.status doesn't match.
Expected: iterable with items ["UP"] in any order
❌ io.quarkus.it.reactive.db2.client.QueryTest. - History - More details - Source on GitHub
org.junit.jupiter.engine.execution.ConditionEvaluationException: Failed to evaluate condition [io.quarkus.test.junit.QuarkusTestExtension]: Internal error: Test class was loaded with an unexpected classloader (QuarkusClassLoader:Quarkus Base Runtime ClassLoader: TEST for JUnitQuarkusTest-no-profile (QuarkusTest)@6c96403e) or the thread context classloader (jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27) was incorrect.
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1602)
at java.base/java.util.stream.Referen...
❌ io.quarkus.it.reactive.db2.client.QueryTest.testListAllFruits line 18 - History - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <500>.
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
❌ io.quarkus.it.reactive.db2.client.QueryTest.testListAllLegumes line 30 - History - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <500>.
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
⚙️ JVM Integration Tests - JDK 21 #
- Failing: integration-tests/reactive-db2-client
📦 integration-tests/reactive-db2-client
❌ io.quarkus.it.reactive.db2.client.HealthCheckTest.testHealthCheck line 20 - History - More details - Source on GitHub
java.lang.AssertionError:
2 expectations failed.
JSON path status doesn't match.
Expected: is "UP"
Actual: DOWN
JSON path checks.status doesn't match.
Expected: iterable with items ["UP"] in any order
❌ io.quarkus.it.reactive.db2.client.QueryTest. - History - More details - Source on GitHub
org.junit.jupiter.engine.execution.ConditionEvaluationException: Failed to evaluate condition [io.quarkus.test.junit.QuarkusTestExtension]: Internal error: Test class was loaded with an unexpected classloader (QuarkusClassLoader:Quarkus Base Runtime ClassLoader: TEST for JUnitQuarkusTest-no-profile (QuarkusTest)@5dfd31f4) or the thread context classloader (jdk.internal.loader.ClassLoaders$AppClassLoader@c387f44) was incorrect.
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1685)
at java.base/java.util.stream.Referenc...
❌ io.quarkus.it.reactive.db2.client.QueryTest.testListAllFruits line 18 - History - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <500>.
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:73)
❌ io.quarkus.it.reactive.db2.client.QueryTest.testListAllLegumes line 30 - History - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <500>.
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:73)
⚙️ JVM Integration Tests - JDK 25 #
- Failing: integration-tests/reactive-db2-client
📦 integration-tests/reactive-db2-client
❌ io.quarkus.it.reactive.db2.client.HealthCheckTest.testHealthCheck line 20 - History - More details - Source on GitHub
java.lang.AssertionError:
2 expectations failed.
JSON path status doesn't match.
Expected: is "UP"
Actual: DOWN
JSON path checks.status doesn't match.
Expected: iterable with items ["UP"] in any order
❌ io.quarkus.it.reactive.db2.client.QueryTest. - History - More details - Source on GitHub
org.junit.jupiter.engine.execution.ConditionEvaluationException: Failed to evaluate condition [io.quarkus.test.junit.QuarkusTestExtension]: Internal error: Test class was loaded with an unexpected classloader (QuarkusClassLoader:Quarkus Base Runtime ClassLoader: TEST for JUnitQuarkusTest-no-profile (QuarkusTest)@dc1fadd) or the thread context classloader (jdk.internal.loader.ClassLoaders$AppClassLoader@5bc2b487) was incorrect.
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:214)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:214)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:214)
at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1693)
at java.base/java.util.stream.Referenc...
❌ io.quarkus.it.reactive.db2.client.QueryTest.testListAllFruits line 18 - History - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <500>.
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:73)
❌ io.quarkus.it.reactive.db2.client.QueryTest.testListAllLegumes line 30 - History - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <500>.
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:73)
Named reactive datasources are not DB dependant, so they should work regardless, I wonder what path is triggering |
|
@holly-cummins I learned the hard way that something in DB2 (the "instance name"? not sure if it's the same thing as the DB name) is... wait for it... limited to 8 characters. Was that perhaps your problem? :) |
Gosh. In principle it shouldn't affect this, because these are existing tests that are just running on a dev service instead of an independent container. But along with all the optimisations I've been throwing out, there could have been some flag in the container configuration or container image that eased that restriction. I'll try a shorter name and report back! |
Partial resolution of #44124.
This is failing at the moment, because of the following error:
Looking at the difference between the passing code and the failing code, it seems like the named reactive datasources don't work with DB2? I can't debug locally because DB2 also doesn't start on my mac (#51084). I have no idea if this is a test problem or an application problem. I assume a test problem, but the modified test looks pretty innocuous. Any ideas, @lucamolteni or @yrodiere?