Skip to content

Unstable test result in kie-kogito-examples for org.acme.AcmeExchangeResourceIT.unauthorizedTest #2073

Open

Description

@domhanak

Describe the bug

Summary

A test org.acme.AcmeExchangeResourceIT.unauthorizedTest
Location: https://github.com/apache/incubator-kie-kogito-examples/blob/main/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/test/java/org/acme/AcmeExchangeResourceIT.java

Stacktrace:

java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
 [error]: Build step io.quarkus.oidc.deployment.devservices.keycloak.KeycloakDevServicesProcessor#startKeycloakContainer threw an exception: java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Container startup failed for image quay.io/keycloak/keycloak:23.0.7
 at io.quarkus.oidc.deployment.devservices.keycloak.KeycloakDevServicesProcessor.startKeycloakContainer(KeycloakDevServicesProcessor.java:249)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
 at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
 at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
 at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
 at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
 at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
 at java.base/java.lang.Thread.run(Thread.java:840)
 at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed for image quay.io/keycloak/keycloak:23.0.7
 at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:359)
 at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:330)
 at io.quarkus.oidc.deployment.devservices.keycloak.KeycloakDevServicesProcessor.lambda$startContainer$4(KeycloakDevServicesProcessor.java:376)
 at java.base/java.util.Optional.orElseGet(Optional.java:364)
 at io.quarkus.oidc.deployment.devservices.keycloak.KeycloakDevServicesProcessor.startContainer(KeycloakDevServicesProcessor.java:401)
 at io.quarkus.oidc.deployment.devservices.keycloak.KeycloakDevServicesProcessor.startKeycloakContainer(KeycloakDevServicesProcessor.java:197)
 ... 11 more
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
 at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88)
 at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:344)
 ... 16 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
 at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:563)
 at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:354)
 at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
 ... 17 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for log output matching '.*Keycloak.*started.*'
 at org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy.waitUntilReady(LogMessageWaitStrategy.java:47)
 at org.testcontainers.containers.wait.strategy.AbstractWaitStrategy.waitUntilReady(AbstractWaitStrategy.java:52)
 at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:909)
 at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:500)

Expected behavior

Test does not fail intermittently

Actual behavior

Test does fail intermittently

How to Reproduce?

Run pull request checks.

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Activity

  1. domhanak commented on Feb 17, 2025

    @domhanak
    ContributorAuthor

    @ricardozanini @fjtirado noticing this test failing a lot in PR's. Wdyt about this example do we need it, want it?

  2. wmedvede commented on Feb 17, 2025

    @wmedvede
    Contributor

    @domhanak AFAIK, this is the only example that contains a real authentication use case, so we must keep it.

  3. domhanak commented on Feb 17, 2025

    @domhanak
    ContributorAuthor

    Ok, will check why the intermittent fails.

  4. removed their assignment
    on Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions