feedback
feedback copied to clipboard
Coverage of main branch sometimes includes commits from unrelated branches
Describe the bug I noticed that the coverage reported for the main branch in my repo (https://github.com/NDF-Poli-USP/spyro) sometimes picks up commits from other, unrelated branches. For example, today the coverage on main dropped from 84% to 66%. However, this drop was caused by a commit that actually belongs to another branch.
On the Codecov UI, the commit is shown as if it were in main (https://app.codecov.io/gh/NDF-Poli-USP/spyro/commit/49813b6b34b920834b7b796176e672550a69b872). But when I click the commit link, it correctly shows that the commit belongs to a different branch (https://github.com/NDF-Poli-USP/spyro/commit/49813b6b34b920834b7b796176e672550a69b872).
Environment (please complete the following information):
- Codecov GitHub integration
To Reproduce Steps to reproduce the behavior:
- Push commits to a feature branch.
- Observe that sometimes Codecov attributes coverage changes from this commit to main.
- Coverage percentage of main drops even though no new commits were merged into main.
Expected behavior Coverage for main should only reflect commits that were actually merged into main.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context The incorrect attribution caused a false coverage drop in main (from 84% to 66%).