0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00

ci: stop codecov from failing CI

Our code coverage fluctuates, meaning that CI is often shown as failed
even on no-op operations

This is bad for our developer experience: we can't trust CI status to
be reporting correctly, and this slows fixing actual issues

So, we mark codecov as 'informational' so only 'real' CI failures are
shown to users

> If `true` is specified the resulting status will pass no matter what
> the coverage is or what other settings are specified. Informational
> mode is great to use if you want to expose codecov information to
> other developers in your pull request without necessarily gating PRs
> on that information.

https://docs.codecov.com/docs/commit-status#informational

Related issue: 12227 - fixing the flakiness in other ways
This commit is contained in:
David Allison 2022-08-29 12:30:03 +01:00 committed by Mike Hardy
parent a716c15fa1
commit 1107d61e97
2 changed files with 11 additions and 0 deletions

View File

@ -14,3 +14,13 @@ coverage:
# dropping slightly is ok - this stops the check failing on test timing variability # dropping slightly is ok - this stops the check failing on test timing variability
# .12 was observed as the largest variability owing to timing forcing different test branch choice # .12 was observed as the largest variability owing to timing forcing different test branch choice
threshold: 0.15 threshold: 0.15
# BUG: our coverage fluctuates, so codecov marks this as a build failure (#12227)
# stop codecov from failing CI until this is fixed
# https://docs.codecov.com/docs/commit-status#informational
informational: true
patch:
default:
# BUG: our coverage fluctuates, so codecov marks this as a build failure (#12227)
# stop codecov from failing CI until this is fixed
# https://docs.codecov.com/docs/commit-status#informational
informational: true

View File

@ -14,6 +14,7 @@
<w>backreference</w> <w>backreference</w>
<w>bmgr</w> <w>bmgr</w>
<w>cheets</w> <w>cheets</w>
<w>codecov</w>
<w>constraintlayout</w> <w>constraintlayout</w>
<w>contentvalue</w> <w>contentvalue</w>
<w>contextmenu</w> <w>contextmenu</w>