Skip to content

test(coverage): restore per-package coverage floors on main - #1022

Merged
acamarata merged 1 commit into
mainfrom
dw10-cli-cov
Oct 29, 2026
Merged

acamarata merged 1 commit into
mainfrom
dw10-cli-cov

Conversation

@acamarata

Copy link
Copy Markdown
Collaborator

Coverage on main fails the per-package floor step: internal/nginxtopo measured 93.5% against a floor of 98% (runs 40746704367, 40856341289). It was the only package below its floor.

The uncovered statements were the three error returns in nginxtopo.Contained: unresolvable project root, a path below a regular file (ENOTDIR), and a self-referencing symlink. TestContained_UnresolvablePaths asserts each one is refused with the expected message, and that the root-missing cause stays in the error chain.

Verification, using the commands from coverage.yml:

  • go test -mod=vendor -coverprofile=coverage.out -covermode=atomic ./... passes. Total is 71.3%.
  • go run -mod=vendor ./tools/covfloor -profile coverage.out -floors .github/coverage-floors.txt -strict reports 172 packages, 0 below floor, with nginxtopo at 100.0%.
  • go build -mod=vendor ./..., go vet on the package and go test ./internal/repoqa pass.

No floor changed and no code excluded.

@acamarata
acamarata merged commit 6a1c1aa into main Oct 29, 2026
28 of 34 checks passed
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