Any clues why pitest is failing with jdk 19 and 20 too.. have not tested on others

324 views
Skip to first unread message

Raja Nagendra Kumar

unread,
Aug 28, 2023, 6:44:15 PM8/28/23
to PIT Users
\java\testing\mutation\mt-java-pit-sample>gradle pitest                                                                                                                    
More progress was logged than there should be (5 > 4)

> Task :fix:pitest FAILED
4:10:50 am PIT >> INFO : Verbose logging is disabled. If you encounter a problem, please enable it before reporting an issue.
4:10:50 am PIT >> INFO : Incremental analysis reduced number of mutations by 0
4:10:50 am PIT >> INFO : Created 3 mutation test units in pre scan
4:10:50 am PIT >> INFO : Sending 4 test classes to minion
4:10:50 am PIT >> INFO : Sent tests to minion
4:10:51 am PIT >> SEVERE : Coverage generator Minion exited abnormally due to UNKNOWN_ERROR
Exception in thread "main" org.pitest.util.PitError: Coverage generation minion exited abnormally! (UNKNOWN_ERROR)

Please copy and paste the information and the complete stacktrace below when reporting an issue
VM : Java HotSpot(TM) 64-Bit Server VM
Vendor : Oracle Corporation
Version : 19.0.2+7-44
Uptime : 770
Input ->
 1 : -Dfile.encoding=UTF-8
 2 : -Duser.country=IN
 3 : -Duser.language=en
 4 : -Duser.variant
BootClassPathSupported : false


Please copy and paste the information and the complete stacktrace below when reporting an issue
VM : Java HotSpot(TM) 64-Bit Server VM
Vendor : Oracle Corporation
Version : 19.0.2+7-44
Uptime : 770
Input ->
 1 : -Dfile.encoding=UTF-8
 2 : -Duser.country=IN
 3 : -Duser.language=en
 4 : -Duser.variant
BootClassPathSupported : false

        at org.pitest.util.Unchecked.translateCheckedException(Unchecked.java:20)
        at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:106)
        at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:52)
        at org.pitest.mutationtest.tooling.MutationCoverage.runAnalysis(MutationCoverage.java:148)
        at org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:138)
        at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:129)
        at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:57)
        at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:98)
        at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)
Caused by: org.pitest.util.PitError: Coverage generation minion exited abnormally! (UNKNOWN_ERROR)

Please copy and paste the information and the complete stacktrace below when reporting an issue
VM : Java HotSpot(TM) 64-Bit Server VM
Vendor : Oracle Corporation
Version : 19.0.2+7-44
Uptime : 770
Input ->
 1 : -Dfile.encoding=UTF-8
 2 : -Duser.country=IN
 3 : -Duser.language=en
 4 : -Duser.variant
BootClassPathSupported : false

        at org.pitest.coverage.execute.DefaultCoverageGenerator.gatherCoverageData(DefaultCoverageGenerator.java:148)
        at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:90)
        ... 7 more

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fix:pitest'.
> Process 'command 'D:\OS\win\Dev\langs\java\jdk\19.x\19.0.2\bin\java.exe'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 19s
12 actionable tasks: 5 executed, 7 up-to-date

Henry Coles

unread,
Aug 29, 2023, 3:07:07 AM8/29/23
to pitu...@googlegroups.com
If you can post a minimal project that reproduces the problem I can take a look.

--
You received this message because you are subscribed to the Google Groups "PIT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pitusers+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pitusers/c57967f9-4b89-404d-81b4-cadf5216ca4an%40googlegroups.com.

Raja Nagendra Kumar

unread,
Aug 29, 2023, 7:57:08 AM8/29/23
to PIT Users
Thank You, fortunately, when I enabled log, this was due to not including certain classes dependency of launcher.

I added this and it work both on jdk 19 and 20 too

testImplementation("org.junit.platform:junit-platform-launcher:1.10.0")

Marcin Zajączkowski

unread,
Aug 29, 2023, 9:58:28 AM8/29/23
to PIT Users
Which is tracked in the plugin as:
https://github.com/szpak/gradle-pitest-plugin/issues/337

Nevertheless, I would expect some real reason in logs instead of
UNKNOWN_ERROR. Maybe it is included in the verbose logging.


Marcin
https://blog.solidsoft.pl/ - Solid Soft - Working code is not enough

Reply all
Reply to author
Forward
0 new messages