Thresholds not working

Please check the troubleshooting guide before creating a ticket.

Description

CI status is set failed even if coverage difference is within the threshold

Repository

CI/CD

Github

Uploader

Github actions

Commit SHAs

0a4975593bc4585b0c39eeecba8df533bfb2f827

Codecov YAML

coverage:
  round: up
  range: "50...80"
  status:
    project:
      default:
        threshold: 5%
      framework:
        paths:
          - src/main/*/com/framework
      money:
        paths:
          - src/main/*/com/money
    patch:
      default:
        threshold: 5%

Codecov Output

Please provide the full output of running the uploader on your CI/CD

Additional Information

As you project default threshold is 5% yet project/framework is failing
Also patch threshold is set to 5% and actual diff is 0%, yet still CI status is set failed

ok, I see that we have set threshold for each project. Ideally would have been nice and intuitive if default settings are cascaded to projects unless overridden by project.

I still dont understand purpose of threshold for patch. How threshold is used for patch ? For oneline addition to source code without tests it says 0% coverage. How do I get rid off patch check if number of lines changed is too small ?

Hi @jahan01, yes we currently do not cascade default settings, but I’ll forward your feedback to the product team.

As for threshold for patch, it isn’t as useful a configuration for your use case. Unfortunately, there is no way to configure Codecov with a base number of lines changed.