From f1c91d754dc3658c8a35622951451ce5118b43cf Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Wed, 6 May 2026 16:41:50 -0700 Subject: [PATCH] [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. --- codecov.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/codecov.yaml b/codecov.yaml index 09fccc6b995..8609d3143d6 100644 --- a/codecov.yaml +++ b/codecov.yaml @@ -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