codecov / feedback

A place to discuss feedback about the pull request and web product experience.
38 stars 9 forks source link

Why are my Rust coverage reports unusable? #444

Closed LivInTheLookingGlass closed 4 months ago

LivInTheLookingGlass commented 4 months ago

Hi,

I am currently working on a demonstration repo found here. I have tried several workarounds to get my rust code uploading coverage correctly, but unfortunately my uploads are still being reported as unusable. I do not understand why this is, especially since I've tried multiple times to fix the paths being uploaded. I was able to fix it for rust-clippy, but not this. My current rust workflow can be found here

Is the problem merely that it is in a subdirectory? If so, how can I fix this?

drazisil-codecov commented 4 months ago

Hi @LivInTheLookingGlass ,

It looks Codecov can't find the coverage report after we run gcov on the raw files, and and we end up only uploading the codecov.yml, which isn't a coverage file.

If you run gcov -pb <file> on one of the .gcno files locally, does it throw errors, and where does it put the output coverage report?

LivInTheLookingGlass commented 4 months ago

Okay, I have it so that it's uploading a cobertura file right now, but it says "unknown error"

LivInTheLookingGlass commented 4 months ago

Okay, it seems to be processing now with no change. I don't quite understand, but I'll take the win. Does it just say "unknown error" if it's still processing?

drazisil-codecov commented 4 months ago

Hi @LivInTheLookingGlass ,

All I'm seeing is a couple of bad reports (the codecov.yml still), which https://github.com/codecov/codecov-cli/pull/472 will fix, as soon as we release a new version of the CLI.

Otherwise , are things working correctly?

LivInTheLookingGlass commented 4 months ago

Yup, all good on this end. Thank you for your help!