# Codecov becomes flaky

**URL:** <https://community.codecov.com/t/codecov-becomes-flaky/2889>\
**Category:** Support\
**Created:** [May 19, 2021, 5:22am UTC](https://community.codecov.com/t/codecov-becomes-flaky/2889 "2021-05-19T05:22:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edx](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/edx/32/1769_2.png) [@Edx](https://community.codecov.com/u/Edx)\
**Post date:** [May 19, 2021, 5:22am UTC](https://community.codecov.com/t/codecov-becomes-flaky/2889/1 "2021-05-19T05:22:45Z")

</div>

_Please check the [troubleshooting guide](https://docs.codecov.io/docs/troubleshooting-guide) before creating a ticket._  
All fields below are required.

### Description

From earlier today, we are seeing Codecov coverage becomes flaky. We saw two things

1. the coverage rate becomes up and down for exactly the same PR
2. The coverage does not seem to reflect the real coverage

for 2, after re-run sometimes, it becomes back to normal. However it’s extremely frustrating since the coverage rate cannot be used as shipping criteria

Seeing

### Commit SHAs

Please include the commit SHA(s)

> **[Code coverage done right.](https://app.codecov.io/gh/kalacloud-inc/kalacloud-client/commit/b5326c25e9c194e409d1b2846cc6f6d10cbcc048/)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

### Uploader

Please provide which uploader you are using and command used to run it (e.g. Bash, Node, Python, GitHub Actions, etc…). If you are not using the [bash uploader](https://docs.codecov.io/docs/about-the-codecov-bash-uploader), we recommend switching to it before opening an issue here.

Github action (using github app)

### Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

### Expected Results

Please provide what you expect to have happened (e.g. a file that has missing coverage on a particular line).  
the coverage rate should remain 100%

### Actual Results

it becames 99.7% and sometimes even drop to 98% but it came back after re-run

### Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

---

<div class="post-metadata">

**Author:** ![Edx](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/edx/32/1769_2.png) [@Edx](https://community.codecov.com/u/Edx)\
**Post date:** [May 19, 2021, 7:06am UTC](https://community.codecov.com/t/codecov-becomes-flaky/2889/2 "2021-05-19T07:06:56Z")

</div>

BTW: these two SHAs with the same code produced different results:

[https://codecov.io/gh/kalacloud-inc/kalacloud-client/commit/d5d9c839de200f9ebf7c9351e82f8f7dc71c9d19/](https://codecov.io/gh/kalacloud-inc/kalacloud-client/commit/d5d9c839de200f9ebf7c9351e82f8f7dc71c9d19/)

[https://codecov.io/gh/kalacloud-inc/kalacloud-client/commit/996f5e3a3b960c1f0c7b0fa24ca1f9696169f0f8/](https://codecov.io/gh/kalacloud-inc/kalacloud-client/commit/996f5e3a3b960c1f0c7b0fa24ca1f9696169f0f8/)

---

<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:** [May 19, 2021, 4:07pm UTC](https://community.codecov.com/t/codecov-becomes-flaky/2889/3 "2021-05-19T16:07:45Z")

</div>

@Edx, what I notice is that those two commits send a different number of uploads. The [first](https://codecov.io/gh/kalacloud-inc/kalacloud-client/commit/d5d9c839de200f9ebf7c9351e82f8f7dc71c9d19/build) sends 9, while the [second](https://codecov.io/gh/kalacloud-inc/kalacloud-client/commit/996f5e3a3b960c1f0c7b0fa24ca1f9696169f0f8/build) sends 16. This could lead to coverage changes if there is additional coverage information being provided.

---

<div class="post-metadata">

**Author:** ![Edx](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/edx/32/1769_2.png) [@Edx](https://community.codecov.com/u/Edx)\
**Post date:** [May 22, 2021, 3:45am UTC](https://community.codecov.com/t/codecov-becomes-flaky/2889/4 "2021-05-22T03:45:36Z")

</div>

my apologies. Found a bug in the test-splitting code and that’s causing our tests to be randomly run now and then. Thus the different coverage rate. Sorry about that
