-
Notifications
You must be signed in to change notification settings - Fork 12
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
diff.patch not correctly created when running inside CI #16
Comments
Hi @locomike
If it still reproducible then enable debug logs:
There are a few extra logs was added to help us to investigate what went wrong |
That fixed it, thanks so much for the prompt fix! Any idea why creating the dir is needed in CI but not in Desktop? Maybe some kind of race condition? |
Hi @locomike diff-coverage-gradle/diff-coverage/src/main/kotlin/com/form/coverage/tasks/DiffCoverageTask.kt Lines 47 to 50 in 1bcb38d
I wasn't able to reporoduce the issue on my env. We will merge the fix you tested to make sure the output dir exists. And I have no idea why it works on your local env but doesn't on your CI env. |
I have configured the project to run correctly locally using
git
configuration to get thediff
.This is my configuration:
However, when I run inside Gitlab CI/CD, the execution fails because it cannot create
diff.patch
. I believe the issue is becuase the folder where it wants to create it,build/reports/jacoco/
, because if I pre-create this folder empty, then the plugin finishes successfully.This is the exception:
I verified that
/builds/android/<REPO>
exists and it is the root of my project. I also verified that simply runningmkdir -p ./build/reports/jacoco
before running mygradlew
command fixes it.Can you help me identify why the folder would be successfully created when running locally but fails when running inside CI?
The text was updated successfully, but these errors were encountered: