Skip to content

testquality: the allowlist key is the package's, and held by a test - #15

Merged
aledbf merged 1 commit into
mainfrom
testquality/findings
Sep 29, 2026
Merged

aledbf merged 1 commit into
mainfrom
testquality/findings

Conversation

@aledbf

@aledbf aledbf commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

The allowlist key - the package without go/packages' [p.test] and _test, plus the test's name - is the line spin's hack/testquality-allow.txt (and spin-pr-gotools') is written in. It lived in cmd/testquality/main.go, which has no tests. It is internal/testquality.Findings and Finding.Key now, held by a module under testdata: a test in the package, beside it (pkg_test), and behind integration and e2e.

Output and exit codes unchanged: old and new binaries compared byte for byte on the fixture module (with and without an allowlist holding a stale entry) and on spin with its allowlist.

  • task test, task lint: green
  • task mutate: 5 refused, 0 survived

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

What a finding's key is - the package without go/packages' " [p.test]" and
"_test", and the test's name - is the line every repository's allowlist is
written in, and it lived in main, which has no tests: a change to either
strip would have made every entry of spin's list unexplained and stale at
once with nothing here failing. Findings is the package's now, and a module
under testdata holds the key for a test in the package, beside it, and
behind each of the two build tags.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@aledbf
aledbf merged commit d256b87 into main Sep 29, 2026
2 checks passed
@aledbf
aledbf deleted the testquality/findings branch September 29, 2026 12: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.

1 participant