mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 12:02:16 +02:00
1107d61e97
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
27 lines
1.0 KiB
YAML
27 lines
1.0 KiB
YAML
# the comments are too noisy to be useful
|
|
comment: false
|
|
|
|
# disable noisy inline-annotations ("Added line [LineNum] was not covered by tests") on PRs (#8296)
|
|
# https://docs.codecov.io/docs/github-checks-beta
|
|
github_checks:
|
|
annotations: false
|
|
|
|
coverage:
|
|
range: "36...100"
|
|
status:
|
|
project:
|
|
default:
|
|
# 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
|
|
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
|