Unable to disable patch / project status checks in Codecov GitHub actions plugin

Description

This relates to Changed codecov.yml seems not to be found and Cannot disable codecov/patch check? but I’m still having an issue.

I’m trying to disable Codecov GitHub actions for the Patch and Project checks in our PRs. I have managed to prevent them from running but they still fail the build because they’re waiting to complete.

Ideally, we would like the coverage report posted in the comments of the PR as it does by default but only remove the checks in the actions at the bottom of the PR as seen in the screenshot above.

Our Codecov file is named codecov.yml and sits in the root of the project.

coverage:
    status:
        patch: off
        project: off

Our .github/workflows/nodejs.yml has this entry for Codecov:

- uses: codecov/codecov-action@v1
    with:
        token: ${{ secrets.CODECOV_TOKEN }}
        fail_ci_if_error: true

Any help would be appreciated.

Thanks.

Repository

Private

CI/CD

GitHub (Actions)

Uploader

We’re using the Codecov GitHub actions plugin to upload the code coverage.

Commit SHAs

55b0b66a5a98f972490adac8a4e67dab9841d978

Codecov YAML

coverage:
    status:
        patch: off
        project: off

Codecov Output

Output from Codecov GitHub actions plugin

Run codecov/codecov-action@v1
  with:
    token: ***
    fail_ci_if_error: true
bash codecov.sh -n  -F  -Z

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-20200728-9fb7d93

==> GitHub Actions detected.
    project root: .
--> token set from env
    Yaml found at: codecov.yml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 3 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./coverage/coverage-final.json bytes=2829085
    + ./coverage/lcov.info bytes=479320
    + ./coverage/clover.xml bytes=1025723
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
==> Uploading reports
    url: https://codecov.io
    query: branch=feature%2Frelax-code-cov&commit=55b0b66a5a98f972490adac8a4e67dab9841d978&build=196463831&build_url=http%3A%2F%2Fgithub.com%2FCOMPANY%2FPROJECT%2Factions%2Fruns%2F196463831&name=&tag=&slug=COMPANY%2FPROJECT&service=github-actions&flags=&pr=&job=&cmd_args=n,F,Z
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20200728-9fb7d93&token=secret&branch=feature%2Frelax-code-cov&commit=55b0b66a5a98f972490adac8a4e67dab9841d978&build=196463831&build_url=http%3A%2F%2Fgithub.com%2FCOMPANY%2FPROJECT%2Factions%2Fruns%2F196463831&name=&tag=&slug=COMPANY%2FPROJECT&service=github-actions&flags=&pr=&job=&cmd_args=n,F,Z
->  Uploading to

https://storage.googleapis.com/codecov/v4/raw/2020-08-05/317FE00F21ED1308377DA8B9254FA33D/55b0b66a5a98f972490adac8a4e67dab9841d978/678d7153-50cc-45c5-8b0b-af0479ae79fb.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200805%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200805T161211Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=50d54d02d4ae2b30e248d6b7cd0f9f5f0b5a73bea27b2b0af785fd1197c0c375

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0 100  462k    0     0  100  462k      0  2082k --:--:-- --:--:-- --:--:-- 2082k
    -> View reports at https://codecov.io/github/COMPANY/PROJECT/commit/55b0b66a5a98f972490adac8a4e67dab9841d978

Hi @justynjj, it looks like the Codecov statuses are required. I would double-check your GitHub settings to ensure they are not required as we are not sending them from our side.

https://github.com/{{ organization }}/{{ repository }}/settings/branches under Branch protection rules

1 Like

Thanks @tom, that was it. I had my head in Codecov configs so much I missed the bigger picture!

1 Like