Skip to content

Nondex groups/excludedGroups not able to work with  #190

@MyEnthusiastic

Description

@MyEnthusiastic

Problem

For many Apache repos like OptaPlanner, ActiveMQ Artemis, logging-log4j2, the nondex build fails in the middle to make the finding flaky test process troublesome, in detail groups/excludedGroups Mojo is needed during the execution process of the nondex (https://github.com/TestingResearchIllinois/NonDex/blob/875fdd02435fef3e707e1032f85b6aa4609533c4/nondex-maven-plugin/src/it/excluded-groups-it/module1/pom.xml#L20C67-L20C67), but not sure why in some sub-module that Mojo can not execute because these sub-module do not support certain version of Junit?

Error message

[ERROR]   mvn  -rf :log4j-api
"./nondex.log" 630L, 35687B
CS527 Presentation.pdf                     curator                                    logging-log4j2                             sedona
[INFO] OptaPlanner Quarkus integration .................... SKIPPED
[INFO] OptaPlanner Quarkus ................................ SKIPPED
[INFO] OptaPlanner Quarkus - Runtime ...................... SKIPPED
[INFO] OptaPlanner Quarkus - Deployment ................... SKIPPED
[INFO] OptaPlanner Quarkus - Integration tests ............ SKIPPED
[INFO] OptaPlanner Quarkus - Reflection Integration tests . SKIPPED
[INFO] OptaPlanner Quarkus - Dev UI Integration tests ..... SKIPPED
[INFO] OptaPlanner Quarkus - Drools Integration tests ..... SKIPPED
[INFO] OptaPlanner Quarkus Benchmark ...................... SKIPPED
[INFO] OptaPlanner Quarkus Benchmark - Runtime ............ SKIPPED
[INFO] OptaPlanner Quarkus Benchmark - Deployment ......... SKIPPED
[INFO] OptaPlanner Quarkus Benchmark - Integration tests .. SKIPPED
[INFO] OptaPlanner Quarkus Jackson ........................ SKIPPED
[INFO] OptaPlanner Quarkus Jackson - Runtime .............. SKIPPED
[INFO] OptaPlanner Quarkus Jackson - Deployment ........... SKIPPED
[INFO] OptaPlanner Quarkus Jackson - Integration tests .... SKIPPED
[INFO] OptaPlanner Quarkus JSON-B ......................... SKIPPED
[INFO] OptaPlanner Quarkus JSON-B - Runtime ............... SKIPPED
[INFO] OptaPlanner Quarkus JSON-B - Deployment ............ SKIPPED
[INFO] OptaPlanner Quarkus JSON-B - Integration tests ..... SKIPPED
[INFO] OptaPlanner Migration .............................. SKIPPED
[INFO] OptaPlanner examples ............................... SKIPPED
[INFO] [Experimental] OptaPlanner Operator ................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.543 s
[INFO] Finished at: 2023-11-14T22:39:38-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal edu.illinois:nondex-maven-plugin:2.1.1:nondex (default-cli) on project optaplanner-ide-config: Unable to execute mojo: groups/excludedGroups require TestNG, JUnit48+ or JUnit 5 (a specific engine required on classpath) on project test classpath -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

But this repo works well with mvn clean install

[INFO] Installing /Users/chihuiyang/Developer/UIUC/CS527/incubator-kie-optaplanner/optaplanner-operator/target/optaplanner-operator-8.45.0-SNAPSHOT-sources.jar to /Users/chihuiyang/.m2/repository/org/optaplanner/optaplanner-operator/8.45.0-SNAPSHOT/optaplanner-operator-8.45.0-SNAPSHOT-sources.jar
[INFO] Installing /Users/chihuiyang/Developer/UIUC/CS527/incubator-kie-optaplanner/optaplanner-operator/target/optaplanner-operator-8.45.0-SNAPSHOT-tests.jar to /Users/chihuiyang/.m2/repository/org/optaplanner/optaplanner-operator/8.45.0-SNAPSHOT/optaplanner-operator-8.45.0-SNAPSHOT-tests.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for OptaPlanner multiproject parent 8.45.0-SNAPSHOT:
[INFO]
[INFO] OptaPlanner multiproject parent .................... SUCCESS [  0.691 s]
[INFO] OptaPlanner BOM (Bill Of Materials) ................ SUCCESS [  0.018 s]
[INFO] OptaPlanner IDE Configuration ...................... SUCCESS [  0.267 s]
[INFO] OptaPlanner build parent ........................... SUCCESS [  3.037 s]
[INFO] OptaPlanner core parent ............................ SUCCESS [  0.018 s]
[INFO] OptaPlanner core implementation .................... SUCCESS [ 41.593 s]
[INFO] OptaPlanner constraints: Constraint streams (Common) SUCCESS [  3.975 s]
[INFO] OptaPlanner constraints: Constraint streams (Drools) SUCCESS [  3.803 s]
[INFO] OptaPlanner constraints: DRL (Deprecated) .......... SUCCESS [  1.032 s]
[INFO] OptaPlanner constraints: Constraint streams (Bavet)  SUCCESS [  2.031 s]
[INFO] OptaPlanner core ................................... SUCCESS [  0.620 s]
[INFO] OptaPlanner persistence ............................ SUCCESS [  0.016 s]
[INFO] OptaPlanner persistence common ..................... SUCCESS [  0.203 s]
[INFO] OptaPlanner persistence XStream (Deprecated) ....... SUCCESS [  0.344 s]
[INFO] OptaPlanner persistence JAXB ....................... SUCCESS [  0.288 s]
[INFO] OptaPlanner persistence Jackson .................... SUCCESS [  0.375 s]
[INFO] OptaPlanner persistence JPA ........................ SUCCESS [  4.518 s]
[INFO] OptaPlanner persistence JSON-B ..................... SUCCESS [  0.470 s]
[INFO] OptaPlanner benchmark .............................. SUCCESS [  8.088 s]
[INFO] OptaPlanner test ................................... SUCCESS [  1.361 s]
[INFO] OptaPlanner Spring integration ..................... SUCCESS [  0.021 s]
[INFO] OptaPlanner Spring Boot autoconfigure .............. SUCCESS [  1.020 s]
[INFO] OptaPlanner Spring Boot starter .................... SUCCESS [  0.223 s]
[INFO] OptaPlanner Quarkus integration .................... SUCCESS [  0.019 s]
[INFO] OptaPlanner Quarkus ................................ SUCCESS [  0.012 s]
[INFO] OptaPlanner Quarkus - Runtime ...................... SUCCESS [  3.427 s]
[INFO] OptaPlanner Quarkus - Deployment ................... SUCCESS [  4.541 s]
[INFO] OptaPlanner Quarkus - Integration tests ............ SUCCESS [  2.273 s]
[INFO] OptaPlanner Quarkus - Reflection Integration tests . SUCCESS [  1.524 s]
[INFO] OptaPlanner Quarkus - Dev UI Integration tests ..... SUCCESS [  1.893 s]
[INFO] OptaPlanner Quarkus - Drools Integration tests ..... SUCCESS [  1.905 s]
[INFO] OptaPlanner Quarkus Benchmark ...................... SUCCESS [  0.026 s]
[INFO] OptaPlanner Quarkus Benchmark - Runtime ............ SUCCESS [  1.359 s]
[INFO] OptaPlanner Quarkus Benchmark - Deployment ......... SUCCESS [  1.725 s]
[INFO] OptaPlanner Quarkus Benchmark - Integration tests .. SUCCESS [  3.365 s]
[INFO] OptaPlanner Quarkus Jackson ........................ SUCCESS [  0.043 s]
[INFO] OptaPlanner Quarkus Jackson - Runtime .............. SUCCESS [  1.836 s]
[INFO] OptaPlanner Quarkus Jackson - Deployment ........... SUCCESS [  0.881 s]
[INFO] OptaPlanner Quarkus Jackson - Integration tests .... SUCCESS [  3.430 s]
[INFO] OptaPlanner Quarkus JSON-B ......................... SUCCESS [  0.028 s]
[INFO] OptaPlanner Quarkus JSON-B - Runtime ............... SUCCESS [  1.305 s]
[INFO] OptaPlanner Quarkus JSON-B - Deployment ............ SUCCESS [  0.681 s]
[INFO] OptaPlanner Quarkus JSON-B - Integration tests ..... SUCCESS [  2.156 s]
[INFO] OptaPlanner Migration .............................. SUCCESS [  1.777 s]
[INFO] OptaPlanner examples ............................... SUCCESS [  4.562 s]
[INFO] [Experimental] OptaPlanner Operator ................ SUCCESS [ 19.769 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:13 min

Reproduce

SHA: 00a2db53c760a8c9b8c5b69fd2e33cf2b57bd5e9


git clone https://github.com/apache/incubator-kie-optaplanner
cd ./incubator-kie-optaplanner
mvn edu.illinois:nondex-maven-plugin:2.1.7-SNAPSHOT:nondex -pl build/optaplanner-ide-config | tee ./ide-config.log

and you will find

[ERROR] Failed to execute goal edu.illinois:nondex-maven-plugin:2.1.7-SNAPSHOT:nondex (default-cli) on project optaplanner-ide-config: Unable to execute mojo: groups/excludedGroups require TestNG, JUnit48+ or JUnit 5 (a specific engine required on classpath) on project test classpath -> [Help 1]

Related discussion:

https://campuswire.com/c/G7A0E96FD/feed/650
https://campuswire.com/c/G7A0E96FD/feed/628

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions