akka / akka-projection

Akka Projections is intended for building systems with the CQRS pattern, and facilitate in event-based service-to-service communication.
https://doc.akka.io/libraries/akka-projection/current/
Other
102 stars 35 forks source link

Incompatible Testcontainer Oracle image #644

Open octonato opened 2 years ago

octonato commented 2 years ago

Not clear how we get to this. This used to work.

Need to check if is consistently failing or sporadically.

https://github.com/akka/akka-projection/runs/5160989914?check_suite_focus=true#step:7:210 and in https://github.com/akka/akka-projection/runs/5160990184?check_suite_focus=true#step:7:169

[info] akka.projection.jdbc.OracleJdbcOffsetStoreSpec *** ABORTED *** (4 milliseconds)
[info]   java.lang.IllegalStateException: Failed to verify that image 'oracleinanutshell/oracle-xe-11g:1.0.0' is a compatible substitute for 'gvenzl/oracle-xe'. This generally means that you are trying to use an image that Testcontainers has not been designed to use. If this is deliberate, and if you are confident that the image is compatible, you should declare compatibility in code using the `asCompatibleSubstituteFor` method. For example:
[info]    DockerImageName myImage = DockerImageName.parse("oracleinanutshell/oracle-xe-11g:1.0.0").asCompatibleSubstituteFor("gvenzl/oracle-xe");
[info] and then use `myImage` instead.
[info]   at org.testcontainers.utility.DockerImageName.assertCompatibleWith(DockerImageName.java:248)
[info]   at org.testcontainers.containers.OracleContainer.<init>(OracleContainer.java:64)
[info]   at org.testcontainers.containers.OracleContainer.<init>(OracleContainer.java:59)
[info]   at akka.projection.jdbc.JdbcContainerOffsetStoreSpec$OracleSpecConfig$.newContainer(JdbcContainerOffsetStoreSpec.scala:108)
[info]   at akka.projection.jdbc.JdbcContainerOffsetStoreSpec$OracleSpecConfig$.newContainer(JdbcContainerOffsetStoreSpec.scala:101)
[info]   at akka.projection.jdbc.JdbcContainerOffsetStoreSpec$ContainerJdbcSpecConfig.initContainer(JdbcContainerOffsetStoreSpec.scala:57)
[info]   at akka.projection.jdbc.JdbcOffsetStoreSpec.$anonfun$beforeAll$1(JdbcOffsetStoreSpec.scala:131)
[info]   at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
[info]   at scala.util.Try$.apply(Try.scala:210)
octonato commented 2 years ago

I will close this. I have run a few other builds today and didn't see it failing again.

octonato commented 2 years ago

Closed it too earlier. Just got another failure.

octonato commented 2 years ago

Oh gosh! The error is consistent and it happens each time on this PR: https://github.com/akka/akka-projection/pull/639 And the PR is updating Testcontainers. Need to see if it's worth updating the image or ignoring #639 for now.