carlossg / docker-maven

Official Docker image with Maven
Apache License 2.0
524 stars 423 forks source link

test: bump surefire #330

Closed carlossg closed 1 year ago

carlossg commented 1 year ago

@slide newer surefire versions are failing with

Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project example: There are test failures.
Error:  
Error:  Please refer to C:\Temp\target\surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Error:  Command was cmd.exe /X /C "C:\openjdk-8\jre\bin\java -jar C:\Users\CONTAI~2\AppData\Local\Temp\surefire5485655954834297554\surefirebooter576843421289266[53](https://github.com/carlossg/docker-maven/actions/runs/4158097711/jobs/7193077073#step:3:54)48.jar C:\Users\ContainerAdministrator\AppData\Local\Temp\surefire5485655954834297554 2023-02-12T20-46-12_129-jvmRun1 surefire6876441647315012349tmp surefire_05353401210504586307tmp"
Error:  Error occurred in starting fork, check output in log
Error:  Process Exit Code: 1
Error:  org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Error:  Command was cmd.exe /X /C "C:\openjdk-8\jre\bin\java -jar C:\Users\CONTAI~2\AppData\Local\Temp\surefire[54](https://github.com/carlossg/docker-maven/actions/runs/4158097711/jobs/7193077073#step:3:55)85655954834297554\surefirebooter5768434212892665348.jar C:\Users\ContainerAdministrator\AppData\Local\Temp\surefire5485655954834297554 2023-02-12T20-46-12_129-jvmRun1 surefire6876441647315012349tmp surefire_05353401210504586307tmp"
Error:  Error occurred in starting fork, check output in log
Error:  Process Exit Code: 1

https://github.com/carlossg/docker-maven/actions/runs/4158097711/jobs/7193077073

surefire 3.x is also failing #331

slide commented 1 year ago

Is there a way to get more information, e.g. the dump file or something? Perhaps the latest jdk-8 is using something that isn't in server core?

carlossg commented 1 year ago

you can add run any command in the tests if you want to get file outputs