Skip to content

chore(ci): relax codecov patch check to 85% floor + informational#634

Merged
JasonXuDeveloper merged 1 commit intomasterfrom
chore/relax-codecov-patch
Apr 23, 2026
Merged

chore(ci): relax codecov patch check to 85% floor + informational#634
JasonXuDeveloper merged 1 commit intomasterfrom
chore/relax-codecov-patch

Conversation

@JasonXuDeveloper
Copy link
Copy Markdown
Owner

Summary

The previous codecov config used `target: auto` with a 1% threshold on both `project` and `patch`. That ratchets the bar tighter each time new easily-tested code lands, and penalises PRs that touch editor-window callbacks or polling loops which are not cleanly unit-testable (e.g. `Panel.OnFocus`, `schedule.Execute` polling).

Discovered on #633 — 95.81% patch coverage was flagged as ❌ because it was below the ~95% base.

Changes

  • Project check: `target: 85%`, `threshold: 2%` — fixed floor instead of ratcheting off base.
  • Patch check: `target: 85%`, `threshold: 2%`, `informational: true` — the comment still surfaces uncovered lines (useful for review) but never blocks merge. The project check still guards against real regressions.

Test plan

  • Open any PR; confirm codecov comment appears and patch status no longer blocks merge.
  • Confirm project status still fires if total coverage drops below 83% (85 − 2).

Codecov was set to target: auto with a 1% threshold on both project
and patch, so every PR had to stay within 1% of the current ~95%
project coverage. That ratchets tighter each time new easily-tested
code is added, and penalises PRs that touch editor-window callbacks
or polling loops which are not cleanly unit-testable.

Switch to a fixed 85% floor with 2% threshold on both checks, and
mark the patch check informational so the Codecov comment still
surfaces dropped lines (useful for review) but does not block merge.
The project check still guards against real regressions.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
@JasonXuDeveloper JasonXuDeveloper merged commit ea90126 into master Apr 23, 2026
15 checks passed
@JasonXuDeveloper JasonXuDeveloper deleted the chore/relax-codecov-patch branch April 23, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant