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-36 #3682

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Abhitocode
Copy link
Contributor

@Abhitocode Abhitocode commented Sep 26, 2024

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
image

Below tests within FlowTest fail when tried to enable and run in original v7 format,
testMultiInstanceLoopCharacteristicsTaskWithOutput
testMultiInstanceLoopCharacteristicsTaskWithOutputCompletionCondition
testMultiInstanceLoopCharacteristicsTaskWithOutputCompletionCondition2

Note: work in progress

@Abhitocode Abhitocode force-pushed the incubator-kie-issues-1131-36 branch 3 times, most recently from e9244f9 to e52f0df Compare September 26, 2024 13:13
@kie-ci3
Copy link
Contributor

kie-ci3 commented Sep 26, 2024

PR job #4 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 #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:

  • PASSED: 3325
  • FAILED: 3

Those are the test failures:

org.jbpm.bpmn2.IntermediateEventTest.testTimerBoundaryEventInterrupting
expected: 2
but was: 1
org.jbpm.bpmn2.IntermediateEventTest.testIntermediateCatchEventTimerDuration
expected: 2
but was: 1
org.jbpm.bpmn2.IntermediateEventTest.testEventBasedSplit2
expected: 2
but was: 1

@martinweiler
Copy link
Contributor

@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?

        List<ProcessInstance<DynamicSignalChildModel>> childInstances = childProcessDefinition.instances().stream().toList();
        assertThat(childInstances).hasSize(3);
        childInstances.forEach(instance -> assertThat(instance.status()).isEqualTo(ProcessInstance.STATE_ACTIVE));

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?

@Abhitocode
Copy link
Contributor Author

yes will be adding the flow tests

@Abhitocode
Copy link
Contributor Author

Below tests within FlowTest fail when tried to enable and run in original v7 format,

testMultiInstanceLoopCharacteristicsTaskWithOutput

testMultiInstanceLoopCharacteristicsTaskWithOutputCompletionCondition

testMultiInstanceLoopCharacteristicsTaskWithOutputCompletionCondition2

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.

3 participants