-
Notifications
You must be signed in to change notification settings - Fork 93
Add LangChain4j member #1524
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?
Add LangChain4j member #1524
Conversation
@ppalaga FYI. This will break Camel Quarkus tests. |
Status for workflow
|
Status | Name | Step | Failures | Logs | Raw logs |
---|---|---|---|---|---|
✖ | Build - JDK 17 | Build with Maven |
Failures | Logs | Raw logs |
Full information is available in the Build summary check run.
Failures
⚙️ Build - JDK 17 #
- Failing: Root module
📦 Root module
✖ Failed to execute goal io.quarkus:quarkus-platform-bom-maven-plugin:0.0.121:invoke-platform-project (build-platform-project) on project quarkus-platform-config: Failed to build the platform project, please consult the errors logged above.
📦 generated-platform-project/quarkus-blaze-persistence/integration-tests/blaze-persistence-examples-quarkus-3-testsuite-base
✖ com.blazebit.examples.quarkus.testsuite.base.QuarkusExampleTest.updatePerson
- More details - Source on GitHub
java.lang.RuntimeException: java.lang.ExceptionInInitializerError
at io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:668)
at io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:763)
at java.base/java.util.Optional.orElseGet(Optional.java:364)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.ExceptionInInitializerError
at java.base/java.lang.Class.forName0(Native Method)
📦 generated-platform-project/quarkus-camel/integration-tests/camel-quarkus-integration-test-langchain4j
✖ org.apache.camel.quarkus.component.langchain4jit.LangChain4jTest.aiServiceShouldBeResolvedByInterface
line 44
- 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)
✖ org.apache.camel.quarkus.component.langchain4jit.LangChain4jTest.aiServiceShouldBeResolvedByName
line 53
- 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)
✖ org.apache.camel.quarkus.component.langchain4jit.LangChain4jTest.camelAnnotationsShouldWorkAsExpected
line 34
- 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)
📦 generated-platform-project/quarkus-camel/integration-tests/camel-quarkus-integration-test-langchain4j-tokenizer
✖ org.apache.camel.quarkus.component.langchain4j.tokenizer.it.Langchain4jTokenizerTest.tokenizeSentences
- More details - Source on GitHub
java.lang.RuntimeException: java.lang.RuntimeException: Failed to start quarkus
at io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:668)
at io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:763)
at java.base/java.util.Optional.orElseGet(Optional.java:364)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.RuntimeException: Failed to start quarkus
at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
📦 generated-platform-project/quarkus-langchain4j/integration-tests/quarkus-langchain4j-integration-test-easy-rag
✖ org.acme.example.EasyRagCodestartTest.testContent
line 21
- More details - Source on GitHub
java.lang.NullPointerException: Cannot invoke "io.quarkus.paths.PathTree.getRoots()" because "t" is null
at io.quarkus.paths.MultiRootPathTree.<init>(MultiRootPathTree.java:23)
at io.quarkus.devtools.testing.SnapshotTesting.getSnapshotsBaseTree(SnapshotTesting.java:88)
at io.quarkus.devtools.testing.SnapshotTesting.withSnapshotsDir(SnapshotTesting.java:95)
at io.quarkus.devtools.testing.SnapshotTesting.assertThatDirectoryTreeMatchSnapshots(SnapshotTesting.java:243)
at io.quarkus.devtools.testing.codestarts.QuarkusCodestartTest.assertThatGeneratedTreeMatchSnapshots(QuarkusCodestartTest.java:289)
at org.acme.example.EasyRagCodestartTest.testContent(EasyRagCodestartTest.java:21)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
For Blaze persistence the error is
|
For Camel Quarkus
|
Also for Camel Quarkus
|
I'll have a look into the |
AFAIR, these tests are based on snapshots that are included as resources and they are probably missing in this test setup |
The EasyRagCodestartTest will be fixed with inclusion of quarkusio/quarkus#48850 |
The Blaze Persistence issue is known and I pinged @beikov about it some time ago. He will address it at some point, I'm sure. |
@jamesnetherton reports that the Camel Quarkus issues are already fixed in CQ main branch. |
This PR adds LangChain4j member, integrating 1.1.0.CR1 version of the library.
Closes quarkiverse/quarkus-langchain4j#1553