There was an error processing coverage reports for reports that look fine

Description

For the last several days, I’ve been trying to figure out why my CodeCov reports fail to upload. I’ve followed along with this tutorial but have removed the Code Climate steps. The generated JSON report looks correct and the CI passes (if Tkinter decides to cooperate and not fail randomly) and uploads correctly but every time it says “There was an error processing coverage reports.”

Commit SHAs

This has been happening since the very first commit that used CodeCov in the CI but here is the latest one: e6095344cd3b31153c68b59ff0797e2236c82676

Repository

https://github.com/UnsignedArduino/TkZero

CI/CD or Build URL

GitHub Actions

Uploader

"C:\Program Files\Git\bin\bash.exe" codecov.sh -n "" -F "" -Q github-action -Z -X coveragepy

Codecov Output

> Run codecov/codecov-action@v1
"C:\Program Files\Git\bin\bash.exe" codecov.sh -n "" -F "" -Q github-action -Z -X coveragepy

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-1.0.2


==> git version 2.31.1.windows.1 found
==> curl 7.75.0 (x86_64-w64-mingw32) libcurl/7.75.0 OpenSSL/1.1.1k (Schannel) zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.0 libssh2/1.9.0 nghttp2/1.41.0
Release-Date: 2021-02-03
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS brotli HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink MultiSSL NTLM SPNEGO SSL SSPI TLS-SRP zstd
==> GitHub Actions detected.
    Env vars used:
      -> GITHUB_ACTIONS:    true
      -> GITHUB_HEAD_REF:   
      -> GITHUB_REF:        refs/heads/main
      -> GITHUB_REPOSITORY: UnsignedArduino/TkZero
      -> GITHUB_RUN_ID:     782857998
      -> GITHUB_SHA:        e6095344cd3b31153c68b59ff0797e2236c82676
      -> GITHUB_WORKFLOW:   .github/workflows/build.yml
    project root: D:/a/TkZero/TkZero
    Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
==> Running gcov in D:/a/TkZero/TkZero (disable via -X gcov)
==> Python coveragepy disabled
==> Searching for coverage reports in:
    + D:/a/TkZero/TkZero
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + D:/a/TkZero/TkZero/coverage.json bytes=11955
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    -> No adjustments found
==> Gzipping contents
        4.0K	/tmp/codecov.I59oro.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=main&commit=e6095344cd3b31153c68b59ff0797e2236c82676&build=782857998&build_url=http%3A%2F%2Fgithub.com%2FUnsignedArduino%2FTkZero%2Factions%2Fruns%2F782857998&name=&tag=&slug=UnsignedArduino%2FTkZero&service=github-actions&flags=&pr=&job=.github%2Fworkflows%2Fbuild.yml&cmd_args=n,F,Q,Z,X
->  Pinging Codecov
https://codecov.io/upload/v4?package=github-action-1.0.2&token=secret&branch=main&commit=e6095344cd3b31153c68b59ff0797e2236c82676&build=782857998&build_url=http%3A%2F%2Fgithub.com%2FUnsignedArduino%2FTkZero%2Factions%2Fruns%2F782857998&name=&tag=&slug=UnsignedArduino%2FTkZero&service=github-actions&flags=&pr=&job=.github%2Fworkflows%2Fbuild.yml&cmd_args=n,F,Q,Z,X
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-04-26/45794A1426D488F7BE7A097FDAF2580B/e6095344cd3b31153c68b59ff0797e2236c82676/25246a6a-de9f-4912-a9b8-e6f6e597940c.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQM3VGPYSAFECJRMNAFIPCV2R3P2BOORCJC7NM537NPJQSFLHUDNIDWA%2F20210426%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210426T125835Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ff719d20f6ac9aef76dac8a01c039ad2268903b31f6098cb68456f7881cefee3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  3324    0     0  100  3324      0  13907 --:--:-- --:--:-- --:--:-- 13850
    -> Reports have been successfully queued for processing at https://codecov.io/github/UnsignedArduino/TkZero/commit/e6095344cd3b31153c68b59ff0797e2236c82676

Latest commit

Expected Results

I would expect the reports to actually process and give me a 73% coverage report.

Actual Results

I get a 0% coverage report badge and I always get “There was an error processing coverage reports.”

Additional Information

Here is my .github/workflows/build.yml if there is something obvious:

# ...
on:
    push
jobs:
    build:
        runs-on: windows-latest
        strategy:
            matrix:
                python-version: [3.9]

        steps:
            - name: Checkout sources
              uses: actions/checkout@v2

            - name: Check files
              run: |
                  dir

            - name: Set up Python
              uses: actions/setup-python@v2
              with:
                  python-version: 3.9

            - name: Install dependencies
              run: |
                  python -m pip install --upgrade pip
                  python -m pip install black coverage flake8 flit mccabe mypy pylint pytest tox tox-gh-actions pillow

            - name: Run tox
              run: |
                  python -m tox -e py39
                  dir

            - name: Upload raw coverage as artifact
              uses: actions/upload-artifact@v2
              with:
                name: .coverage
                path: .coverage
                retention-days: 5

            - name: Convert coverage files to JSON
              run: |
                  python -m coverage json -i

            - name: Upload JSON coverage as artifact
              uses: actions/upload-artifact@v2
              with:
                name: coverage.json
                path: coverage.json
                retention-days: 5

            - name: Upload coverage to Codecov
              uses: codecov/codecov-action@v1
              with:
                  fail_ci_if_error: true
                  functionalities:
                    coveragepy

@UnsignedArduino try running coverage xml here or remove the coveragepy funcationality.

1 Like