Code coverage shows an old status


I have a public repo. I use PRs to merge to the main branch. PRs run GitHub actions, with the following step:

  - name: Codecov
      uses: codecov/codecov-action@v2.1.0
        fail_ci_if_error: true


Codecov Output

2022-02-06T18:52:53.7112113Z ##[group]Run codecov/codecov-action@v2.1.0
2022-02-06T18:52:53.7112479Z with:
2022-02-06T18:52:53.7112697Z   fail_ci_if_error: true
2022-02-06T18:52:53.7112897Z ##[endgroup]
2022-02-06T18:52:53.8949511Z ==> windows OS detected
2022-02-06T18:52:54.6117115Z ==> SHASUM file signed by key id 806bb28aed779869
2022-02-06T18:52:54.7995020Z ==> Uploader SHASUM verified (d7b9117dcabf4835e5e179c3c2c7e40a91cda569a8fa68ee0090295448191760  codecov.exe)
2022-02-06T18:52:54.7997648Z ==> Running version latest
2022-02-06T18:52:54.8381548Z ==> Running version v0.1.17
2022-02-06T18:52:54.8418694Z [command]D:\a\_actions\codecov\codecov-action\v2.1.0\dist\codecov.exe -n "" -Q github-action-2.1.0 -Z -C 39561c3b61559eaa673c70a81c62bcd84b438505
2022-02-06T18:52:55.2328504Z [2022-02-06T18:52:55.231Z] ['info'] 
2022-02-06T18:52:55.2329244Z      _____          _
2022-02-06T18:52:56.0576571Z     / ____|        | |
2022-02-06T18:52:56.0577458Z    | |     ___   __| | ___  ___ _____   __
2022-02-06T18:52:56.0577982Z    | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
2022-02-06T18:52:56.0579387Z    | |___| (_) | (_| |  __/ (_| (_) \ V /
2022-02-06T18:52:56.0579625Z     \_____\___/ \__,_|\___|\___\___/ \_/
2022-02-06T18:52:56.0579915Z   Codecov report uploader 0.1.17
2022-02-06T18:52:56.0580446Z [2022-02-06T18:52:55.285Z] ['info'] => Project root located at: D:/a/lyricsify-cli/lyricsify-cli
2022-02-06T18:52:56.0580916Z [2022-02-06T18:52:55.286Z] ['info'] -> No token specified or token is empty
2022-02-06T18:52:56.0581342Z [2022-02-06T18:52:55.328Z] ['info'] Searching for coverage files...
2022-02-06T18:52:56.0581840Z [2022-02-06T18:52:55.382Z] ['info'] Warning: Some files located via search were excluded from upload.
2022-02-06T18:52:56.0582964Z [2022-02-06T18:52:55.382Z] ['info'] If Codecov did not locate your files, please review
2022-02-06T18:52:56.0583656Z [2022-02-06T18:52:55.382Z] ['info'] => Found 3 possible coverage files:
2022-02-06T18:52:56.0583931Z   coverage/clover.xml
2022-02-06T18:52:56.0584175Z   coverage/coverage-final.json
2022-02-06T18:52:56.0584412Z   coverage/
2022-02-06T18:52:56.0584890Z [2022-02-06T18:52:55.382Z] ['info'] Processing D:/a/lyricsify-cli/lyricsify-cli/coverage/clover.xml...
2022-02-06T18:52:56.0585466Z [2022-02-06T18:52:55.384Z] ['info'] Processing D:/a/lyricsify-cli/lyricsify-cli/coverage/coverage-final.json...
2022-02-06T18:52:56.0586039Z [2022-02-06T18:52:55.385Z] ['info'] Processing D:/a/lyricsify-cli/lyricsify-cli/coverage/
2022-02-06T18:52:56.0586530Z [2022-02-06T18:52:55.389Z] ['info'] Detected GitHub Actions as the CI provider.
2022-02-06T18:52:56.0587812Z [2022-02-06T18:52:55.390Z] ['info'] Pinging Codecov:*******&branch=test-codecov&build=1803138652&
2022-02-06T18:52:56.0588898Z [2022-02-06T18:52:55.793Z] ['info']
2022-02-06T18:52:56.0591417Z [2022-02-06T18:52:55.793Z] ['info'] Uploading...
2022-02-06T18:52:56.0593858Z [2022-02-06T18:52:56.027Z] ['info'] {"status":"success","resultURL":""}
2022-02-06T18:52:56.0793289Z Post job cleanup.
2022-02-06T18:52:57.6383516Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\hostedtoolcache\windows\node\14.18.3\x64\npm.cmd config get cache"
2022-02-06T18:52:57.6383898Z C:\npm\cache
2022-02-06T18:52:57.6387043Z [command]C:\Windows\System32\tar.exe --posix -z -cf cache.tgz -P -C D:/a/lyricsify-cli/lyricsify-cli --files-from manifest.txt
2022-02-06T18:53:01.2808870Z Cache Size: ~34 MB (35920645 B)
2022-02-06T18:53:01.3357364Z Cache saved successfully
2022-02-06T18:53:01.3404825Z Cache saved with the key: node-cache-Windows-npm-b1ec1a2280d3de792584814b1c6879a11c6b83fa6e6ff2d85418d7b66e79139a

Expected Results

Last 5 PR that were merged to the ‘main’ branch have ~90% coverage, I expect both the badge and the main codecov repo page to show 90%.

Actual Results

I still see 80% coverage in both the badge and the codecov repo page.
I can see in the codecov site all commits, with the correct 90% coverage. Still main branch shows 80%

Additional Information

At first, I have the token in my action yml file. Then I read that for public repos it’s not necessary, so I removed it. Still, same result.

@yoavain have you installed the GitHub app integration?

No, I haven’t. I thought the configuration above is enough.
Is this instead of the GitHub action snippet?

@yoavain, no this is in addition to. Let me know if it fixes the issue.

Thanks Tom, that did the trick

1 Like