-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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-1602] Remove binaries from test resources on main #6144
[incubator-kie-issues-1602] Remove binaries from test resources on main #6144
Conversation
|
-> Created
|
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-drools -u #6144 --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-6144/3/display/redirect Test results:
Those are the test failures: maven.invoker.it.kie-project-simple.kie-project-simpleThe build exited with code 1. See /home/jenkins/jenkins-agent/workspace/llrequest_jobs_drools-pr_PR-6144/kogito-pipelines/bc/apache_incubator-kie-drools/drools-test-coverage/test-compiler-integration-jars/test-compiler-integration-jars-with-invoker/target/it/kie-project-simple/build.log for details.org.drools.mvel.integrationtests.KieRepositoryTest.testTryLoadNotExistingKjarFromClasspathjava.lang.NullPointerExceptionat java.base/java.util.ArrayDeque.addLast(ArrayDeque.java:303) at java.base/java.util.ArrayDeque.add(ArrayDeque.java:494) at java.base/jdk.internal.loader.URLClassPath.(URLClassPath.java:159) at java.base/jdk.internal.loader.URLClassPath.(URLClassPath.java:176) at java.base/java.net.URLClassLoader.(URLClassLoader.java:152) at org.drools.mvel.integrationtests.KieRepositoryTest.testTryLoadNotExistingKjarFromClasspath(KieRepositoryTest.java:60) at java.base/java.lang.reflect.Method.invoke(Method.java:568) org.drools.mvel.integrationtests.KieRepositoryTest.testLoadKjarFromClasspathjava.lang.NullPointerExceptionat java.base/java.util.ArrayDeque.addLast(ArrayDeque.java:303) at java.base/java.util.ArrayDeque.add(ArrayDeque.java:494) at java.base/jdk.internal.loader.URLClassPath.(URLClassPath.java:159) at java.base/jdk.internal.loader.URLClassPath.(URLClassPath.java:176) at java.base/java.net.URLClassLoader.(URLClassLoader.java:152) at org.drools.mvel.integrationtests.KieRepositoryTest.testLoadKjarFromClasspath(KieRepositoryTest.java:40) at java.base/java.lang.reflect.Method.invoke(Method.java:568) org.drools.mvel.integrationtests.MBeansMonitoringTest.testLoadKjarFromClasspath[KieBase type=STREAM_IDENTITY]java.lang.NullPointerExceptionat java.base/java.util.ArrayDeque.addLast(ArrayDeque.java:303) at java.base/java.util.ArrayDeque.add(ArrayDeque.java:494) at java.base/jdk.internal.loader.URLClassPath.(URLClassPath.java:159) at java.base/jdk.internal.loader.URLClassPath.(URLClassPath.java:176) at java.base/java.net.URLClassLoader.(URLClassLoader.java:152) at org.drools.mvel.integrationtests.MBeansMonitoringTest.testLoadKjarFromClasspath(MBeansMonitoringTest.java:536) at java.base/java.lang.reflect.Method.invoke(Method.java:568) org.drools.mvel.integrationtests.MBeansMonitoringTest.testLoadKjarFromClasspath[KieBase type=STREAM_IDENTITY_MODEL_PATTERN]java.lang.NullPointerExceptionat java.base/java.util.ArrayDeque.addLast(ArrayDeque.java:303) at java.base/java.util.ArrayDeque.add(ArrayDeque.java:494) at java.base/jdk.internal.loader.URLClassPath.(URLClassPath.java:159) at java.base/jdk.internal.loader.URLClassPath.(URLClassPath.java:176) at java.base/java.net.URLClassLoader.(URLClassLoader.java:152) at org.drools.mvel.integrationtests.MBeansMonitoringTest.testLoadKjarFromClasspath(MBeansMonitoringTest.java:536) at java.base/java.lang.reflect.Method.invoke(Method.java:568) |
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-drools -u #6144 --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-6144/4/display/redirect Test results:
Those are the test failures: org.kie.maven.plugin.it.kie-maven-plugin-test-kjar-12.kie-maven-plugin-test-kjar-12The build exited with code 1. See /home/jenkins/jenkins-agent/workspace/llrequest_jobs_drools-pr_PR-6144/kogito-pipelines/bc/apache_incubator-kie-drools/kie-maven-plugin/target/it/kie-maven-plugin-test-kjar-12/build.log for details. |
|
…ects for them under drools-test-coverage-jars-with-invoker to be tested in test-suite KieContainerTest
|
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.
I do not know these tests a lot, but it looks good to me.
<!-- This profile makes sure that drools-test-coverage-jars is executed if not--> | ||
<!-- See: https://github.com/apache/incubator-kie-drools/pull/6144 --> | ||
<profile> | ||
<id>missing-test-jar-file</id> |
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.
This profile is added for local development convenience.
For example, you may have drools-test-coverage-jars
999-SNAPSHOT in your local repo cache, but newly cloned the drools repo in a working directory. You don't have test jars like surf.jar
in test-compiler-integration
. So when you run test-compiler-integration
, it will fail. This profile detects that the test jar is missing, so it invokes drools-test-coverage-jars
to build and copy test jars. It will not happen again once the test jars are copied.
…in (apache#6144) * [incubator-kie-issues-1602] Remove binaries from test resources on main - WIP * deleted unused test jars * - binaries for KieRepositoryTest. * replace billasurf.jar with surf project * remove unused jar * fixed build order * temporarily disabled downstream GHA for quick check * replace testEnum.jar with testEnum project * resolve BanDuplicateClasses * replace model.jar with a project * remove kjar-module-after.jar and kjar-module-before.jar. Created projects for them under drools-test-coverage-jars-with-invoker to be tested in test-suite KieContainerTest * clean up * assertion message if file is not found * Adding invoker to assist local development * typo
Issue:
This PR is WIP, just to share the progress.
Currently, resolved these files:
./incubator-kie-drools/efesto/efesto-core/efesto-common-api/src/test/resources/TestJar.jar
./incubator-kie-drools/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/resources/TestJar.jar
./incubator-kie-drools/efesto/efesto-core/efesto-common-core/src/test/resources/TestJar.jar
-> They don't contain compiled resources. Just note them in
NOTICE_BINARY
../incubator-kie-drools/drools-compiler/src/test/resources/primespoc.jar
-> Created
setter-overload
project. Build and copy a jar file on the fly.