mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
[Chore] CI: Block PRs that drop overall code coverage (#27340)
* [Chore] CI: Block PRs that drop overall code coverage Tighten Codecov project status threshold from 1% to 0% so any drop in overall project coverage relative to the base commit fails the codecov/project check. target: auto keeps the bar floating with the codebase, no manual maintenance needed as coverage moves up over time. * [Chore] CI: Always post Codecov status regardless of CI outcome Set codecov.require_ci_to_pass: false and codecov.notify.wait_for_ci: false so Codecov posts the codecov/project and codecov/patch checks as soon as the expected uploads arrive, instead of withholding them when unrelated CI jobs fail. The coverage-regression check is independent of test pass/fail, and CI failures are already enforced by their own required-status checks.
This commit is contained in:
parent
a3a42c6c47
commit
f1c91d754d
1 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
codecov:
|
||||
require_ci_to_pass: false # post coverage status even if CI has unrelated failures
|
||||
notify:
|
||||
wait_for_ci: false # post as soon as expected uploads arrive, don't wait on CI
|
||||
|
||||
component_management:
|
||||
individual_components:
|
||||
- component_id: "Router"
|
||||
|
|
@ -28,7 +33,7 @@ coverage:
|
|||
project:
|
||||
default:
|
||||
target: auto
|
||||
threshold: 1% # at maximum allow project coverage to drop by 1%
|
||||
threshold: 0% # do not allow project coverage to drop
|
||||
patch:
|
||||
default:
|
||||
target: auto
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue