aldettinger commented on PR #6894:
URL: https://github.com/apache/camel-quarkus/pull/6894#issuecomment-2577227643

   Windows tests are failing with stack trace below:
   
   ```
   2025-01-07T22:19:49.8832513Z [INFO] Running 
org.apache.camel.quarkus.component.langchain4j.chat.it.LangChain4jChatTest
   2025-01-07T22:19:57.9466490Z 2025-01-07 22:19:57,888 INFO  
[org.tes.DockerClientFactory] (build-27) Testcontainers version: 1.20.4
   2025-01-07T22:19:58.5939022Z 2025-01-07 22:19:58,514 INFO  
[org.tes.doc.DockerClientProviderStrategy] (build-27) Found Docker environment 
with local Npipe socket (npipe:////./pipe/docker_engine)
   2025-01-07T22:19:58.5940496Z 2025-01-07 22:19:58,514 WARN  
[org.tes.doc.DockerClientProviderStrategy] (build-27) windows is currently not 
supported
   ...
   ...
   2025-01-07T22:20:21.3951577Z 2025-01-07 22:20:21,381 INFO  
[org.tes.ima.PullPolicy] (build-27) Image pull policy will be performed by: 
DefaultPullPolicy()
   2025-01-07T22:20:21.4399651Z 2025-01-07 22:20:21,394 INFO  
[org.tes.uti.ImageNameSubstitutor] (build-27) Image name substitution will be 
performed by: DefaultImageNameSubstitutor (composite of 
'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
   2025-01-07T22:20:21.4401537Z 2025-01-07 22:20:21,394 INFO  
[org.tes.DockerClientFactory] (build-27) Testcontainers version: 1.20.4
   2025-01-07T22:20:21.4851378Z [ERROR] Tests run: 3, Failures: 0, Errors: 1, 
Skipped: 2, Time elapsed: 31.59 s <<< FAILURE! -- in 
org.apache.camel.quarkus.component.langchain4j.chat.it.LangChain4jChatTest
   2025-01-07T22:20:21.4854061Z [ERROR] 
org.apache.camel.quarkus.component.langchain4j.chat.it.LangChain4jChatTest.simpleMessage
 -- Time elapsed: 0.016 s <<< ERROR!
   2025-01-07T22:20:21.4856766Z java.lang.RuntimeException: 
   2025-01-07T22:20:21.4857667Z java.lang.RuntimeException: 
io.quarkus.builder.BuildException: Build failure: Build failed due to errors
   2025-01-07T22:20:21.4860579Z         [error]: Build step 
io.quarkiverse.langchain4j.ollama.deployment.devservices.OllamaDevServicesProcessor#startOllamaDevService
 threw an exception: java.lang.RuntimeException: 
java.lang.IllegalStateException: Previous attempts to find a Docker environment 
failed. Will not retry. Please see logs and check configuration
   2025-01-07T22:20:21.4863791Z         at 
io.quarkiverse.langchain4j.ollama.deployment.devservices.OllamaDevServicesProcessor.startOllamaDevService(OllamaDevServicesProcessor.java:109)
   2025-01-07T22:20:21.4865622Z         at 
java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
   2025-01-07T22:20:21.4866682Z         at 
io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
   2025-01-07T22:20:21.4867563Z         at 
io.quarkus.builder.BuildContext.run(BuildContext.java:256)
   2025-01-07T22:20:21.4868391Z         at 
org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
   2025-01-07T22:20:21.4869374Z         at 
org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675)
   2025-01-07T22:20:21.4870613Z         at 
org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654)
   2025-01-07T22:20:21.4871743Z         at 
org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627)
   2025-01-07T22:20:21.4872927Z         at 
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594)
   2025-01-07T22:20:21.4873846Z         at 
java.base/java.lang.Thread.run(Thread.java:840)
   2025-01-07T22:20:21.4874525Z         at 
org.jboss.threads.JBossThread.run(JBossThread.java:499)
   2025-01-07T22:20:21.4875803Z Caused by: java.lang.IllegalStateException: 
Previous attempts to find a Docker environment failed. Will not retry. Please 
see logs and check configuration
   2025-01-07T22:20:21.4877740Z         at 
org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:229)
   2025-01-07T22:20:21.4879319Z         at 
org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:154)
   2025-01-07T22:20:21.4880600Z         at 
org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:196)
   2025-01-07T22:20:21.4881721Z         at 
org.testcontainers.DockerClientFactory$1.getDockerClient(DockerClientFactory.java:108)
   2025-01-07T22:20:21.4882850Z         at 
com.github.dockerjava.api.DockerClientDelegate.infoCmd(DockerClientDelegate.java:119)
   2025-01-07T22:20:21.4883934Z         at 
org.testcontainers.ollama.OllamaContainer.<init>(OllamaContainer.java:35)
   2025-01-07T22:20:21.4885188Z         at 
io.quarkiverse.langchain4j.ollama.deployment.devservices.OllamaContainer.<init>(OllamaContainer.java:43)
   2025-01-07T22:20:21.4886963Z         at 
io.quarkiverse.langchain4j.ollama.deployment.devservices.OllamaDevServicesProcessor.startOllama(OllamaDevServicesProcessor.java:167)
   2025-01-07T22:20:21.4889141Z         at 
io.quarkiverse.langchain4j.ollama.deployment.devservices.OllamaDevServicesProcessor.startOllamaDevService(OllamaDevServicesProcessor.java:99)
   2025-01-07T22:20:21.4890502Z         ... 10 more
   ```
   
   @zbendhiba Dev service should not be triggered during langchain4j-chat tests 
? As we intend to use mock.
   
   Then, the issue could probably be linked to `quarkus-langchain4j-ollama` dev 
services being [default enabled in 
0.23.x](https://github.com/quarkiverse/quarkus-langchain4j/blob/main/model-providers/ollama/deployment/src/main/java/io/quarkiverse/langchain4j/ollama/deployment/devservices/OllamaDevServicesBuildConfig.java#L21)
 ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to