-
Notifications
You must be signed in to change notification settings - Fork 219
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#1460] Fix kogito-maven-plugin #3757
Conversation
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 #3757 --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-3757/2/display/redirect Test results:
Those are the test failures: org.kie.kogito.maven.plugin.it.kogito-maven-plugin-test.kogito-maven-plugin-testThe build exited with code 1. See /home/jenkins/jenkins-agent/workspace/_jobs_kogito-runtimes-pr_PR-3757/kogito-pipelines/bc/apache_incubator-kie-kogito-runtimes/kogito-maven-plugin/target/it/kogito-maven-plugin-test/build.log for details. |
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 #3757 --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-3757/3/display/redirect Test results:
Those are the test failures: org.kie.kogito.maven.plugin.it.kogito-maven-plugin-test.kogito-maven-plugin-testThe build exited with code 1. See /home/jenkins/workspace/_jobs_kogito-runtimes-pr_PR-3757/kogito-pipelines/bc/apache_incubator-kie-kogito-runtimes/kogito-maven-plugin/target/it/kogito-maven-plugin-test/build.log for details. |
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 #3757 --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-3757/4/display/redirect Test results:
Those are the test failures: org.kie.kogito.maven.plugin.it.kogito-maven-plugin-test.kogito-maven-plugin-testThe build exited with code 1. See /home/jenkins/jenkins-agent/workspace/_jobs_kogito-runtimes-pr_PR-3757/kogito-pipelines/bc/apache_incubator-kie-kogito-runtimes/kogito-maven-plugin/target/it/kogito-maven-plugin-test/build.log for details. |
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 #3757 --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-3757/5/display/redirect Test results:
Those are the test failures: org.kie.kogito.maven.plugin.it.kogito-maven-plugin-test.kogito-maven-plugin-testThe build exited with code 1. See /home/jenkins/workspace/_jobs_kogito-runtimes-pr_PR-3757/kogito-pipelines/bc/apache_incubator-kie-kogito-runtimes/kogito-maven-plugin/target/it/kogito-maven-plugin-test/build.log for details. |
@elguardian @fjtirado @pefernan @yesamer
I tried to avoid compilation in the middle of the plugin execution, bringing around generated files and using
I also removed the ProcessClassesMojo and introduced some helper classes. While this does not completely remove the need of intermediate compilation (that would be extremely time-consuming and error-prone) at least
|
Failure inside kogito-runtimes unrelated
it is present also in unmodified/testing PR |
…lone module to avoid springboot dependency inside kogito-maven-plugin
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.
@gitgabrio This is astonishing piece of work, my sincere congratulation!
However, I have to ask you something that might be a bit painful. Its about organization of modules, It would be possible to move kogito-mavem-plugin-test under kogito-maven-plugin?
I think the structure should be: kogito-maven-plugin-parent containing kogito-maven-plugin and kogito-maven-pluging-test (I let you chose more proper name if you feel the need, my concern is the test module should not be at the root kogito level as it is now)
UPDATE:
Ok, I see why test module is outside kogito-maven-plugin. The testing depends on SpringBoot. Then I think the test module should be moved under springboot module. wdyt?
Hi @fjtirado On one side, clearly, it requires springboot-related dependencies, but on the other side it would make more sense (to me) to keep the two (plugin and test) somehow grouped. |
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.
@gitgabrio remarkable job, well done
* [incubator-kie-issues#1460] Working unit tests. Working external example * [incubator-kie-issues#1460] Implemented it tests * [incubator-kie-issues#1460] Adapted tests * [incubator-kie-issues#1460] Disable flaky test * [incubator-kie-issues#1460] Fix maven reactor * [incubator-kie-issues#1460] Fix maven reactor * [incubator-kie-issues#1460] Fix maven reactor * [incubator-kie-issues#1460] Optimizing compilation invocation. Removing ProcessClassesMojo.java * [incubator-kie-issues#1460] Removing left-overs * [incubator-kie-issues#1460] Moving kogito-maven-plugin-test as standalone module to avoid springboot dependency inside kogito-maven-plugin * [incubator-kie-issues#1460] Removing leftover properties --------- Co-authored-by: Gabriele-Cardosi <[email protected]>
Fixes apache/incubator-kie-issues#1460
Needs:
apache/incubator-kie-kogito-apps#2135
apache/incubator-kie-kogito-examples#2032
This PR:
extensions=true
Changes outside of the kogito-maven-plugin are only adaptation to the new implementation
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.