Skip to content
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

[Fixes_kie_issues_1749] Switch dockerhub to a mirrored registry #3828

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gmunozfe
Copy link
Contributor

@gmunozfe gmunozfe commented Jan 15, 2025

Many thanks for submitting your Pull Request ❤️!

Closes/Fixes/Resolves kie-issues#1749

Please make sure that your PR meets the following requirements:

  • You have read the contributors guide
  • Your code is properly formatted according to this configuration
  • Pull Request title is properly formatted: Issue-XYZ Subject
  • Pull Request title contains the target branch if not targeting main: [0.9.x] Issue-XYZ Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains link to any dependent or related Pull Request
  • Pull Request contains description of the issue
  • Pull Request does not include fixes for issues other than the main ticket
How to replicate CI configuration locally?

Build Chain tool does "simple" maven build(s), the builds are just Maven commands, but because the repositories relates and depends on each other and any change in API or class method could affect several of those repositories there is a need to use build-chain tool to handle cross repository builds and be sure that we always use latest version of the code for each repository.

build-chain tool is a build tool which can be used on command line locally or in Github Actions workflow(s), in case you need to change multiple repositories and send multiple dependent pull requests related with a change you can easily reproduce the same build by executing it on Github hosted environment or locally in your development environment. See local execution details to get more information about it.

@gmunozfe gmunozfe requested review from domhanak and fjtirado January 15, 2025 01:05
@gmunozfe gmunozfe force-pushed the Fixes_kie_issues_1749 branch from e43cfcf to a1854eb Compare January 15, 2025 02:08
@kie-ci3
Copy link
Contributor

kie-ci3 commented Jan 15, 2025

PR job #1 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-runtimes -u #3828 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-runtimes-pr/job/PR-3828/1/display/redirect

Test results:

  • PASSED: 2414
  • FAILED: 7

Those are the test failures:

org.kie.flyway.initializer.KieFlywayInitializerTest.(?) java.lang.ExceptionInInitializerError
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1155)
at java.base/java.lang.reflect.Field.acquireFieldAccessor(Field.java:1132)
at java.base/java.lang.reflect.Field.getFieldAccessor(Field.java:1113)
at java.base/java.lang.reflect.Field.get(Field.java:425)
at org.testcontainers.junit.jupiter.TestcontainersExtension.getContainerInstance(TestcontainersExtension.java:252)
at org.testcontainers.junit.jupiter.TestcontainersExtension.lambda$findSharedContainers$10(TestcontainersExtension.java:213)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.testcontainers.junit.jupiter.TestcontainersExtension.findSharedContainers(TestcontainersExtension.java:214)
at org.testcontainers.junit.jupiter.TestcontainersExtension.beforeAll(TestcontainersExtension.java:54)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.IllegalStateException: Failed to verify that image 'mirror.gcr.io/postgres:15.9-alpine3.20' is a compatible substitute for 'postgres'. 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:
DockerImageName myImage = DockerImageName.parse("mirror.gcr.io/postgres:15.9-alpine3.20").asCompatibleSubstituteFor("postgres");
and then use `myImage` instead.
at org.testcontainers.utility.DockerImageName.assertCompatibleWith(DockerImageName.java:279)
at org.testcontainers.containers.PostgreSQLContainer.(PostgreSQLContainer.java:56)
at org.testcontainers.containers.PostgreSQLContainer.(PostgreSQLContainer.java:51)
at org.kie.kogito.testcontainers.KogitoPostgreSqlContainer.(KogitoPostgreSqlContainer.java:43)
at org.kie.flyway.initializer.KieFlywayInitializerTest.(KieFlywayInitializerTest.java:47)
... 17 more
org.kie.persistence.jdbc.PostgreSqlProcessInstancesIT.(?) Could not initialize class org.kie.persistence.jdbc.PostgreSqlProcessInstancesIT
org.kie.persistence.jdbc.PostgreSqlProcessInstancesLockIT.(?) java.lang.ExceptionInInitializerError
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1155)
at java.base/java.lang.reflect.Field.acquireFieldAccessor(Field.java:1132)
at java.base/java.lang.reflect.Field.getFieldAccessor(Field.java:1113)
at java.base/java.lang.reflect.Field.get(Field.java:425)
at org.testcontainers.junit.jupiter.TestcontainersExtension.getContainerInstance(TestcontainersExtension.java:252)
at org.testcontainers.junit.jupiter.TestcontainersExtension.lambda$findSharedContainers$10(TestcontainersExtension.java:213)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.testcontainers.junit.jupiter.TestcontainersExtension.findSharedContainers(TestcontainersExtension.java:214)
at org.testcontainers.junit.jupiter.TestcontainersExtension.beforeAll(TestcontainersExtension.java:54)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.IllegalStateException: Failed to verify that image 'mirror.gcr.io/postgres:15.9-alpine3.20' is a compatible substitute for 'postgres'. 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:
DockerImageName myImage = DockerImageName.parse("mirror.gcr.io/postgres:15.9-alpine3.20").asCompatibleSubstituteFor("postgres");
and then use `myImage` instead.
at org.testcontainers.utility.DockerImageName.assertCompatibleWith(DockerImageName.java:279)
at org.testcontainers.containers.PostgreSQLContainer.(PostgreSQLContainer.java:56)
at org.testcontainers.containers.PostgreSQLContainer.(PostgreSQLContainer.java:51)
at org.kie.kogito.testcontainers.KogitoPostgreSqlContainer.(KogitoPostgreSqlContainer.java:43)
at org.kie.persistence.jdbc.PostgreSqlProcessInstancesIT.(PostgreSqlProcessInstancesIT.java:33)
... 17 more
org.kie.persistence.jdbc.correlation.JDBCCorrelationServiceIT.(?) java.lang.ExceptionInInitializerError
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1155)
at java.base/java.lang.reflect.Field.acquireFieldAccessor(Field.java:1132)
at java.base/java.lang.reflect.Field.getFieldAccessor(Field.java:1113)
at java.base/java.lang.reflect.Field.get(Field.java:425)
at org.testcontainers.junit.jupiter.TestcontainersExtension.getContainerInstance(TestcontainersExtension.java:252)
at org.testcontainers.junit.jupiter.TestcontainersExtension.lambda$findSharedContainers$10(TestcontainersExtension.java:213)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.testcontainers.junit.jupiter.TestcontainersExtension.findSharedContainers(TestcontainersExtension.java:214)
at org.testcontainers.junit.jupiter.TestcontainersExtension.beforeAll(TestcontainersExtension.java:54)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.IllegalStateException: Failed to verify that image 'mirror.gcr.io/postgres:15.9-alpine3.20' is a compatible substitute for 'postgres'. 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:
DockerImageName myImage = DockerImageName.parse("mirror.gcr.io/postgres:15.9-alpine3.20").asCompatibleSubstituteFor("postgres");
and then use `myImage` instead.
at org.testcontainers.utility.DockerImageName.assertCompatibleWith(DockerImageName.java:279)
at org.testcontainers.containers.PostgreSQLContainer.(PostgreSQLContainer.java:56)
at org.testcontainers.containers.PostgreSQLContainer.(PostgreSQLContainer.java:51)
at org.kie.kogito.testcontainers.KogitoPostgreSqlContainer.(KogitoPostgreSqlContainer.java:43)
at org.kie.persistence.jdbc.correlation.JDBCCorrelationServiceIT.(JDBCCorrelationServiceIT.java:44)
... 17 more
org.kie.kogito.testcontainers.KogitoPostgreSqlContainerTest.shouldAddDefaultSettings Failed to verify that image 'mirror.gcr.io/postgres:15.9-alpine3.20' is a compatible substitute for 'postgres'. 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:
DockerImageName myImage = DockerImageName.parse("mirror.gcr.io/postgres:15.9-alpine3.20").asCompatibleSubstituteFor("postgres");
and then use `myImage` instead.
org.kie.kogito.testcontainers.KogitoPostgreSqlContainerTest.shouldGetResourceName Failed to verify that image 'mirror.gcr.io/postgres:15.9-alpine3.20' is a compatible substitute for 'postgres'. 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:
DockerImageName myImage = DockerImageName.parse("mirror.gcr.io/postgres:15.9-alpine3.20").asCompatibleSubstituteFor("postgres");
and then use `myImage` instead.
org.kie.kogito.testcontainers.KogitoPostgreSqlContainerTest.shouldGetMapperPort Failed to verify that image 'mirror.gcr.io/postgres:15.9-alpine3.20' is a compatible substitute for 'postgres'. 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:
DockerImageName myImage = DockerImageName.parse("mirror.gcr.io/postgres:15.9-alpine3.20").asCompatibleSubstituteFor("postgres");
and then use `myImage` instead.

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jan 16, 2025

PR job #7 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-runtimes -u #3828 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-runtimes-pr/job/PR-3828/7/display/redirect

Test results:

  • PASSED: 2443
  • FAILED: 2

Those are the test failures:

org.kie.kogito.testcontainers.KogitoMongoDBContainerTest.shouldGetDockerImageName
expected: "library/mongo:4.4.14"
but was: "mirror.gcr.io/library/mongo:4.4.14"
org.kie.kogito.testcontainers.quarkus.MongoDBQuarkusTestResourceTest.shouldGetDockerImageName expected: but was:

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jan 16, 2025

PR job #8 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-runtimes -u #3828 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-runtimes-pr/job/PR-3828/8/display/redirect

Test results:

  • PASSED: 3523
  • FAILED: 2

Those are the test failures:

org.kie.kogito.testcontainers.quarkus.MongoDBQuarkusTestResourceTest.shouldGetDockerImageName expected: but was:
org.kie.kogito.testcontainers.springboot.MongoDBSpringBootTestResourceTest.shouldGetDockerImageName expected: but was:

@gmunozfe gmunozfe force-pushed the Fixes_kie_issues_1749 branch from a820f79 to c4823b2 Compare January 16, 2025 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch dockerhub to a mirrored registry
2 participants