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-2006] Please backport issue DROOLS-7014 to Red Hat Decision Man… #3001

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

tkobayas
Copy link
Contributor

…ager libraries

  • Added test case for kie-karaf-itests

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

referenced Pull Requests:

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:
  • a pull request please add comment: Jenkins retest this

  • a full downstream build please add comment: Jenkins run fdb

  • a compile downstream build please add comment: Jenkins run cdb

  • a full production downstream build please add comment: Jenkins execute product fdb

  • an upstream build please add comment: Jenkins run upstream

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
Contributor Author

tkobayas commented Nov 16, 2023

Note: Cross-repository check doesn't work because I have drools repo forked from apache/incubator-kie-drools, but the actual PR branch RHDM-2006-7.67.x exists in kiegroup-drools repo forked from kiegroup/drools. Technically, I think I can solve it by creating RHDM-2006-7.67.x branch in drools repo as well. But for this PR, I can merge the changes separately.

2023-11-15T10:17:17.3081232Z ##[group]Checking out kiegroup/droolsjbpm-integration and its dependencies (8 projects in total). It can take some time.
2023-11-15T10:17:17.3083479Z [INFO] Checking if kiegroup/lienzo-core is forked to tkobayas/lienzo-core
2023-11-15T10:17:17.4073740Z [INFO] Fork tkobayas/lienzo-core does not exist. Trying to find a fork with a different name in tkobayas
2023-11-15T10:17:18.0100619Z [INFO] Fork for kiegroup/lienzo-core not found where owner is tkobayas
2023-11-15T10:17:18.7455359Z [INFO] kiegroup/lienzo-core checked out
2023-11-15T10:17:18.8711786Z [INFO] Checking if kiegroup/droolsjbpm-build-bootstrap is forked to tkobayas/droolsjbpm-build-bootstrap
2023-11-15T10:17:19.1533996Z [INFO] Fork tkobayas/droolsjbpm-build-bootstrap found.
2023-11-15T10:17:41.9704662Z [INFO] kiegroup/droolsjbpm-build-bootstrap checked out
2023-11-15T10:17:42.0923178Z [INFO] Checking if kiegroup/kie-soup is forked to tkobayas/kie-soup
2023-11-15T10:17:42.3968974Z [INFO] Fork tkobayas/kie-soup found.
2023-11-15T10:17:43.1638265Z [INFO] kiegroup/kie-soup checked out
2023-11-15T10:17:43.2862611Z [INFO] Checking if kiegroup/droolsjbpm-knowledge is forked to tkobayas/droolsjbpm-knowledge
2023-11-15T10:17:43.4967361Z [INFO] Fork tkobayas/droolsjbpm-knowledge found.
2023-11-15T10:17:46.0996761Z [INFO] kiegroup/droolsjbpm-knowledge checked out
2023-11-15T10:17:46.2211660Z [INFO] Checking if kiegroup/drools is forked to tkobayas/drools
2023-11-15T10:17:46.4345193Z [INFO] Fork tkobayas/drools found.
2023-11-15T10:18:05.0140497Z [INFO] kiegroup/drools checked out
2023-11-15T10:18:05.1353952Z [INFO] Checking if kiegroup/optaplanner is forked to tkobayas/optaplanner
2023-11-15T10:18:05.3729259Z [INFO] Fork tkobayas/optaplanner found.
2023-11-15T10:18:25.2474708Z [INFO] kiegroup/optaplanner checked out
2023-11-15T10:18:25.3686173Z [INFO] Checking if kiegroup/jbpm is forked to tkobayas/jbpm
2023-11-15T10:18:25.6409110Z [INFO] Fork tkobayas/jbpm found.
2023-11-15T10:18:30.0340884Z [INFO] kiegroup/jbpm checked out
2023-11-15T10:18:30.1560507Z [INFO] Checking if kiegroup/droolsjbpm-integration is forked to tkobayas/droolsjbpm-integration
2023-11-15T10:18:30.4179946Z [INFO] Fork tkobayas/droolsjbpm-integration found.
2023-11-15T10:18:35.5277762Z [INFO] kiegroup/droolsjbpm-integration checked out
2023-11-15T10:18:35.6531685Z ##[endgroup]
2023-11-15T10:18:35.6532397Z ##[group]Checkout summary
2023-11-15T10:18:35.6538713Z [INFO] [kiegroup/lienzo-core]
2023-11-15T10:18:35.6540390Z [INFO]      Project taken from kiegroup/lienzo-core:7.67.x (Branch HEAD 8c69b001b6bd30d085b7c695992941a5ba3391bb)
2023-11-15T10:18:35.6541838Z [INFO] [kiegroup/droolsjbpm-build-bootstrap]
2023-11-15T10:18:35.6558211Z [INFO]      Project taken from kiegroup/droolsjbpm-build-bootstrap:7.67.x (Branch HEAD e27553880b4664a7787b34475f593e165560f58d)
2023-11-15T10:18:35.6559599Z [INFO] [kiegroup/kie-soup]
2023-11-15T10:18:35.6560762Z [INFO]      Project taken from kiegroup/kie-soup:7.67.x (Branch HEAD c8cf9e10d4f2925c7cc3af1dbde798d3dc240f8d)
2023-11-15T10:18:35.6562145Z [INFO] [kiegroup/droolsjbpm-knowledge]
2023-11-15T10:18:35.6563457Z [INFO]      Project taken from kiegroup/droolsjbpm-knowledge:7.67.x (Branch HEAD e69d70f967a440a34847212b03a58fc2c2be5e50)
2023-11-15T10:18:35.6564686Z [INFO] [kiegroup/drools]
2023-11-15T10:18:35.6565483Z [INFO]      Project taken from kiegroup/drools:7.67.x (Branch HEAD 80211642739911303bd1368f1b655c5874ac2312)
2023-11-15T10:18:35.6566615Z [INFO] [kiegroup/optaplanner]
2023-11-15T10:18:35.6567724Z [INFO]      Project taken from kiegroup/optaplanner:7.67.x (Branch HEAD 257a6e0ef8e971eaf1ffe731423496c49fc800eb)
2023-11-15T10:18:35.6568655Z [INFO] [kiegroup/jbpm]
2023-11-15T10:18:35.6569430Z [INFO]      Project taken from kiegroup/jbpm:7.67.x (Branch HEAD 16f3a5159f4b82918ad6db91f6e157883e9b4847)
2023-11-15T10:18:35.6570832Z [INFO] [kiegroup/droolsjbpm-integration]
2023-11-15T10:18:35.6572223Z [INFO]      Project taken from kiegroup/droolsjbpm-integration:7.67.x (Branch HEAD cdf0b14e631804871d923b037e5088e696e47dbb)
2023-11-15T10:18:35.6573830Z [INFO]      Merged tkobayas/droolsjbpm-integration:RHDM-2006-7.67.x into branch 7.67.x
2023-11-15T10:18:35.6575370Z ##[endgroup]
2023-11-15T13:10:36.9724891Z [ERROR] Errors:
2023-11-15T13:10:36.9746465Z [ERROR]   KieBlueprintImportIntegrationTest.kieElementsExistTest » ServiceLookup gave up...
2023-11-15T13:10:36.9748095Z [ERROR]   KieBlueprintImportIntegrationTest.kieSessionOldPersonTest » ServiceLookup gave...
2023-11-15T13:10:36.9749531Z [ERROR]   KieBlueprintImportIntegrationTest.kieSessionYoungPersonTest » ServiceLookup ga...
2023-11-15T13:10:36.9750428Z [INFO]
2023-11-15T13:10:36.9750862Z [ERROR] Tests run: 62, Failures: 0, Errors: 3, Skipped: 2

@tkobayas
Copy link
Contributor Author

So, I'll run GHA Java 8 test again after kiegroup/drools#24 is merged.

…ager libraries

- Added test case for kie-karaf-itests
Copy link

sonarcloud bot commented Nov 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@tkobayas
Copy link
Contributor Author

GHA Java 8: kie-karaf-itests were successful.

2023-11-17T05:02:03.9105678Z [INFO] --- maven-failsafe-plugin:2.22.1:integration-test (default) @ kie-karaf-itests ---
2023-11-17T05:02:03.9142685Z [INFO] Failsafe report directory: /home/runner/work/droolsjbpm-integration/droolsjbpm-integration/kiegroup_droolsjbpm-integration/kie-osgi/kie-karaf-itests/target/failsafe-reports
2023-11-17T05:02:03.9389351Z [INFO]
2023-11-17T05:02:03.9390549Z [INFO] -------------------------------------------------------
2023-11-17T05:02:03.9391171Z [INFO]  T E S T S
2023-11-17T05:02:03.9391738Z [INFO] -------------------------------------------------------
2023-11-17T05:02:04.2973683Z [INFO] Running org.kie.karaf.itest.KieDMNKarafIntegrationTest
2023-11-17T05:02:16.8344136Z [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.535 s - in org.kie.karaf.itest.KieDMNKarafIntegrationTest
...
2023-11-17T05:18:20.1887323Z [WARNING] Tests run: 62, Failures: 0, Errors: 0, Skipped: 2

@tkobayas
Copy link
Contributor Author

Other tests are not related to this PR

@tkobayas
Copy link
Contributor Author

@mariofusco Please review and merge this test case PR for kiegroup/drools#24 (comment) . Thanks!

@mariofusco mariofusco merged commit 8abd4a5 into kiegroup:7.67.x Nov 17, 2023
3 of 5 checks passed
tkobayas added a commit to tkobayas/droolsjbpm-integration that referenced this pull request Nov 17, 2023
…ager libraries (kiegroup#3001)

- Added test case for kie-karaf-itests
tkobayas added a commit to tkobayas/droolsjbpm-integration that referenced this pull request Nov 20, 2023
…ager libraries (kiegroup#3001)

- Added test case for kie-karaf-itests
mariofusco pushed a commit that referenced this pull request Nov 20, 2023
…ager libraries (#3001) (#3002)

- Added test case for kie-karaf-itests
mariofusco pushed a commit that referenced this pull request Nov 20, 2023
…ager libraries (#3001) (#3003)

- Added test case for kie-karaf-itests
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.

2 participants