Code coverage shows an old status

Description

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
      with:
        fail_ci_if_error: true

CI/CD URL

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.3679775Z https://uploader.codecov.io/latest/windows/codecov.exe.SHA256SUM
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.0579770Z 
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 https://docs.codecov.com/docs/supported-report-formats
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/lcov.info
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/lcov.info...
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: https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.1.17&token=*******&branch=test-codecov&build=1803138652&build_url=https%3A%2F%2Fgithub.com%2Fyoavain%2Flyricsify-cli%2Factions%2Fruns%2F1803138652&commit=39561c3b61559eaa673c70a81c62bcd84b438505&job=Node+CI&pr=7&service=github-actions&slug=yoavain%2Flyricsify-cli&name=&tag=&flags=&parent=
2022-02-06T18:52:56.0588898Z [2022-02-06T18:52:55.793Z] ['info'] https://codecov.io/github/yoavain/lyricsify-cli/commit/39561c3b61559eaa673c70a81c62bcd84b438505
2022-02-06T18:52:56.0590474Z https://storage.googleapis.com/codecov/v4/raw/2022-02-06/A1768FC76AFC5CE1CE84FA67E7A3BB63/39561c3b61559eaa673c70a81c62bcd84b438505/8136164e-3226-45f0-9b32-f9f3f9a8541c.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220206%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220206T185255Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=0c863239cc780d59a97b38ad2ee3d0f07e0240d37f138e08423caf27662bd7db
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":"https://codecov.io/github/yoavain/lyricsify-cli/commit/39561c3b61559eaa673c70a81c62bcd84b438505"}
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