Skip to content
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

Slather empty result on Jenkins CI #542

Open
Dirakto opened this issue Jul 5, 2023 · 2 comments
Open

Slather empty result on Jenkins CI #542

Dirakto opened this issue Jul 5, 2023 · 2 comments

Comments

@Dirakto
Copy link

Dirakto commented Jul 5, 2023

For some unknown reason slather v2.6.0 generates empty coverage reports on Jenkins CI. I have setup Jenkins workspace to /var/lib/jenkins, where /var is a link to /private/var. The exact same call to slather (via Fastlane or directly - with slather file or through command params) works fine if the project is placed in the $HOME directory (/Users/dirakto/workspace). Does anybody have any solution?

I used the verbose option and according to the output I am comparing the exact same paths (to Coverage.profdata and binary), and I've granted access to files to my terminal, so my only other idea is that it's either the path's fault or slather/xcodebuild is placing some temp files and there is some permission issue.

Remember that slather is successfully generating the report and doesn't produce any warnings.

@caguilar187
Copy link

@Dirakto did you ever get a solution to this, I think I'm running into the same issue.

we seem to have figured out the issue is that xcrun llvm-cov show -instr-profile works with /var but not /private/var so trying to figure out a different solution.

@Dirakto
Copy link
Author

Dirakto commented Mar 24, 2024

@caguilar187 I think I might have fixed it, but it required modifying the codebase. I don't remember the specific change though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants