Skip to content

Raise the coverage floors to what the suite now earns - #18

Merged
mmlado merged 1 commit into
mainfrom
ci/raise-coverage-floors
Sep 29, 2026
Merged

mmlado merged 1 commit into
mainfrom
ci/raise-coverage-floors

Conversation

@mmlado

@mmlado mmlado commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Raise the coverage floors to what the suite now earns

The project floor goes 60 to 61 and the command-module floor goes 36 to 38.

Changes

  • fail_under = 61 in pyproject.toml.
  • --fail-under=38 on the command-module report in ci.yml.
  • The comment above fail_under now carries current numbers instead of the ones from when
    the gate was introduced, and says not to lower the floor to make a change pass.

Constraints

These are the combined metric, not line coverage. With branch = true, fail_under
compares the combined statement-and-branch percentage. On this commit that is 61.09% against
64.86% line and 44.91% branch, so both floor numbers read about four points below what a
line-coverage floor of the same name would mean.

The margin is deliberately thin. CI reports 61.09% and a local run reports 61.10%, so the
floor sits about 0.09 under with a 0.01 environment delta between the two. That is enough to
absorb the delta and not much else, which is the point of a ratchet: a change that adds a
meaningful amount of uncovered code should fail. Raise the floor in the same change as the
tests that earn it.

Both floors were checked to still fail. --fail-under=62 and --fail-under=39 each exit
2 against this data, so neither gate has gone slack.

Note

The 3.10 and 3.14 matrix entries now report the same number. They previously split 60.24 and
60.25; removing list_reader_names is the only change that could account for it.

Verification

ruff check, ruff format --check, mypy, 350 tests, and both floors pass.

🤖 Generated with Claude Code

Removing dead code and covering doctor took the project from 60.25% to
61.10% combined and the command modules from 36.83% to 38.44%, so the two
floors move to 61 and 38. Both were checked to still fail one point higher.

The comment carried the numbers from when the gate was introduced; it now
carries the current ones, and says not to lower the floor to make a change
pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mmlado
mmlado merged commit b716709 into main Sep 29, 2026
12 checks passed
@mmlado
mmlado deleted the ci/raise-coverage-floors branch September 29, 2026 13:24
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