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

[incubator-kie-issues-1131] test migration from V7 to code generation-9 #3596

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

Abhitocode
Copy link
Contributor

@Abhitocode Abhitocode commented Jul 31, 2024

In addition to previous changes associated,
Migrated tests within EndEventTest.Java

The test can be identified by referring to EndEventTest.java:
https://github.com/apache/incubator-kie-kogito-runtimes/blob/main/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/EndEventTest.java

Closes apache/incubator-kie-issues#1131.

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 31, 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-runtimes -u #3596 --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-3596/1/display/redirect

Test results:

  • PASSED: 2241
  • FAILED: 1

Those are the test failures:

org.kie.kogito.quarkus.workflows.AsyncAPIIT.testConsumer java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for details


assertThat(processInstance.status()).isEqualTo(org.jbpm.process.instance.ProcessInstance.STATE_COMPLETED);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test misses a check to verify if the end signal is actually sent and contains the data.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will go through the test again and update

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I have to implement using any signal handlers but couldnt find any signal handler inherited from kogitoWorkItemHandler, is there any other solution?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/jbpm-tests/src/test/java/org/jbpm/test/utils/ReceiveTaskTestHandler.java
/jbpm-tests/src/test/java/org/jbpm/test/utils/SendTaskTestHandler.java

@Abhitocode Abhitocode force-pushed the incubator-kie-issues-1131-9 branch from c590fbc to 1852bba Compare August 2, 2024 05:42
@Abhitocode Abhitocode force-pushed the incubator-kie-issues-1131-9 branch from 1852bba to d50e3dc Compare August 8, 2024 02:13
@elguardian elguardian marked this pull request as ready for review August 8, 2024 06:39
Copy link
Contributor

@martinweiler martinweiler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comment related to the testSignalEndWithData test still stands, but as the test did not contain such a verification to start with, I would say that's ok.

Good work @Abhitocode

@elguardian elguardian merged commit 885834c into apache:main Aug 9, 2024
10 of 11 checks passed
Copy link
Contributor

@elguardian elguardian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

rgdoliveira pushed a commit to rgdoliveira/kogito-runtimes that referenced this pull request Aug 26, 2024
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.

Migrate process test migration from v7 legacy runtime to code generation
4 participants