# Thresholds not working

**URL:** <https://community.codecov.com/t/thresholds-not-working/2134>\
**Category:** Support\
**Created:** [October 8, 2020, 7:38am UTC](https://community.codecov.com/t/thresholds-not-working/2134 "2020-10-08T07:38:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jahan01](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jahan01](https://community.codecov.com/u/jahan01)\
**Post date:** [October 8, 2020, 7:38am UTC](https://community.codecov.com/t/thresholds-not-working/2134/1 "2020-10-08T07:38:22Z")

</div>

_Please check the [troubleshooting guide](https://docs.codecov.io/docs/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

```auto
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

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/e/e491e1fd5666018a76ff47ff2309eac2a4bcd8d0.jpeg)

---

<div class="post-metadata">

**Author:** ![jahan01](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jahan01](https://community.codecov.com/u/jahan01)\
**Post date:** [October 8, 2020, 7:40am UTC](https://community.codecov.com/t/thresholds-not-working/2134/2 "2020-10-08T07:40:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jahan01](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jahan01](https://community.codecov.com/u/jahan01)\
**Post date:** [October 8, 2020, 8:35am UTC](https://community.codecov.com/t/thresholds-not-working/2134/3 "2020-10-08T08:35:46Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [October 8, 2020, 1:51pm UTC](https://community.codecov.com/t/thresholds-not-working/2134/4 "2020-10-08T13:51:22Z")

</div>

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.
