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

[RHDM-2020] [KIE-775] drools executable-model fails with a bind variable to a cal… #2

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

tkobayas
Copy link

@tkobayas tkobayas commented Jan 12, 2024

…culation result of int and BigDecimal (apache#5636)

Thank you for submitting this pull request

NOTE!: Double check the target branch for this PR.
The default is main so it will target Drools 8 / Kogito.
If this PR is not strictly related to drools and kogito project in drools.git, it should probably target 7.xas a branch

Ports
This is a backport PR of apache#5636 for 7.x
for 7.67.x -> #4
for 7.67.x-blue -> #5

JIRA:
https://issues.redhat.com/browse/RHDM-2020

How to replicate CI configuration locally?

Build Chain tool does "simple" maven build(s), the builds are just Maven commands, but because the repositories relates and depends on each other and any change in API or class method could affect several of those repositories there is a need to use build-chain tool to handle cross repository builds and be sure that we always use latest version of the code for each repository.

build-chain tool is a build tool which can be used on command line locally or in Github Actions workflow(s), in case you need to change multiple repositories and send multiple dependent pull requests related with a change you can easily reproduce the same build by executing it on Github hosted environment or locally in your development environment. See local execution details to get more information about it.

How to retest this PR or trigger a specific build:
  • for pull request checks
    Please add comment: Jenkins retest this

  • for a specific pull request check
    Please add comment: Jenkins (re)run [drools|kogito-runtimes|kogito-apps|kogito-examples] tests

  • for a full downstream build

    • for jenkins job: please add comment: Jenkins run fdb
    • for github actions job: add the label run_fdb
  • a compile downstream build please add comment: Jenkins run cdb

  • an upstream build please add comment: Jenkins run upstream

  • for quarkus branch checks
    Run checks against Quarkus current used branch
    Please add comment: Jenkins run quarkus-branch

  • for a quarkus branch specific check
    Run checks against Quarkus current used branch
    Please add comment: Jenkins (re)run [drools|kogito-runtimes|kogito-apps|kogito-examples] quarkus-branch

  • for quarkus main checks
    Run checks against Quarkus main branch
    Please add comment: Jenkins run quarkus-main

  • for a specific quarkus main check
    Run checks against Quarkus main branch
    Please add comment: Jenkins (re)run [drools|kogito-runtimes|kogito-apps|kogito-examples] quarkus-main

  • for quarkus lts checks
    Run checks against Quarkus lts branch
    Please add comment: Jenkins run quarkus-lts

  • for a specific quarkus lts check
    Run checks against Quarkus lts branch
    Please add comment: Jenkins (re)run [drools|kogito-runtimes|kogito-apps|kogito-examples] quarkus-lts

  • for native checks
    Run native checks
    Please add comment: Jenkins run native

  • for a specific native check
    Run native checks
    Please add comment: Jenkins (re)run [drools|kogito-runtimes|kogito-apps|kogito-examples] native

  • for native lts checks
    Run native checks against quarkus lts branch
    Please add comment: Jenkins run native-lts

  • for a specific native lts check
    Run native checks against quarkus lts branch
    Please add comment: Jenkins (re)run [drools|kogito-runtimes|kogito-apps|kogito-examples] native-lts

How to backport a pull request to a different branch?

In order to automatically create a backporting pull request please add one or more labels having the following format backport-<branch-name>, where <branch-name> is the name of the branch where the pull request must be backported to (e.g., backport-7.67.x to backport the original PR to the 7.67.x branch).

NOTE: backporting is an action aiming to move a change (usually a commit) from a branch (usually the main one) to another one, which is generally referring to a still maintained release branch. Keeping it simple: it is about to move a specific change or a set of them from one branch to another.

Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.

If something goes wrong, the author will be notified and at this point a manual backporting is needed.

NOTE: this automated backporting is triggered whenever a pull request on main branch is labeled or closed, but both conditions must be satisfied to get the new PR created.

@tkobayas
Copy link
Author

Jenkins retest this

@tkobayas
Copy link
Author

@mariofusco Please review and merge if it's okay this backport PR, thanks!

@tkobayas
Copy link
Author

Jenkins retest this

@mareknovotny
Copy link
Member

jenkins do fdb

@tkobayas
Copy link
Author

tkobayas commented Jan 15, 2024

CDB : Not related to this PR. flaky

[2024-01-12T14:28:17.302Z] [INFO] --- wildfly-jar-maven-plugin:6.1.2.Final:package (default) @ business-central-webapp ---
...
[2024-01-12T14:28:25.389Z] Caused by: java.lang.IllegalStateException: WFLYSRV0126: Could not create server content directory: /home/jenkins/workspace/KIE/7.x/compile/drools-7.x.compile/bc/kiegroup_kie-wb-distr\
ibutions/business-central-parent/business-central-webapp/target/bootable-jar-build-artifacts/wildfly/standalone/data/content
[2024-01-12T14:28:25.389Z]     at org.jboss.as.server.ServerEnvironment.<init> (ServerEnvironment.java:494)
[2024-01-12T14:28:25.389Z]     at org.jboss.as.server.Main.determineEnvironment (Main.java:407)
[2024-01-12T14:28:25.389Z]     at org.wildfly.core.embedded.EmbeddedStandaloneServerFactory$StandaloneServerImpl.start (EmbeddedStandaloneServerFactory.java:269)
[2024-01-12T14:28:25.389Z]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
[2024-01-12T14:28:25.389Z]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
[2024-01-12T14:28:25.389Z]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
[2024-01-12T14:28:25.389Z]     at java.lang.reflect.Method.invoke (Method.java:566)
[2024-01-12T14:28:25.389Z]     at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.invokeOnServer (EmbeddedManagedProcessImpl.java:107)
[2024-01-12T14:28:25.389Z]     at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.start (EmbeddedManagedProcessImpl.java:64)
[2024-01-12T14:28:25.389Z]     at org.wildfly.galleon.plugin.config.generator.WfConfigGenerator.doStartServer (WfConfigGenerator.java:196)
[2024-01-12T14:28:25.389Z]     at org.wildfly.galleon.plugin.config.generator.WfConfigGenerator.startServer (WfConfigGenerator.java:186)
[2024-01-12T14:28:25.389Z]     at org.wildfly.galleon.plugin.config.generator.WfProvisionedConfigHandler.prepare (WfProvisionedConfigHandler.java:429)
[2024-01-12T14:28:25.389Z]     at org.jboss.galleon.runtime.ResolvedConfig.handle (ResolvedConfig.java:129)
[2024-01-12T14:28:25.389Z]     at org.wildfly.galleon.plugin.config.generator.WfConfigGenerator.doGenerate (WfConfigGenerator.java:129)

FDB : Not related to this PR. Need a fix with another PR. It picks kie-jpmml-integration main instead of 7.x

[2024-01-12T13:31:40.042Z] [INFO] [kiegroup/kie-jpmml-integration]
[2024-01-12T13:31:40.042Z] [INFO]        Project taken from kiegroup/kie-jpmml-integration:main (Branch HEAD aa87638c67ca4e8dc301de0275e07efd9b6bdf30)
...
[2024-01-12T15:03:19.391Z] [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) @ kie-jpmml-integration ---
[2024-01-12T15:03:19.645Z] [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
[2024-01-12T15:03:19.645Z] Detected Maven Version: 3.8.1 is not in the allowed range 3.8.6.
[2024-01-12T15:03:19.645Z] [INFO] ------------------------------------------------------------------------
[2024-01-12T15:03:19.645Z] [INFO] Reactor Summary for kie-jpmml-integration 8.45.0-SNAPSHOT:
[2024-01-12T15:03:19.645Z] [INFO]
[2024-01-12T15:03:19.645Z] [INFO] kie-jpmml-integration .............................. FAILURE [  0.770 s]

@mariofusco mariofusco merged commit 53b1cd4 into kiegroup:7.x Jan 15, 2024
5 of 7 checks passed
@tkobayas tkobayas added backport-7.67.x Generate backport PR for 7.67.x branch backport-7.67.x-blue Generate backport PR for 7.67.x-blue branch labels Jan 16, 2024
github-actions bot pushed a commit that referenced this pull request Jan 16, 2024
github-actions bot pushed a commit that referenced this pull request Jan 16, 2024
mariofusco pushed a commit that referenced this pull request Jan 16, 2024
…culation result of int and BigDecimal (apache#5636) (#2) (#5)

Co-authored-by: Toshiya Kobayashi <[email protected]>
mariofusco pushed a commit that referenced this pull request Jan 16, 2024
…culation result of int and BigDecimal (apache#5636) (#2) (#4)

Co-authored-by: Toshiya Kobayashi <[email protected]>
rgdoliveira pushed a commit that referenced this pull request Oct 25, 2024
apache#5682)

* add antlr4 based drl parser

* bump to drools 8.16.0.Beta

* improve node position discovery

* first c3 integration

* Module reorganization (#2)

* WIP

* Ignore directories

* Add debug. Minor modifications

* WIP

* Fix tests - add comments

* manage null ast nodes and fix failing test

* improve drl parser

* Fix basic completion (#4)

* Add Java grammar, fix DRL grammar, simplify token index calculation, remove template code

* Add ignored tokens to completion

Co-authored-by: livio <[email protected]>

* add constraints parsing

* - Added DRLParserWrapper to store errors using DRLErrorListener (#5)

- Added MiscDRLParserTest which is being ported from RuleParserTest to enhance coverage.

* Enhance test/grammar coverage. function import, global, exists, not (#6)

* Enhance test/grammar coverage. and, or, listExpression (#7)

* Enhance test/grammar coverage. matches, single quoted string, escape (#9)

- Introduced drlExpression, drlPrimary, drlLiteral, DRL_STRING_LITERAL

* Enhance test/grammar coverage. dialect, invalid lhs (#10)

* Enhance test/grammar coverage. keyword collision (#11)

- Add "DRL_" prefix for DRL keywords for clarification

* Enhance test/grammar coverage. function, attributes, consequence (#12)

* Enhance test/grammar coverage. function, attributes, consequence
- better getText preserving whitespaces
- resolving WARNs because of overlapping keywords

* - No need to declare duplicate keywords

* Enhance test/grammar coverage. OR, inline map (#13)

* OpenRewrite applied for junit5 and assertj (#14)

* Enhance test/grammar coverage. label, consequenceLocation, test refac… (#15)

* Enhance test/grammar coverage. label, consequenceLocation, test refactoring, assertj best practice

* - better test method names

* [DROOLS-7253] Review and improve drools-lsp parser Visitor design (#16)

* [DROOLS-7253] Review and improve drools-lsp parser Visitor design
- Remove currentConstructStack. Utilize return object instead.

* - Remove instance fields. Utilize return objects instead.

* [DROOLS-7270] Enhance test/grammar coverage : andRestriction, orRestriction (#4)

- Removed some unused cast

* [DROOLS-7271] Fully port RuleParserTest as MiscDRLParserTest with @disabled and priority comment (#10)

* [DROOLS-7285] Failed to parse and/or with parentheses in LHS (#15)

* [DROOLS-7286] Failed to parse binding with || (#21)

* [DROOLS-7287] Failed to parse comments in RHS (#23)

* [DROOLS-7287] Failed to parse comments in RHS

* - add rhs string check

* [DROOLS-7515] Parser : Accept plain text in RHS (#26)

* [DROOLS-7515] Parser : Accept plain text in RHS

* - Handle keyword token in RHS

* - Removed sysout

* - Revert statementKeywords. Instead, define DRL_END with newline or EOF

* - fix method name

* [DROOLS-7288] Failed to parse complex parentheses (#27)

* [DROOLS-7288] Failed to parse complex parentheses
- bump to 8.43.0.Final

* additional tests

* [DROOLS-7289] Implement accumulate (#28)

* [DROOLS-7296] Implement from entry-point (#30)

* [DROOLS-7297] Implement import accumulate (#29)

* [DROOLS-7290] Implement BigInteger literal, BigDecimal literal (#31)

* [DROOLS-7292] Implement eval (#32)

* [DROOLS-7293] Implement extends (#33)

* [DROOLS-7294] Implement forall (#34)

* [DROOLS-7298] Implement memberOf (#35)

* [DROOLS-7300] Implement positional constraint (#36)

* [DROOLS-7304] Implement temporal operators (#38)

- Also covers [DROOLS-7303] Implement sliding window

* [DROOLS-7301] Implement query (#37)

- Also partially fixes [DROOLS-7302] Implement semicolon delimiter

* [DROOLS-7295] Implement from collect (#39)

* [DROOLS-7305] Implement type declaration (#40)

- also covers [DROOLS-7291] Implement entry-point declaration
- also covers window declaration

* [DROOLS-7306] Implement unification (#41)

* [DROOLS-7306] Implement unification
- Also [DROOLS-7307] Parse attribute agenda-group

* [DROOLS-7308] Parse attribute without value
- Also [DROOLS-7309] Parse attribute with parentheses

* [DROOLS-7310] parse nested parentheses (#42)

* [DROOLS-7310] parse nested parentheses

* - Adding code commentes and explanations
- Adding more nested level tests

* [DROOLS-7577] drools-lsp : Add comments and explanations for drools-p… (#43)

* [DROOLS-7577] drools-lsp : Add comments and explanations for drools-parser

* removed syntax examples

* [DROOLS-7591] Experiment branch : migrate a new drools-lsp parser into drools (#44)

- Add some methods to call from drools code base

* Move necessary files without any additional modifications

* Update DRL6Expressions.g4 to ANTLR 4 (#47)

* Add DescrDumperTest and fix the expression parser grammar (#48)

* Add DescrDumperTest

* Fix it

* [DROOLS-7591] Experiment branch : migrate a new drools-lsp parser into drools
- New parser is migrated in drools-drl/drools-drl-parser with org.drools.drl10.parser package
- To enable the new parser, run `mvn test -PDRL10`
- At the moment, we get lots of test failures especially in drools-model/drools-model-codegen and drools-test-coverage/test-compiler-integration

* - License header
- Revert an inappropriate test edit
- Removed unnecessary profile
- Clarify unsupported methods
- Removed unnecessary bom dependency

---------

Co-authored-by: mariofusco <[email protected]>
Co-authored-by: Gabriele Cardosi <[email protected]>
Co-authored-by: Livio Benčik <[email protected]>
Co-authored-by: livio <[email protected]>
Co-authored-by: Jiří Locker <[email protected]>
rgdoliveira pushed a commit that referenced this pull request Oct 25, 2024
* WIP

* Ignore directories

* Add debug. Minor modifications

* WIP

* Fix tests - add comments
rgdoliveira pushed a commit that referenced this pull request Nov 7, 2024
…it5 - #2 (apache#6139)

* More tests migrated to JUnit5

* More tests migrated

* More unit tests migrated to JUnit5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7.67.x Generate backport PR for 7.67.x branch backport-7.67.x-blue Generate backport PR for 7.67.x-blue branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants