# I would like to skip the Codecov when source code when files unrelated to the tests are modified

**URL:** <https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433>\
**Category:** Support\
**Tags:** github\
**Created:** [July 22, 2023, 8:59am UTC](https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433 "2023-07-22T08:59:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yokei-dev](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/yokei-dev/32/2731_2.png) [@yokei-dev](https://community.codecov.com/u/yokei-dev)\
**Post date:** [July 22, 2023, 8:59am UTC](https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433/1 "2023-07-22T08:59:42Z")

</div>

## Before submitting a topic, please confirm the following

[✅] I have searched for similar issues before creating this topic.  
[✅] I have verified that my repository is using the [Codecov GitHub app](https://github.com/apps/codecov), if using GitHub  
[✅] I have [validated](https://docs.codecov.com/docs/codecov-yaml#validate-your-repository-yaml) my `codecov.yaml` configuration file.  
[✅] I have filled out the below sections to the best of my ability.  
[✅] I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.

### Description

Condition:  
We are using codebuild to send coverage files to codecov.  
We are using codecov for rspec.  
On github, we have made the success of codecov’s patch status a mandatory condition for merging.

Question:  
If there are no changes related to rspec, for example, if there are only changes to the frontend code, we do not want to run rspec. As a result, there will be no coverage file. In that state, we want to make the codecov’s status successful.

We have the codecov.yml setting as follows.

```auto
coverage:
  status:
    project: off
    patch:
      default:
        if_no_uploads: success
        if_not_found: success

```

### CI/CD URL

private repository

```auto
     _____ _
    / ____ | | |
   | | _____ | | ______  _______
   | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |__/ (_| (_) \ V /
    \ _____\___ / \ __,_|\___ |\ ___\___ / \_/

  Codecov report uploader 0.6.1
[2023-07-22T07:42:43.258Z] ['info'] => Project root located at: /var/www/hogehoge
[2023-07-22T07:42:43.260Z] ['info'] -> Token found by arguments
[2023-07-22T07:42:43.273Z] ['info'] Searching for coverage files...
[2023-07-22T07:42:43.499Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-07-22T07:42:43.499Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2023-07-22T07:42:43.499Z] ['error'] There was an error running the uploader: No coverage files located, please try use `-f`, or change the project root with `-R`

```

### Codecov Output

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

### Expected Results

Codecov status is passed

### Actual Results

Codecov status is as follows  
「Expected — Waiting for status to be reported」

### Additional Information

To begin with, I’m not sure if there’s a need to send a report to Codecov when the `if_no_uploads` setting is in place. This is because there’s no report that needs to be sent in the first place.

---

<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:** [July 23, 2023, 11:13pm UTC](https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433/2 "2023-07-23T23:13:49Z")

</div>

@yokei-dev let me get back to you tomorrow, I know our product team is working on something like this

---

<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:** [July 24, 2023, 11:40pm UTC](https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433/3 "2023-07-24T23:40:09Z")

</div>

@yokei-dev ok, so what I know so far is that this being worked on via the [Codecov CLI](https://docs.codecov.com/docs/the-codecov-cli). I don’t have word yet as to the functionality of it, but I’ll let you know when I do. I would suggest trying out the CLI to make sure that it’s working properly for you, so when the feature comes out (I would guess in a month or less), the transfer over is smooth.

---

<div class="post-metadata">

**Author:** ![yokei-dev](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/yokei-dev/32/2731_2.png) [@yokei-dev](https://community.codecov.com/u/yokei-dev)\
**Post date:** [July 26, 2023, 10:22am UTC](https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433/4 "2023-07-26T10:22:48Z")

</div>

Thanks!  
Does that mean its functionality is currently under development?

---

<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:** [July 26, 2023, 2:41pm UTC](https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433/5 "2023-07-26T14:41:52Z")

</div>

@yokei-dev as far as I know, yes!

---

<div class="post-metadata">

**Author:** ![yokei-dev](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/yokei-dev/32/2731_2.png) [@yokei-dev](https://community.codecov.com/u/yokei-dev)\
**Post date:** [September 28, 2023, 6:43am UTC](https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433/6 "2023-09-28T06:43:22Z")

</div>

Has this function already released?

---

<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:** [September 28, 2023, 8:34pm UTC](https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433/7 "2023-09-28T20:34:36Z")

</div>

@yokei-dev let me get back to you. I know that some development has been done for it, but I’m not sure about the current state.

---

<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 19, 2023, 9:09pm UTC](https://community.codecov.com/t/i-would-like-to-skip-the-codecov-when-source-code-when-files-unrelated-to-the-tests-are-modified/4433/8 "2023-10-19T21:09:50Z")

</div>

@yokei-dev I believe this is in some working state, but we don’t have any docs to share. I made a post in our [feedback repo](https://github.com/codecov/feedback/issues/108) to track since our community boards will soon be in a read-only mode.
