Skip to content

build: fail the gate when a package's coverage drops - #14

Merged
llbbl merged 1 commit into
mainfrom
build/coverage-floors
Oct 17, 2026
Merged

llbbl merged 1 commit into
mainfrom
build/coverage-floors

Conversation

@llbbl

@llbbl llbbl commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • just check now enforces a per-package coverage floor read from coverage-floors.txt, via scripts/coverage-floor.sh.
  • Fails on a coverage drop, a package with no floor, a stale floor, a test failure, or unparseable output.
  • go list ./... is the authoritative package set.

Verification

just check passes; below-floor, missing-floor, stale-floor, malformed-line and failing-test cases each exit 1.

Closes #10

`just check` now enforces a per-package coverage floor from coverage-floors.txt via scripts/coverage-floor.sh. It fails on a drop, a package with no floor, a stale floor, a test failure, or unparseable output; `go list ./...` is the authoritative package set.
@llbbl
llbbl merged commit 2a52733 into main Oct 17, 2026
2 checks passed
@llbbl
llbbl deleted the build/coverage-floors branch October 17, 2026 23:50
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.

build: fail the gate when a package's coverage drops

1 participant