-
Notifications
You must be signed in to change notification settings - Fork 213
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-36 #3682
[incubator-kie-issues-1131] test migration from V7 to code generation-36 #3682
Conversation
e9244f9
to
e52f0df
Compare
PR job Reproducerbuild-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 #3682 --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-3682/4/display/redirect Test results:
Those are the test failures: |
@Abhitocode re: How can we assert this, what changes are made to child process instances after completing parent process. Wouldn't this not just be an issue of repeating this assert?
In this test, the parent/child sub-process relation is defined as independent, so the child instances should remain active even though the parent has finished. What about the tests in FlowTest - are you going to add them to this PR as well? |
yes will be adding the flow tests |
e52f0df
to
ee9b7b5
Compare
ee9b7b5
to
a25cc36
Compare
a25cc36
to
547e6fe
Compare
@Abhitocode for the two tests:
I have created apache/incubator-kie-issues#1719 now. Once that is done, you can raise a new PR to get those two migrated. For the two tests in |
Thanks for creating the issue @martinweiler , sure will create a separate pr for tests with above issue once the scripts issue is resolved. |
@Abhitocode I have created #3815 to fix the onEntry/onExit script creation in embedded nodes. I could already include your migrated |
Build errors not related to this change, retriggered CI to have the greens |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 when green
Few tests within jbpm-tests are disabled as on-exit is not supported. Check if they can be enabled and converted.
Reference issue link: https://issues.redhat.com/browse/KOGITO-2067
Below are the tests:
(https://github.com/apache/incubator-kie-kogito-runtimes/tree/main/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2)
Below tests within IntermediateEventTest cannot be migrated as due to kie session not working in kogito
testDynamicCatchEventSignalWithVariableUpdated
testDynamicCatchEventSignalWithVariableUpdatedBroadcastSignal
Below tests within FlowTest fail when tried to enable and run in original v7 format,
testInclusiveSplitWithLoopInsideSubprocess - process goes to an error state, rather than maintaining the active state, when completing the work item for handler2. In LightWorkItemManager class, inside completeWorkItem method, processInstance.signalEvent("workItemCompleted", workItem) causing some error and not completing the work item
testMultiInstanceLoopCharacteristicsTaskWithOutputCompletionCondition2- Instead of changing the process instance to completed, the state is changing to error state