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

NO-ISSUE: Fix Git tag creation in the weekly deploy Jenkins job execution #2098

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

rodrigonull
Copy link
Contributor

This PR updates the tag creation during the weekly deploy job execution to commit the changes (version update) before pushing the new tag.

@kie-ci3
Copy link
Contributor

kie-ci3 commented Sep 10, 2024

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-apps -u #2098 --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-apps-pr/job/PR-2098/1/display/redirect

Test results:

  • PASSED: 1694
  • FAILED: 4

Those are the test failures:

org.kie.kogito.index.mongodb.ProcessDataIndexMongoDBHttpIT.testProcessInstanceEvents 1 expectation failed.
JSON path data.UserTaskInstances[0].potentialGroups[0] doesn't match.
Expected: managers
Actual: null
org.kie.kogito.index.mongodb.ProcessDataIndexMongoDBKafkaIT.testProcessInstanceEvents 1 expectation failed.
JSON path data.UserTaskInstances[0].potentialGroups[0] doesn't match.
Expected: managers
Actual: null
org.kie.kogito.index.ProcessDataIndexMongoDBIT.testProcessInstanceEvents Cannot invoke method size() on null object
org.kie.kogito.jobs.embedded.EmbeddedJobsServiceTest.testJobService java.util.ConcurrentModificationException
at java.base/java.util.ArrayList.forEach(ArrayList.java:1513)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1092)
at org.kie.kogito.jobs.embedded.EmbeddedJobsServiceTest.testJobService(EmbeddedJobsServiceTest.java:99)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.quarkus.test.junit.QuarkusTestExtension.runExtensionMethod(QuarkusTestExtension.java:1013)
at io.quarkus.test.junit.QuarkusTestExtension.interceptTestMethod(QuarkusTestExtension.java:827)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

@tiagobento tiagobento merged commit 13ac288 into apache:main Sep 10, 2024
1 of 2 checks passed
@kie-ci3
Copy link
Contributor

kie-ci3 commented Sep 10, 2024

PR job #2 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-apps -u #2098 --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-apps-pr/job/PR-2098/2/display/redirect

Test results:

  • PASSED: 1674
  • FAILED: 21

Those are the test failures:

org.kie.kogito.index.mongodb.ProcessDataIndexMongoDBHttpIT.testProcessInstanceEvents 1 expectation failed.
JSON path data.UserTaskInstances[0].potentialGroups[0] doesn't match.
Expected: managers
Actual: null
org.kie.kogito.index.mongodb.ProcessDataIndexMongoDBKafkaIT.testProcessInstanceEvents 1 expectation failed.
JSON path data.UserTaskInstances[0].potentialGroups[0] doesn't match.
Expected: managers
Actual: null
org.kie.kogito.index.ProcessDataIndexMongoDBIT.testProcessInstanceEvents Cannot invoke method size() on null object
org.kie.kogito.index.service.InfinispanDomainIndexingServiceIT.testIndexingDomainParallelEvents Cannot invoke method size() on null object
org.kie.kogito.index.service.InfinispanDomainIndexingServiceIT.testAddProtoFile Assertion condition defined as a org.kie.kogito.index.service.AbstractIndexingServiceIT 1 expectation failed.
JSON path data.UserTaskInstances[0].id doesn't match.
Expected: is "25f43a03-fea4-4ffc-be60-ad700eab71b2"
Actual: null
within 30 seconds.
org.kie.kogito.index.service.InfinispanDomainIndexingServiceIT.testIndexingDomainUsingUserTaskEventFirst 1 expectation failed.
JSON path data.Travels[0].id doesn't match.
Expected: is "ffffd7c1-4bae-4afd-a56d-058c05040dcf"
Actual: null
org.kie.kogito.index.service.InfinispanDomainIndexingServiceIT.testIndexingDomainUsingProcessEventFirst Cannot invoke method size() on null object
org.kie.kogito.index.service.graphql.InfinispanWebSocketSubscriptionIT.testUserTaskInstanceSubscription java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095)
at org.kie.kogito.index.service.graphql.AbstractWebSocketSubscriptionIT.assertUserTaskInstanceSubscription(AbstractWebSocketSubscriptionIT.java:197)
at org.kie.kogito.index.service.graphql.AbstractWebSocketSubscriptionIT.testUserTaskInstanceSubscription(AbstractWebSocketSubscriptionIT.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.quarkus.test.junit.QuarkusTestExtension.runExtensionMethod(QuarkusTestExtension.java:1013)
at io.quarkus.test.junit.QuarkusTestExtension.interceptTestMethod(QuarkusTestExtension.java:827)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
org.kie.kogito.index.service.graphql.query.InfinispanGraphQLRuntimesQueriesIT.testGetTaskSchema
Wanted but not invoked:
kogitoRuntimeClient.getUserTaskSchema(
"http://localhost:8080",
,
"jdoe",
[managers, users, IT]
);
-> at org.kie.kogito.index.service.graphql.query.AbstractGraphQLRuntimesQueriesIT.testGetTaskSchema(AbstractGraphQLRuntimesQueriesIT.java:270)
Actually, there were zero interactions with this mock.
org.kie.kogito.index.service.graphql.query.InfinispanGraphQLRuntimesQueriesIT.testUpdateUserTaskInstance
Wanted but not invoked:
kogitoRuntimeClient.updateUserTaskInstance(
"http://localhost:8080",
,
"jdoe",
[managers, users, IT],

);
-> at org.kie.kogito.index.service.graphql.query.AbstractGraphQLRuntimesQueriesIT.testUpdateUserTaskInstance(AbstractGraphQLRuntimesQueriesIT.java:295)
Actually, there were zero interactions with this mock.
org.kie.kogito.index.service.graphql.query.InfinispanGraphQLRuntimesQueriesIT.testUpdateUserTaskInstanceAttachment
Wanted but not invoked:
kogitoRuntimeClient.updateUserTaskInstanceAttachment(
"http://localhost:8080",
,
"jdoe",
[managers, users, IT],
"4ceed6cb-8773-4651-bdbb-b2e08f61f083",
"attachmentName",
"http://localhost:8080"
);
-> at org.kie.kogito.index.service.graphql.query.AbstractGraphQLRuntimesQueriesIT.testUpdateUserTaskInstanceAttachment(AbstractGraphQLRuntimesQueriesIT.java:456)
Actually, there were zero interactions with this mock.
org.kie.kogito.index.service.graphql.query.InfinispanGraphQLRuntimesQueriesIT.testCreateTaskAttachment
Wanted but not invoked:
kogitoRuntimeClient.createUserTaskInstanceAttachment(
"http://localhost:8080",
,
"jdoe",
[managers, users, IT],
"attachment name",
"https://drive.google.com/file/d/1Z_Lipg2jzY9TNewTaskAttachmentUri"
);
-> at org.kie.kogito.index.service.graphql.query.AbstractGraphQLRuntimesQueriesIT.testCreateTaskAttachment(AbstractGraphQLRuntimesQueriesIT.java:421)
Actually, there were zero interactions with this mock.
org.kie.kogito.index.service.graphql.query.InfinispanGraphQLRuntimesQueriesIT.testDeleteUserTaskInstanceComment
Wanted but not invoked:
kogitoRuntimeClient.deleteUserTaskInstanceComment(
"http://localhost:8080",
,
"jdoe",
[managers, users, IT],
"5bf232fb-2ba8-4086-8965-07d5d20d223c"
);
-> at org.kie.kogito.index.service.graphql.query.AbstractGraphQLRuntimesQueriesIT.testDeleteUserTaskInstanceComment(AbstractGraphQLRuntimesQueriesIT.java:388)
Actually, there were zero interactions with this mock.
org.kie.kogito.index.service.graphql.query.InfinispanGraphQLRuntimesQueriesIT.testUpdateUserTaskInstanceComment
Wanted but not invoked:
kogitoRuntimeClient.updateUserTaskInstanceComment(
"http://localhost:8080",
,
"jdoe",
[managers, users, IT],
"d2a4f3f9-c59d-4510-ba62-f73c17ec1aec",
"commentContent"
);
-> at org.kie.kogito.index.service.graphql.query.AbstractGraphQLRuntimesQueriesIT.testUpdateUserTaskInstanceComment(AbstractGraphQLRuntimesQueriesIT.java:358)
Actually, there were zero interactions with this mock.
org.kie.kogito.index.service.graphql.query.InfinispanGraphQLRuntimesQueriesIT.testCreateTaskComment
Wanted but not invoked:
kogitoRuntimeClient.createUserTaskInstanceComment(
"http://localhost:8080",
,
"jdoe",
[managers, users, IT],
"Comment to add"
);
-> at org.kie.kogito.index.service.graphql.query.AbstractGraphQLRuntimesQueriesIT.testCreateTaskComment(AbstractGraphQLRuntimesQueriesIT.java:326)
Actually, there were zero interactions with this mock.
org.kie.kogito.index.service.graphql.query.InfinispanGraphQLRuntimesQueriesIT.testDeleteUserTaskInstanceAttachment
Wanted but not invoked:
kogitoRuntimeClient.deleteUserTaskInstanceAttachment(
"http://localhost:8080",
,
"jdoe",
[managers, users, IT],
"f013d572-7659-40f0-bddc-ffe8ec5132a3"
);
-> at org.kie.kogito.index.service.graphql.query.AbstractGraphQLRuntimesQueriesIT.testDeleteUserTaskInstanceAttachment(AbstractGraphQLRuntimesQueriesIT.java:487)
Actually, there were zero interactions with this mock.
org.kie.kogito.index.service.messaging.InfinispanDomainMessagingHttpConsumerIT.testUserTaskInstanceEvent Assertion condition defined as a org.kie.kogito.index.service.messaging.AbstractDomainMessagingConsumerIT 1 expectation failed.
JSON path data.Travels[0].id doesn't match.
Expected: is "2308e23d-9998-47e9-a772-a078cf5b891b"
Actual: null
within 30 seconds.
org.kie.kogito.index.service.messaging.InfinispanMessagingHttpConsumerIT.testUserTaskInstanceEvent Assertion condition defined as a org.kie.kogito.index.service.messaging.AbstractMessagingConsumerIT 1 expectation failed.
JSON path data.UserTaskInstances.size() doesn't match.
Expected: is <1>
Actual: <0>
within 30 seconds.
org.kie.kogito.jobs.service.resource.InfinispanJobResourceTest.cancelRunningNonPeriodicJobTest Assertion condition defined as a org.kie.kogito.jobs.service.resource.BaseJobResourceTest null within 2 seconds.
org.kie.kogito.jobs.service.messaging.kafka.stream.KafkaConfigurationTest.topicConfiguration Assertion condition defined as a org.kie.kogito.jobs.service.messaging.kafka.stream.KafkaConfigurationTest
Expecting KeySet:
[]
to contain:
["dbac0b34-0c7e-4e4c-a83b-5fbff40765f2"]
but could not find the following element(s):
["dbac0b34-0c7e-4e4c-a83b-5fbff40765f2"]
within 4 seconds.
org.kie.kogito.jobs.service.resource.KeycloakPostgreSqlJobResourceTest.(?) java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.datasource.deployment.devservices.DevServicesDatasourceProcessor#launchDatabases threw an exception: java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Container startup failed for image docker.io/postgres:14
at io.quarkus.datasource.deployment.devservices.DevServicesDatasourceProcessor.startDevDb(DevServicesDatasourceProcessor.java:363)
at io.quarkus.datasource.deployment.devservices.DevServicesDatasourceProcessor.launchDatabases(DevServicesDatasourceProcessor.java:142)
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 docker.io/postgres:14
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:359)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:330)
at io.quarkus.devservices.postgresql.deployment.PostgresqlDevServicesProcessor$1.startDatabase(PostgresqlDevServicesProcessor.java:74)
at io.quarkus.datasource.deployment.devservices.DevServicesDatasourceProcessor.startDevDb(DevServicesDatasourceProcessor.java:289)
... 12 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)
... 15 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)
... 16 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for log output matching '(.*database system is ready to accept connections.*\s)?(.*PostgreSQL Database directory appears to contain a database; Skipping initialization:*\s)?'
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.PostgreSQLContainer.waitUntilContainerStarted(PostgreSQLContainer.java:147)
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:500)
... 18 more

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.

4 participants