-
Notifications
You must be signed in to change notification settings - Fork 357
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
argLine problems since 1.15.4 #1292
Comments
Thanks for the report. Looks like property replacement isn't being done for args taken from surefire. Fortunately it should be an easy fix, will hopefully get a release out today or tomorrow. |
Fix released in 1.15.5 |
I still see this issue with 1.15.7.
|
Could you put together a minimal project that reproduces the issue? |
@hcoles Sorry, I don't think I can quickly create a project that recreates the issue. Here is some more info from the stack trace if useful: [ERROR] Failed to execute goal org.pitest:pitest-maven:1.15.7:mutationCoverage (default-cli) on project trading-provider-integral-service: Execution default-cli of goal org.pitest:pitest-maven:1.15.7:mutationCoverage failed: Coverage generation minion exited abnormally! (MINION_DIED) |
Hi @glennhcc If you are not able to provide a project that reproduces this, it is unlikely that the issue will be fixed. While it may be difficult for you to create a project that reproduces the issue, it is orders of magnitude harder for me to do so as I have no access to the code and environment where the problem first occurred. The pitest test suite contains a basic test that surefire args are replaced without creating errors As this simple case does not reproduce the problem, details of what is happening in your codebase are required to reproduce. |
@hcoles I understand. Thank you for attention on this. I will try to progress it from my side. We have projects where we do not see this issue in addition to this one where we do. I will try to narrow down the difference. Currently I am trying to see the runtime value of surefire argLine. |
@hcoles changing
Not sure if this is any help in identifying the underlying cause. |
Thanks, I think that probably identifies the issue. It looks like the surefire config is being pulled out by pitest without the standard maven variable substitution. |
@glennhcc did the 1.15.8 release resolve the issue for you? |
Just to add a bit of info, observed the same issue with two repositories I work on. exact same error with both, only with this version or later. we had 'surefireArgLine' set to allow jacoco and surefire to work together properly, luckily in our case it turns out the newer version of both of those doesn't require that config set, so I just removed it and then Pitest worked fine |
@hcoles issue still present in 1.16.1 |
@GhilesA If you can provide a minimal project that reproduces the issue, I can take a look. |
@hcoles thanks for the quick reply ! |
I just checked that project out and ran mvn test-compile org.pitest:pitest-maven:mutationCoverage I did not encounter any errors. Possibly the issue is only with certain maven versions? I was using 3.9.6. |
Also working with maven 3.2.5 What OS are you using? |
I'm using maven 3.9.6 too, i even tried on 3.9.7 lsb_release -a :
as a complement the stack error :
|
by re-reading you comment i think i got the difference, I'm running |
I discovered the same thing as you were typing that. Running
Works Running
Reproduces the error. I've not double checked, but I suspect that binding pitest to a lifecyle phase in the recommended fashion will also work. I'll have to dig into the this to understand exactly what is going on. |
Since 1.15.4 the following fatal error appears when running
mvn org.pitest:pitest-maven:mutationCoverage
:PIT >> INFO : MINION : Error: could not open '{argLine}'
Probably caused by this change in 1.15.4: #1289
It probably relates to my Surefire config, which I need to workaround this issue: mockito/mockito#3037
Note that it works fine if I run
mvn test org.pitest:pitest-maven:mutationCoverage
. Unfortunately, in my CI/CD pipeline,test
andmutationCoverage
are split into two separate stages.The text was updated successfully, but these errors were encountered: