You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "treblereel (via GitHub)" <gi...@apache.org> on 2024/06/21 14:30:14 UTC

[PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

treblereel opened a new pull request, #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074

   issue: https://github.com/apache/incubator-kie-issues/issues/1324
   jira: https://issues.redhat.com/browse/SRVLOGIC-324


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "treblereel (via GitHub)" <gi...@apache.org>.
treblereel commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2223456173

   @domhanak I don't think we need tests here, all we need is to check the fix is ok. Moreover, fwiv it's not that easy to write tests for this case. But if you think we need it, let me know, maybe we can merge it as is (in case fix is ok) and create a separate issue for tests


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "domhanak (via GitHub)" <gi...@apache.org>.
domhanak commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2216787748

   @treblereel where did I say that? :D unrelated flaky tests should be reported in an issue and we can disregard them :)
   
   On the other hand, to test this with `kn workflow plugin` - do you have steps to build this with the CLI?
   I assume Apps -> kie-tools is the order but not sure what is the current state of kie-tools and the weekly snapshot problem. Any clues?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "treblereel (via GitHub)" <gi...@apache.org>.
treblereel commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2216629779

   @ricardozanini @wmedvede @dgutierr
   
   From what I see, this error is not related to the PR. Moreover, the other PRs also contain the same error (3 out of 4). I agree with @domhanak, who suggests investigating this. WDYT?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "kie-ci3 (via GitHub)" <gi...@apache.org>.
kie-ci3 commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2216385735

   
   **PR job** `#3` was: **UNSTABLE**
   Possible explanation: This should be test failures
   
   
   <details>
   <summary><b>Reproducer</b></summary>
   
   
   
   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
   
   </details>
   
   
   Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-apps-pr/job/PR-2074/3/display/redirect
   
   **Test results:**
   - PASSED: 1661
   - FAILED: 4
   
   Those are the test failures: 
   <details>
   <summary><a href="https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-apps-pr/job/PR-2074/3/testReport/org.kie.kogito.index.infinispan/ProcessDataIndexInfinispanHttpIT/testProcessInstanceEvents/">org.kie.kogito.index.infinispan.ProcessDataIndexInfinispanHttpIT.testProcessInstanceEvents</a></summary>
   1 expectation failed.<br/>JSON path data.UserTaskInstances[0].potentialGroups[0] doesn't match.<br/>Expected: managers<br/>  Actual: null<br/>
   </details>
   <details>
   <summary><a href="https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-apps-pr/job/PR-2074/3/testReport/org.kie.kogito.index.mongodb/ProcessDataIndexMongoDBHttpIT/testProcessInstanceEvents/">org.kie.kogito.index.mongodb.ProcessDataIndexMongoDBHttpIT.testProcessInstanceEvents</a></summary>
   1 expectation failed.<br/>JSON path data.UserTaskInstances[0].potentialGroups[0] doesn't match.<br/>Expected: managers<br/>  Actual: null<br/>
   </details>
   <details>
   <summary><a href="https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-apps-pr/job/PR-2074/3/testReport/org.kie.kogito.index.mongodb/ProcessDataIndexMongoDBKafkaIT/testProcessInstanceEvents/">org.kie.kogito.index.mongodb.ProcessDataIndexMongoDBKafkaIT.testProcessInstanceEvents</a></summary>
   Cannot invoke method size() on null object
   </details>
   <details>
   <summary><a href="https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-apps-pr/job/PR-2074/3/testReport/org.kie.kogito.index/ProcessDataIndexMongoDBIT/testProcessInstanceEvents/">org.kie.kogito.index.ProcessDataIndexMongoDBIT.testProcessInstanceEvents</a></summary>
   Cannot invoke method size() on null object
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "treblereel (via GitHub)" <gi...@apache.org>.
treblereel commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2224900343

   @domhanak thank you
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "domhanak (via GitHub)" <gi...@apache.org>.
domhanak commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2217034175

   @treblereel Worked well, I was able to finish the use case of live reload properly.
   One thing that kinda alarms me is that we are not having any unit or integration test here to verify this issue.
   
   Do you think we could add a test to check this cause:  `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`. Let me know please


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "treblereel (via GitHub)" <gi...@apache.org>.
treblereel commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2218214515

   @domhanak here https://github.com/apache/incubator-kie-kogito-apps/pull/1530#issuecomment-2044202536 :)
   
   hmm, for some unknown reason, it's green today :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "domhanak (via GitHub)" <gi...@apache.org>.
domhanak commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2220015232

   @treblereel Yea sometimes the CI is slower, depends on the machine and fails.
   
   The comment you are referencing point to different PR, is that right?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "domhanak (via GitHub)" <gi...@apache.org>.
domhanak commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2224874665

   Ack, created one for me for E2E here - https://github.com/apache/incubator-kie-issues/issues/1380
   If you have an idea how to check this on lower levels of testing please create something similar.
   Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "domhanak (via GitHub)" <gi...@apache.org>.
domhanak merged PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] [incubator-kie-issues-1324] Live reload does not work for KN CLI plugin [incubator-kie-kogito-apps]

Posted by "treblereel (via GitHub)" <gi...@apache.org>.
treblereel commented on PR #2074:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2182135234

   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`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org