Codecov not commenting in PRs

Description

CI/CD URL

Codecov Output

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

==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (330066ecce62f2cdcfd2fe1845095475f51bbad9649dce81ac7b663dc884bbef  codecov)
==> Running version latest
==> Running version v0.1.15
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n  -Q github-action-2.1.0 -C a0c8b741a175407e6dd14119cc4226562deb3656
[2022-02-03T21:07:44.386Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.1.15
[2022-02-03T21:07:44.396Z] ['info'] => Project root located at: /home/runner/work/action-filter-issues/action-filter-issues
[2022-02-03T21:07:44.397Z] ['info'] ->  Token found by environment variables
[2022-02-03T21:07:44.403Z] ['info'] Searching for coverage files...
[2022-02-03T21:07:44.449Z] ['info'] Warning: Some files located via search were excluded from upload.
[2022-02-03T21:07:44.449Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2022-02-03T21:07:44.449Z] ['info'] => Found 3 possible coverage files:
  coverage/clover.xml
  coverage/coverage-final.json
  coverage/lcov.info
[2022-02-03T21:07:44.449Z] ['info'] Processing /home/runner/work/action-filter-issues/action-filter-issues/coverage/clover.xml...
[2022-02-03T21:07:44.452Z] ['info'] Processing /home/runner/work/action-filter-issues/action-filter-issues/coverage/coverage-final.json...
[2022-02-03T21:07:44.453Z] ['info'] Processing /home/runner/work/action-filter-issues/action-filter-issues/coverage/lcov.info...
[2022-02-03T21:07:44.455Z] ['info'] Using manual override from args.
[2022-02-03T21:07:44.456Z] ['info'] Detected GitHub Actions as the CI provider.
[2022-02-03T21:07:44.457Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.1.15&token=*******&branch=test-codecov&build=1791777980&build_url=https%3A%2F%2Fgithub.com%2Fsmockle%2Faction-filter-issues%2Factions%2Fruns%2F1791777980&commit=a0c8b741a175407e6dd14119cc4226562deb3656&job=Test&pr=82&service=github-actions&slug=smockle%2Faction-filter-issues&name=&tag=&flags=&parent=
[2022-02-03T21:07:44.813Z] ['info'] Uploading...
[2022-02-03T21:07:45.033Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/smockle/action-filter-issues/commit/a0c8b741a175407e6dd14119cc4226562deb3656"}

Expected Results

I expect Codecov to add a comment to https://github.com/smockle/action-filter-issues/pull/82 with information about coverage changes.

Actual Results

Codecov did not add a comment to https://github.com/smockle/action-filter-issues/pull/82.

Additional Information

@smockle thanks for all the details here. It looks like there is an issue with the GitHub Integration as you mentioned. Although it appears in the list, we do not see that on our end. Would you be able to remove and re-install? That should fix the comment issue.

1 Like

Thanks for the reply, @tom! Per your suggestion, I removed each of my projects from Codecov, then removed the GitHub App installation, cancelled the plan, and waited for the cancelled plan to expire (which is the reason this response is delayed).

Yesterday, I set up a new Codecov plan/installation via the GitHub Marketplace, this time giving it access to all my repositories. I repeated the steps above to test, but unfortunately, Codecov still wouldn’t add comments to smockle/action-filter-issues.

Afterwards, I found a workaround, and I’m happy to report all is working now—

  1. I created a new repo named smockle/action-filter-issues-codecov.
  2. I pushed the same branches to it.
  3. I copied the same repo settings as smockle/action-filter-issues (except updating the CODECOV_TOKEN secret).
  4. I deleted the previous smockle/action-filter-issues repo.
  5. I renamed smockle/action-filter-issues-codecov to smockle/action-filter-issues.
  6. Now, Codecov comments in smockle/action-filter-issues PRs, e.g. chore: Testing Codecov commenting; do not merge by smockle · Pull Request #5 · smockle/action-filter-issues · GitHub
1 Like