Help with path fixing and "There was an error processing coverage reports"

Description

Pytest-cov coverage report is uploaded successfully, but the message “There was an error processing coverage reports” is displayed in the UI. When dumping report to stdout instead of uploading, it looks like path fixing has not been applied. Manual path fixes have been added to codecov.yml.

Repository

CI/CD

Uploader

Bash uploader

Commit SHAs

171b72c62de5f6dd21c1277f1783ac6c316206af

Codecov YAML

codecov:
    require_ci_to_pass: yes

coverage:
    precision: 2
    round: down
    range: "70...100"

parsers:
    gcov:
        branch_detection:
            conditional: yes
            loop: yes
            method: no
            macro: no

comment:
    layout: "reach,diff,flags,files,footer"
    behavior: default
    require_changes: no

fixes:
    - "/Users/danhje/Library/Mobile Documents/com~apple~CloudDocs/Code/pymesis/::"
    - "/home/runner/work/pymesis/::"

Codecov Output

[109]

[110]==> GitHub Actions detected.

[111] project root: .

[112] Yaml found at: codecov.yml

[113]==> Running gcov in . (disable via -X gcov)

[114]==> Searching for coverage reports in:

[115] + .

[116] -> Found 1 reports

[117]==> Detecting git/mercurial file structure

[118]==> Reading reports

[119] + ./coverage.xml bytes=3289

[120]==> Appending adjustments

[121] https://docs.codecov.io/docs/fixing-reports

[122] -> No adjustments found

[123]==> Gzipping contents

[124]==> Uploading reports

[125] url: https://codecov.io

[126] query: branch=coverage-reporting&commit=ab04c7170865cca5019469be9e637dc7d5b9e7e7&build=352231656&build_url=http%3A%2F%2Fgithub.com%2Fdanhje%2Fpymesis%2Factions%2Fruns%2F352231656&name=&tag=&slug=danhje%2Fpymesis&service=github-actions&flags=&pr=&job=&cmd_args=

[127]-> Pinging Codecov

[128]https://codecov.io/upload/v4?package=bash-20201106-81372f2&token=secret&branch=coverage-reporting&commit=ab04c7170865cca5019469be9e637dc7d5b9e7e7&build=352231656&build_url=http%3A%2F%2Fgithub.com%2Fdanhje%2Fpymesis%2Factions%2Fruns%2F352231656&name=&tag=&slug=danhje%2Fpymesis&service=github-actions&flags=&pr=&job=&cmd_args=

[129]-> Uploading to

[130]https://storage.googleapis.com/codecov/v4/raw/2020-11-08/180E3C962466790183CE0B3736542765/ab04c7170865cca5019469be9e637dc7d5b9e7e7/2c41114d-ee5a-4022-b562-b6cf0410730a.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20201108%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20201108T113203Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=e7f648c50d0ffa8c9a77cbd92117d10f8b0e9323133a0893e7c38ee2f4dfff9c

[131] % Total % Received % Xferd Average Speed Time Time Time Current

[132] Dload Upload Total Spent Left Speed

[133]

[134] 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0

[135] 100 732 0 0 100 732 0 3641 --:–:-- --:–:-- --:–:-- 3641

[136] -> View reports at https://codecov.io/github/danhje/pymesis/commit/ab04c7170865cca5019469be9e637dc7d5b9e7e7

@danhje, this looks like a timing issue. Can you add

codecov:
  max_report_age: off

to your codecov.yml?

1 Like

That did the trick. Thanks!

1 Like