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

Split Beta Nodes #5787 #5788

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

Split Beta Nodes #5787 #5788

wants to merge 1 commit into from

Conversation

mdproctor
Copy link
Contributor

Notes in the issue #5787
#5787

I am not looking to merge this yet; still working on cleaning up the code and changing the names of classes.

@kie-ci3
Copy link

kie-ci3 commented Mar 15, 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-drools/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #5788 --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/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-5788/1/display/redirect

Test results:

  • PASSED: 21899
  • FAILED: 12

Those are the test failures:

org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testAddRemoveFacts[KieBase type=CLOUD_IDENTITY] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testSharedRian2[KieBase type=CLOUD_IDENTITY] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testSharedRianWithFire[KieBase type=CLOUD_IDENTITY] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testRemoveRuleWithSharedRia[KieBase type=CLOUD_IDENTITY] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testReaddRulesSharedRianDoubleNots[KieBase type=CLOUD_IDENTITY] class org.drools.core.reteoo.NotRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.NotRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testSharedRian[KieBase type=CLOUD_IDENTITY] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testAddRemoveFacts[KieBase type=CLOUD_IDENTITY_MODEL_PATTERN] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testSharedRian2[KieBase type=CLOUD_IDENTITY_MODEL_PATTERN] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testSharedRianWithFire[KieBase type=CLOUD_IDENTITY_MODEL_PATTERN] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testRemoveRuleWithSharedRia[KieBase type=CLOUD_IDENTITY_MODEL_PATTERN] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testReaddRulesSharedRianDoubleNots[KieBase type=CLOUD_IDENTITY_MODEL_PATTERN] class org.drools.core.reteoo.NotRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.NotRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')
org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testSharedRian[KieBase type=CLOUD_IDENTITY_MODEL_PATTERN] class org.drools.core.reteoo.ExistsRight cannot be cast to class org.drools.core.reteoo.LeftTupleNode (org.drools.core.reteoo.ExistsRight and org.drools.core.reteoo.LeftTupleNode are in unnamed module of loader 'app')

@mariofusco mariofusco self-requested a review March 15, 2024 11:21
@baldimir
Copy link
Contributor

Hi Mark, let's please merge this after we release Apache 10.

@mdproctor
Copy link
Contributor Author

Hi Mark, let's please merge this after we release Apache 10.

Yes that's fine.

@@ -201,9 +201,9 @@ public void removeTerminalNode(RuleRemovalContext context, TerminalNode tn, Coll

private Collection<BaseNode> removeNodes(AbstractTerminalNode terminalNode, Collection<InternalWorkingMemory> wms, RuleRemovalContext context) {
Map<Integer, BaseNode> stillInUse = new HashMap<>();
Collection<ObjectSource> alphas = new HashSet<>();
Collection<ObjectSource> alphas = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

We used a Set here to be sure of not traversing and processing the same nodes more than once, are you sure that there are no longer duplication and it is now save to use a List instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll check this, when I rebase again after 10.0 and fix conflicts.

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.

4 participants