codecov / codecov-action

GitHub Action that uploads coverage to Codecov :open_umbrella:
https://www.codecov.io
MIT License
1.46k stars 203 forks source link

Golang app built in dockerfile doesn't get path fixes #914

Closed tuxerrante closed 1 year ago

tuxerrante commented 1 year ago

Hi, I'm trying to get a code coverage result in my badge but it has never moved from 0%. My app does the testing inside a docker container and the general appoach in the codecov/example-go seems not to work.

Looking on https://app.codecov.io/github/tuxerrante/kapparmor/commits I've noticed the go paths are not being rewriten as documented here and the go src path is wrong.

It seems also my codecov.yml is ignored so I'm not able to manually fix the path https://github.com/tuxerrante/kapparmor/commit/7f7f13e939cf08cf16b29296696715c2d2844ac6

This is how the uploaded file looks like, as you can see it's still skipping the "go/src/app/" path before the go files:

coverage.out
provenance.json
<<<<<< network
# path=./coverage.out
mode: atomic
github.com/tuxerrante/kapparmor/filesystemOperations.go:18.28,22.16 2 0
github.com/tuxerrante/kapparmor/filesystemOperations.go:27.2,27.57 1 0
github.com/tuxerrante/kapparmor/filesystemOperations.go:32.2,32.70 1 0

image

Any hint? Thanks

thomasrockhu-codecov commented 1 year ago

@tuxerrante can you open a topic in our community boards for this?