You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@texera.apache.org by gi...@apache.org on 2026/06/29 06:30:35 UTC
(texera) branch main updated: ci: require 60% patch coverage in Codecov (#6022)
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new 613b76e467 ci: require 60% patch coverage in Codecov (#6022)
613b76e467 is described below
commit 613b76e467713efffdeef353b4c831e0f7adba29
Author: Yicong Huang <17...@users.noreply.github.com>
AuthorDate: Sun Jun 28 23:18:20 2026 -0700
ci: require 60% patch coverage in Codecov (#6022)
### What changes were proposed in this PR?
The Codecov patch status was `informational: true`, so it never gated
PRs. This makes it a real requirement:
- set `target: 60%` on `coverage.status.patch.default`;
- add `threshold: 10%` so the patch passes when coverage is at least
`target - threshold` = 50%, softening the quantization on tiny diffs
(e.g. a 2-coverable-line change passes at 1 line / 50%);
- drop the `informational` flag so the patch check can fail.
PRs must now cover at least 50% of the lines they change (60% target,
10% slack). Project status (auto target, 1% threshold), flag
carryforward, and ignore rules are unchanged. The explanatory comment in
`codecov.yml` is updated to match.
### Any related issues, documentation, discussions?
Closes #6021
### How was this PR tested?
Config-only change; `codecov.yml` validated as well-formed YAML. Codecov
applies the new policy on the next PR upload.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.8)
---
codecov.yml | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/codecov.yml b/codecov.yml
index 9053861361..09bb75b5d7 100644
--- a/codecov.yml
+++ b/codecov.yml
@@ -25,7 +25,7 @@
# 3. Default status checks fail on any project drop and require 100%
# patch coverage, so non-test refactors get a red Codecov check
# even when behavior is preserved. Allow 1% slack on project and
-# keep patch coverage informational.
+# require 60% patch coverage.
flag_management:
default_rules:
@@ -68,10 +68,14 @@ coverage:
threshold: 1%
patch:
default:
- # Surface patch coverage in the Codecov report but don't gate
- # PRs on it: a 100%-patch policy blocks plenty of legitimate
- # refactors / config-only changes that have no tests to add.
- informational: true
+ # Require new/changed lines in a PR to be at least 60% covered.
+ # Lower than a 100%-patch policy so legitimate refactors and
+ # config-only changes aren't blocked, but high enough that net-new
+ # code ships with tests. The 10% threshold softens the quantization
+ # on tiny diffs (e.g. a 2-coverable-line change passes at 1 line /
+ # 50%) — patch passes when coverage is >= target - threshold = 50%.
+ target: 60%
+ threshold: 10%
comment:
# `flag_management.default_rules.carryforward: true` above already