Skip to content

Lower the patch-coverage gate from 80% to 75% - #154

Merged
trick77 merged 1 commit into
masterfrom
chore/patch-coverage-75
Jul 26, 2026
Merged

Lower the patch-coverage gate from 80% to 75%#154
trick77 merged 1 commit into
masterfrom
chore/patch-coverage-75

Conversation

@trick77

@trick77 trick77 commented Jul 26, 2026

Copy link
Copy Markdown
Owner

hack/patch-coverage.sh's PATCH_MIN goes 80 → 75, matching the absolute project floor hack/coverage-gate.sh already enforces. Applied across every repo running this mechanism, so the gate means the same thing everywhere.

What this gives up, stated plainly: the two numbers were different on purpose — new code held to a higher bar (80) than inherited debt (75). They're now the same, so that distinction is gone. The header comment has been rewritten to say so rather than leaving the old rationale describing a split that no longer exists.

Why running both scripts still earns its keep: the questions differ even when the numbers don't. A branch can sit comfortably above the project floor while the handful of lines it actually changed go untested — the floor can't see that, the patch gate can.

Both the --fail-under and the printed == ... patch coverage (>= N%) == header read PATCH_MIN, so the log follows automatically. No CI workflow change needed.

Matches the absolute project floor coverage-gate.sh already enforces, so
a branch that clears the codebase-wide bar is no longer failed for
clearing it by less than the patch gate wanted. Applied across every repo
running this mechanism so the gate means the same thing everywhere.

The two numbers were deliberately different — new code held higher than
inherited debt — so this does give that up, and the header now says so
rather than leaving the old rationale describing a split that no longer
exists. Running both scripts still earns its keep on the QUESTION each
asks: a branch can sit comfortably above the project floor while the
handful of lines it actually changed go untested, and only the patch gate
sees that.

Both the gate and the log line read PATCH_MIN, so the printed threshold
follows automatically.
@trick77
trick77 enabled auto-merge (squash) July 26, 2026 17:00
@trick77
trick77 merged commit c8a9191 into master Jul 26, 2026
1 check passed
@trick77
trick77 deleted the chore/patch-coverage-75 branch July 26, 2026 17:01
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