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

Thanks, already created a PR, added the argument and removed running gcov manually, see Upgrade to codecov-action v3 by jwillemsen · Pull Request #206 · RemedyIT/taox11 · GitHub

1 Like

@tom, yeah, looks like it works! Thank you for the PR and also my ‘Thanks’ to the team.
Great job, folks!

1 Like

It doesn’t seem to work for my PR, see Upgrade to codecov-action v3 · RemedyIT/taox11@abfe7a6 · GitHub or Upgrade to codecov-action v3 by jwillemsen · Pull Request #206 · RemedyIT/taox11 · GitHub, it says no

2022-04-05T15:47:46.0030235Z [2022-04-05T15:47:46.001Z] [‘verbose’] Start of uploader: 1649173666001…
2022-04-05T15:47:46.0037316Z [2022-04-05T15:47:46.003Z] [‘info’]
2022-04-05T15:47:46.0037782Z _____ _
2022-04-05T15:47:46.0038197Z / | | |
2022-04-05T15:47:46.0038518Z | | ___ __| | ___ ___ _____ __
2022-04-05T15:47:46.0038956Z | | / _ \ / ` |/ _ / / _ \ \ / /
2022-04-05T15:47:46.0039478Z | |
| (
) | (
| | __/ (
| (
) \ V /
2022-04-05T15:47:46.0039715Z ______/ _,|_|____/ _/
2022-04-05T15:47:46.0039823Z
2022-04-05T15:47:46.0039926Z Codecov report uploader 0.1.20
2022-04-05T15:47:46.0101790Z [2022-04-05T15:47:46.009Z] [‘info’] => Project root located at: /home/runner/work/taox11/taox11
2022-04-05T15:47:46.0114391Z [2022-04-05T15:47:46.011Z] [‘info’] → No token specified or token is empty
2022-04-05T15:47:46.0116464Z [2022-04-05T15:47:46.011Z] [‘verbose’] Start of network processing…
2022-04-05T15:47:46.0118661Z [2022-04-05T15:47:46.011Z] [‘verbose’] Searching for files in /home/runner/work/taox11/taox11
2022-04-05T15:47:46.0185717Z [2022-04-05T15:47:46.018Z] [‘verbose’] Running gcov…
2022-04-05T15:47:46.3957730Z [2022-04-05T15:47:46.394Z] [‘error’] There was an error running the uploader: No gcov files found
2022-04-05T15:47:46.3958689Z [2022-04-05T15:47:46.395Z] [‘verbose’] The error stack is: Error: No gcov files found
2022-04-05T15:47:46.3959046Z at generateGcovCoverageFiles (/snapshot/repo/dist/src/helpers/gcov.js)
2022-04-05T15:47:46.3959372Z at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-04-05T15:47:46.3959676Z at async main (/snapshot/repo/dist/src/index.js)
2022-04-05T15:47:46.3960041Z [2022-04-05T15:47:46.395Z] [‘verbose’] End of uploader: 394 milliseconds
2022-04-05T15:47:46.4228742Z Post job cleanup.

Thanks @jwillemsen, took me awhile to track down. Aiming to release a new version next week once this PR goes in.

@jwillemsen, ok, do you mind trying again?

The error changed now, see Upgrade to codecov-action v3 · RemedyIT/taox11@753b24d · GitHub

Run codecov/codecov-action@v3
  with:
    gcov: true
    verbose: true
  env:
    DOC_ROOT: /home/runner/work/taox11/taox11/ACE_TAO
    ACE_ROOT: /home/runner/work/taox11/taox11/ACE_TAO/ACE
    MPC_ROOT: /home/runner/work/taox11/taox11/ACE_TAO/MPC
    TAO_ROOT: /home/runner/work/taox11/taox11/ACE_TAO/TAO
    X11_BASE_ROOT: /home/runner/work/taox11/taox11/axcioma
    RIDL_ROOT: /home/runner/work/taox11/taox11/ridl
    TAOX11_ROOT: /home/runner/work/taox11/taox11
    INSTALL_PREFIX: /home/runner/work/taox11/taox11/stage
    CC: gcc-9
    CXX: g++-9
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (8d2bd62336bf931ce36ee4267fbe013ebc2f94dcff694db0b15256640871112f  codecov)
==> Running version latest
==> Running version v0.1.22
/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov -n  -Q github-action-3.0.0 -g -C 753b24d45d8aecdd7170ccdf2868ccb36ed10f3a -v
[2022-04-12T20:12:44.835Z] ['verbose'] Start of uploader: 1649794364835...
[2022-04-12T20:12:44.837Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.1.22
[2022-04-12T20:12:44.846Z] ['info'] => Project root located at: /home/runner/work/taox11/taox11
[2022-04-12T20:12:44.848Z] ['info'] -> No token specified or token is empty
[2022-04-12T20:12:44.848Z] ['verbose'] Start of network processing...
[2022-04-12T20:12:44.848Z] ['verbose'] Searching for files in /home/runner/work/taox11/taox11
[2022-04-12T20:12:44.856Z] ['verbose'] Running gcov...
[2022-04-12T20:14:21.109Z] ['error'] There was an error running the uploader: Error running external program: Error: spawnSync gcov ENOBUFS
[2022-04-12T20:14:21.109Z] ['verbose'] The error stack is: Error: Error running external program: Error: spawnSync gcov ENOBUFS
    at runExternalProgram (/snapshot/repo/dist/src/helpers/util.js)
    at generateGcovCoverageFiles (/snapshot/repo/dist/src/helpers/gcov.js)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async main (/snapshot/repo/dist/src/index.js)
[2022-04-12T20:14:21.109Z] ['verbose'] End of uploader: 96274 milliseconds

Thanks @jwillemsen I think this should fix it. I’ll ping back here when it’s deployed.

1 Like

Hi @jwillemsen, I’ve merged in the change now, do you mind trying again?

Still doesn’t work, see Upgrade to codecov-action v3 by jwillemsen · Pull Request #206 · RemedyIT/taox11 · GitHub, the ubuntu-20.04 g++-9 ruby-2.7 action still doesn’t work, it fails with. Also the action itself isn’t reported as failing by github checks, shouldn’t that happen also?

2022-04-22T12:18:37.6742605Z ##[group]Run codecov/codecov-action@v3
2022-04-22T12:18:37.6742835Z with:
2022-04-22T12:18:37.6743007Z   gcov: true
2022-04-22T12:18:37.6743184Z   verbose: true
2022-04-22T12:18:37.6743359Z env:
2022-04-22T12:18:37.6743576Z   DOC_ROOT: /home/runner/work/taox11/taox11/ACE_TAO
2022-04-22T12:18:37.6743845Z   ACE_ROOT: /home/runner/work/taox11/taox11/ACE_TAO/ACE
2022-04-22T12:18:37.6744116Z   MPC_ROOT: /home/runner/work/taox11/taox11/ACE_TAO/MPC
2022-04-22T12:18:37.6744477Z   TAO_ROOT: /home/runner/work/taox11/taox11/ACE_TAO/TAO
2022-04-22T12:18:37.6744744Z   X11_BASE_ROOT: /home/runner/work/taox11/taox11/axcioma
2022-04-22T12:18:37.6745013Z   RIDL_ROOT: /home/runner/work/taox11/taox11/ridl
2022-04-22T12:18:37.6745275Z   TAOX11_ROOT: /home/runner/work/taox11/taox11
2022-04-22T12:18:37.6745544Z   INSTALL_PREFIX: /home/runner/work/taox11/taox11/stage
2022-04-22T12:18:37.6745767Z   CC: gcc-9
2022-04-22T12:18:37.6745940Z   CXX: g++-9
2022-04-22T12:18:37.6746119Z ##[endgroup]
2022-04-22T12:18:37.8271371Z ==> linux OS detected
2022-04-22T12:18:38.2560803Z https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
2022-04-22T12:18:38.3856605Z ==> SHASUM file signed by key id 806bb28aed779869
2022-04-22T12:18:38.5694576Z ==> Uploader SHASUM verified (8d2bd62336bf931ce36ee4267fbe013ebc2f94dcff694db0b15256640871112f  codecov)
2022-04-22T12:18:38.5695823Z ==> Running version latest
2022-04-22T12:18:38.6414238Z ==> Running version v0.2.0
2022-04-22T12:18:38.6434238Z [command]/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov -n  -Q github-action-3.1.0 -g -C 753b24d45d8aecdd7170ccdf2868ccb36ed10f3a -v
2022-04-22T12:18:38.8434581Z [2022-04-22T12:18:38.841Z] ['verbose'] Start of uploader: 1650629918841...
2022-04-22T12:18:38.8439930Z [2022-04-22T12:18:38.843Z] ['info'] 
2022-04-22T12:18:38.8440323Z      _____          _
2022-04-22T12:18:38.8440703Z     / ____|        | |
2022-04-22T12:18:38.8441328Z    | |     ___   __| | ___  ___ _____   __
2022-04-22T12:18:38.8441688Z    | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
2022-04-22T12:18:38.8442076Z    | |___| (_) | (_| |  __/ (_| (_) \ V /
2022-04-22T12:18:38.8442621Z     \_____\___/ \__,_|\___|\___\___/ \_/
2022-04-22T12:18:38.8442821Z 
2022-04-22T12:18:38.8442937Z   Codecov report uploader 0.1.22
2022-04-22T12:18:38.8497545Z [2022-04-22T12:18:38.849Z] ['info'] => Project root located at: /home/runner/work/taox11/taox11
2022-04-22T12:18:38.8508032Z [2022-04-22T12:18:38.850Z] ['info'] -> No token specified or token is empty
2022-04-22T12:18:38.8510115Z [2022-04-22T12:18:38.850Z] ['verbose'] Start of network processing...
2022-04-22T12:18:38.8511909Z [2022-04-22T12:18:38.850Z] ['verbose'] Searching for files in /home/runner/work/taox11/taox11
2022-04-22T12:18:38.8567464Z [2022-04-22T12:18:38.856Z] ['verbose'] Running gcov...
2022-04-22T12:19:51.2923732Z [2022-04-22T12:19:51.291Z] ['error'] There was an error running the uploader: Error running external program: Error: spawnSync gcov ENOBUFS
2022-04-22T12:19:51.2924364Z [2022-04-22T12:19:51.291Z] ['verbose'] The error stack is: Error: Error running external program: Error: spawnSync gcov ENOBUFS
2022-04-22T12:19:51.2924770Z     at runExternalProgram (/snapshot/repo/dist/src/helpers/util.js)
2022-04-22T12:19:51.2925145Z     at generateGcovCoverageFiles (/snapshot/repo/dist/src/helpers/gcov.js)
2022-04-22T12:19:51.2925511Z     at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-04-22T12:19:51.2925843Z     at async main (/snapshot/repo/dist/src/index.js)
2022-04-22T12:19:51.2926249Z [2022-04-22T12:19:51.292Z] ['verbose'] End of uploader: 72451 milliseconds

Did another run and it now seems to work correctly, thanks!

Run codecov/codecov-action@v3
  with:
    gcov: true
    verbose: true
  env:
    DOC_ROOT: /home/runner/work/taox11/taox11/ACE_TAO
    ACE_ROOT: /home/runner/work/taox11/taox11/ACE_TAO/ACE
    MPC_ROOT: /home/runner/work/taox11/taox11/ACE_TAO/MPC
    TAO_ROOT: /home/runner/work/taox11/taox11/ACE_TAO/TAO
    X11_BASE_ROOT: /home/runner/work/taox11/taox11/axcioma
    RIDL_ROOT: /home/runner/work/taox11/taox11/ridl
    TAOX11_ROOT: /home/runner/work/taox11/taox11
    INSTALL_PREFIX: /home/runner/work/taox11/taox11/stage
    CC: gcc-9
    CXX: g++-9
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (cae21e490c24b05c3802c7001a1540a7f83d46cb4f1eadf14e76627094c65cb8  codecov)
==> Running version latest
==> Running version v0.2.0
/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov -n  -Q github-action-3.1.0 -g -C 753b24d45d8aecdd7170ccdf2868ccb36ed10f3a -v
[2022-04-26T10:20:12.914Z] ['verbose'] Start of uploader: 1650968412914...
[2022-04-26T10:20:12.916Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.2.0
[2022-04-26T10:20:12.922Z] ['info'] => Project root located at: /home/runner/work/taox11/taox11
[2022-04-26T10:20:12.923Z] ['info'] -> No token specified or token is empty
[2022-04-26T10:20:12.923Z] ['verbose'] Start of network processing...
[2022-04-26T10:20:12.924Z] ['verbose'] Searching for files in /home/runner/work/taox11/taox11
[2022-04-26T10:20:12.930Z] ['verbose'] Running gcov...

@jwillemsen ahhh amazing, looks like it just hadn’t moved up to 0.2.0. Thanks for all your patience here.