Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2204

Investigate recent OIDC failures on MacOS on GitHub Actions

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None

    Description

      The tests for OIDC rely on spinning up a Keycloak instance using the testcontainers library.

      Yesterday, we were able to get a successful run of OidcTest on both Ubuntu and MacOS (see https://github.com/wildfly-security/wildfly-elytron/actions/runs/1214079555):

      Running org.wildfly.security.http.oidc.OidcTest
      Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 128.365 sec - in org.wildfly.security.http.oidc.OidcTest
      

       
      Today, the MacOS run started failing, although no significant changes have been pushed that would result in a new failure (see https://github.com/wildfly-security/wildfly-elytron/actions/runs/1217712218):

       

      org.testcontainers.containers.ContainerLaunchException: Container startup failed 
      [4199|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4199] at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:330) 
      [4200|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4200] at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:311) 
      [4201|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4201] at org.wildfly.security.http.oidc.OidcTest.startTestContainers(OidcTest.java:99) 
      [4202|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4202]Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception 
      [4203|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4203] at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88) 
      [4204|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4204] at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:323) 
      [4205|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4205] ... 2 more 
      [4206|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4206]Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container 
      [4207|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4207] at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:497) 
      [4208|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4208] at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:325) 
      [4209|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4209] at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81) 
      [4210|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4210] ... 3 more 
      [4211|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4211]Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for URL to be accessible ([http://192.168.99.100:32770/auth] should return HTTP 200) 
      [4212|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4212] at org.testcontainers.containers.wait.strategy.HttpWaitStrategy.waitUntilReady(HttpWaitStrategy.java:264) 
      [4213|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4213] at org.testcontainers.containers.wait.strategy.AbstractWaitStrategy.waitUntilReady(AbstractWaitStrategy.java:35) 
      [4214|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4214] at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:892) 
      [4215|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4215] at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:440) 
      [4216|https://github.com/wildfly-security/wildfly-elytron/runs/3560111099?check_suite_focus=true#step:7:4216] ... 5 more
      

      The failures appear to be intermittent since we had another successful run today before it started to fail again.

      It looks like the Keycloak container cannot start up for some reason. Need to figure out what has changed.

      I have temporarily commented out the Docker installation for macOS to prevent OidcTest from running there.

      https://github.com/wildfly-security/wildfly-elytron/pull/1569/commits/4b423fbd87c293c428e7dd45851357c55ffec507

      It might be helpful to try debugging with this simpler PR that just starts up the Keycloak container:

      https://github.com/wildfly-security/wildfly-elytron/pull/1527 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fjuma1@redhat.com Farah Juma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: