-
Notifications
You must be signed in to change notification settings - Fork 24
Code coverage change is not accurate on PRs #703
Comments
Codecov docs mention that this could cause the problem
So I think this happens because we're not running all the tests on PRs (Android and iOS are only run when the label is applied) but we are running all of them on the main branch, hence there is nearly always a mismatch and the coverage is reported to have changed. @jmartinesp @langleyd do you have any background on the current system of adding Android/iOS labels? Did we hit some usage limits in the past? I'm wondering if we could try running all the tests on all PRs. |
I'm not sure, to be honest. It might have been to make Rust/JS only PRs faster to merge, since the Android job takes ~15min per run and for iOS it's something between 20-25min. Maybe we could enable merge queues for this so when merging every job will be run, and thus have proper coverage reports? |
Ooh, I just found out about 'carryforward flags' in Codecov which might do what we need!
If I understood correctly, we could carry forward the base branch's Android and iOS coverage so that PRs do not need to report them. |
Not to say we should not also use merge queues to ensure all the tests run before merging. That could still be nice to have as a safety net. Rust changes, for example, should run all the tests but it's easy to forget to add the labels. |
Codecov shows an improvement in coverage despite no code changes.
Originally noted by @alunturner in #701 (comment)
The text was updated successfully, but these errors were encountered: