codecov / codecov/codecov-action
[BUG] "All flags" shows 100% coverage, but all flags combined do not have 100% coverage
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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