codecov / codecov/codecov-action

[BUG] "All flags" shows 100% coverage, but all flags combined do not have 100% coverage

Open
#1,961 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
1.7k
Forks
260
Avg merge
1d 7h
Merged PRs (30d)
1

Description

Describe the bug
On propcache, we see coverage under the default "All flags" which does not exist even when every single flag is selected manually. I don't understand how that can be possible.

Additionally, in this example, if I just select a single flag like OS-Linux, then it shows that the only missing coverage is a partial. But, it says that both the return inside that condition and the code after that condition both have coverage, which again shouldn't be possible.

To Reproduce
https://app.codecov.io/gh/aio-libs/propcache/pull/251/blob/tests/conftest.py?dropdown=coverage

Select every flag and the coverage drops from 100%.

Expected behavior
"All flags" and selecting every flag to produce the same output.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Codecov report for propcache and inspect tests/conftest.py, comparing the default “All flags” view with manually selecting every flag and with OS-Linux alone. Done means both views produce the same coverage and partial coverage is reported consistently for the conditional return and following code.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, python
Domain
ci-cd, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.