Codecov report does not get generated without any upload errors

Before submitting a topic, please confirm the following

I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml configuration file.
I have filled out the below sections to the best of my ability.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.


We have codecov report as a required check in our github PRs. Earlier we had the issue of report upload failure [1]. We fixed this issue by providing CODECOV_TOKEN as a github secret and now the upload step does not fail.

However, now there is an intermittent issue where the code coverage report is not shown in the PR. But the report upload status shows it as a success.

[1] Upload Issues (`Unable to locate build via Github Actions API`)


Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

Run codecov/codecov-action@v2
==> linux OS detected
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (080b43eaec3434326bb0f61653a82d27aba15c311ddde9d3f68cb364314f7aae  codecov)
==> Running version latest
==> Running version v0.3.5
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n  -Q github-action-2.1.0 -C fa2871dcc35a951305412c717d7652fb73c343c0
[2023-03-09T17:22:25.232Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.3.5
[2023-03-09T17:22:25.242Z] ['info'] => Project root located at: /home/runner/work/module-ballerina-oauth2/module-ballerina-oauth2
[2023-03-09T17:22:25.246Z] ['info'] ->  Token found by environment variables
[2023-03-09T17:22:25.256Z] ['info'] Searching for coverage files...
[2023-03-09T17:22:25.486Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-03-09T17:22:25.486Z] ['info'] If Codecov did not locate your files, please review
[2023-03-09T17:22:25.486Z] ['info'] => Found 1 possible coverage files:
[2023-03-09T17:22:25.486Z] ['info'] Processing /home/runner/work/module-ballerina-oauth2/module-ballerina-oauth2/ballerina/target/report/oauth2/coverage-report.xml...
[2023-03-09T17:22:25.493Z] ['info'] Using manual override from args.
[2023-03-09T17:22:25.493Z] ['info'] Detected GitHub Actions as the CI provider.
[2023-03-09T17:22:25.495Z] ['info'] Pinging Codecov:*******&branch=load-test-results&build=4376805991&
[2023-03-09T17:22:37.896Z] ['info']
[2023-03-09T17:22:37.897Z] ['info'] Uploading...
[2023-03-09T17:22:38.078Z] ['info'] {"status":"success","resultURL":""}

Expected Results

Codecoverage results reflected in the PR.

Actual Results

No code coverage information

Additional Information

This is intermittent and occurs rarely.

1 Like

@dilanSachi this looks like an issue on our side, give me a little bit of time to debug what happened. This looks to be very specific to this commit.

@dilanSachi this should be resolved now. Would you be able to re-run the workflow? That should provide the PR comment that you expect.

Hi @tom . Actually this is not specific to this PR. I saw this again in another PR.
See [Automated] Update summary csv files by ballerina-bot · Pull Request #935 · ballerina-platform/module-ballerina-oauth2 · GitHub

Gah, my suspicion @dilanSachi is that this happened during some downtime we were experiencing. I see the upload come through and nothing seems wrong with it. I’m guessing it was just a blip, and I’m so sorry. If you re-run CI, this should solve the issue for that commit, even though I believe the PR is merged.

1 Like

Thanks for the help @tom

1 Like