Gcov coverage reports were not found when migrating from codecov/codecov-action@v1 to codecov/codecov-action@v2

  Codecov report uploader 0.1.5
[2021-10-13T15:30:53.637Z] ['info'] => Project root located at: /home/runner/work/boinc/boinc
[2021-10-13T15:30:53.640Z] ['info'] -> No token specified or token is empty
[2021-10-13T15:30:53.650Z] ['info'] Searching for coverage files...
[2021-10-13T15:30:53.895Z] ['error'] There was an error running the uploader: No coverage files located, please try use `-f`, or change the project root with `-R`
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov' failed with exit code 255

Full log

@AenBleidd you will likely need to run gcov in a step before the uploader

Why this was not needed before?
Looks like, some extended guide is required to migrate from v1 to v2, as there is a significant behavior change

See Codecov-action v2 not working (v1 does work) for a similar issue. See Bump codecov/codecov-action from 1 to 2 and add gcov invocation by dependabot[bot] · Pull Request #172 · RemedyIT/taox11 · GitHub for the PR we have for v2, but that drops the coverage significantly, we haven’t found time to look more into that.

1 Like

@AenBleidd @jwillemsen thanks here. The bash (v1) uploader was doing more things under the covers that were not particularly well understood. We had decided to have v2 be more direct, less magic.

The product team is now re-evaluating this strategy thanks to your posts.

1 Like