Skip to content

Harden config test fixtures against the *.test gitignore rule#20

Merged
jonbaldie merged 1 commit into
masterfrom
fix/config-fixtures-gitignore-and-docs
May 29, 2026
Merged

Harden config test fixtures against the *.test gitignore rule#20
jonbaldie merged 1 commit into
masterfrom
fix/config-fixtures-gitignore-and-docs

Conversation

@jonbaldie
Copy link
Copy Markdown
Owner

Mirrors the v2.6.16 fix already shipped in quality-gates/mutago.

What

  • .gitignore — add !testdata/configs/*.yml.test negation. The five config-test fixtures are already tracked, but their .yml.test suffix matches the *.test rule (intended for compiled Go test binaries). Without the negation, any future git rm + re-add silently drops them and leaves a fresh clone with a red test suite. (This is exactly what happened in the downstream mutago repo's initial commit.)
  • CLAUDE.md — correct the key-packages table: the mutator/ row now lists all nine categories (was missing concurrency, conditional, select), and rows are added for internal/parser, internal/annotation, and internal/reportmaker.
  • CHANGELOG.md[v2.6.16] entry + comparison link.

Why preventive (not a visible bug)

Unlike mutago, upstream's fixtures are currently committed, so go test ./... is green on a fresh checkout today. This PR removes the latent trap so it stays that way.

Verification

  • go build ./... — clean
  • go test ./... — all packages pass (including the cmd/go-mutesting config tests)
  • No .go source touched, so the mutation quality gate has nothing new to evaluate; CI runs it regardless.

🤖 Generated with Claude Code

The cmd/go-mutesting config tests read fixtures named
testdata/configs/*.yml.test. Those files are currently tracked, but
their .yml.test suffix matches the *.test rule (meant for compiled Go
test binaries) in .gitignore, so any future `git rm` + re-add would
silently drop them and leave a fresh clone with a red test suite. Add a
.gitignore negation so they stay tracked.

Also correct the CLAUDE.md key-packages table: list the full set of
mutator categories and add the parser, annotation, and reportmaker
internal-package rows.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jonbaldie jonbaldie merged commit 7b2f5ef into master May 29, 2026
3 checks passed
@jonbaldie jonbaldie deleted the fix/config-fixtures-gitignore-and-docs branch May 29, 2026 21:16
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