apache / incubator-kie-kogito-apps

Kogito Apps - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
http://kogito.kie.org
Apache License 2.0
56 stars 123 forks source link

[incubator-kie-issues-1324] Live reload does not work for KN CLI plugin #2074

Open treblereel opened 2 weeks ago

treblereel commented 2 weeks ago

issue: https://github.com/apache/incubator-kie-issues/issues/1324

treblereel commented 2 weeks ago

The cause of this issue is that we continue to send the heartbeat when the CDI container is already shutting down and the PostgreSqlJobServiceManagementRepository is unable to obtain the PgPool. The fix involves stopping the heartbeat first (by checking isLeader()).

This issue can be easily reproduced using the examples/jbpm-compact-architecture-example with the command mvn clean package quarkus:dev -Pdevelopment. To trigger the rebuild just edit CandidateData.java or Offer.java and reload the http://localhost:8080/q/dev-ui/extensions

To verify the fix, build incubator-kie-kogito-apps followed by incubator-kie-tools, replacing 999-20240509-SNAPSHOT with 999-SNAPSHOT.

treblereel commented 2 weeks ago

@ricardozanini ^^

kie-ci3 commented 2 weeks ago

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 https://github.com/apache/incubator-kie-kogito-apps/pull/2074 --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-2074/1/display/redirect

Test results:

Those are the test failures:

org.kie.kogito.index.ProcessDataIndexMongoDBIT.testProcessInstanceEvents 1 expectation failed.
JSON path errors doesn't match.
Expected: null
Actual: <[{message=Exception while fetching data (/UserTaskInstances[0]/schema) : Runtime service URL not defined, please review the kogito.service.url system property to point the public URL for this runtime., locations=[{line=1, column=85}], path=[UserTaskInstances, 0, schema], extensions={classification=DataFetchingException}}]>
kie-ci3 commented 1 week ago

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 https://github.com/apache/incubator-kie-kogito-apps/pull/2074 --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-2074/2/display/redirect

Test results:

Those are the test failures:

org.kie.kogito.index.service.InfinispanDomainIndexingServiceIT.testConcurrentProcessInstanceIndex Assertion condition defined as a org.kie.kogito.index.service.AbstractIndexingServiceIT 1 expectation failed.
JSON path data.ProcessInstances[0].state doesn't match.
Expected: is "COMPLETED"
Actual: ACTIVE
within 30 seconds.