Codecov failures on untracked code / non-deterministic tests #7083
oliverbarnes
started this conversation in
General
Replies: 2 comments 6 replies
-
What we found a while ago is that the coverage upload fails for some reason even though the job is marked as green. |
Beta Was this translation helpful? Give feedback.
4 replies
-
@mrcasals this indeed doesn't sound like an immediately solvable issue, and not super high priority for investing more time into it :) would it make sense to increase the change threshold a little bit, so these inconsistencies don't break the CI? So far I've been seeing changes of 0.05%, 0.07% triggering the failure. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Several PRs have CIs failing on Codecov coverage, even though the files changed aren't even tracked and all the other tests pass. Coverage changes seem to be reported on files completely unrelated to the PR.
Here's an example of a PR changing
docker-compose.yml
, which shouldn't affect any testing at all as far as I know, and the Codecov report on their site showing coverage changed on files within three different modules:https://github.com/decidim/decidim/pull/7082/files
https://github.com/decidim/decidim/pull/7082/checks?check_run_id=1652992360
https://codecov.io/gh/decidim/decidim/pull/7082/changes
Googling I found thread on codecov.io's forum about non-deterministic tests throwing it off:
https://community.codecov.io/t/reported-change-in-coverage-when-no-code-changes-made/1346/7
I don't see a simple fix, and this seems to ask for a bigger discussion on testing practices, hence my posting this here rather than an issue.
I've also found a related issue (#3060) and PR (#3095) moving test coverage tracking to Code Climate:
But it seems like we went back to Codecov. I haven't dug enough to figure out what happened since then, and I was hoping maybe @mrcasals or @oriolgual could give some context about it?
Update
#7088 increases the coverage change threshold for failure to 0.1%, to bypass inconsistencies while a proper fix isn't available.
Beta Was this translation helpful? Give feedback.
All reactions