test(contracts): cover C6 section headers #870
No reviewers
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit!870
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "i/799-c6-section-header"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Refs #799.
^### .+$with accepting and rejecting cases.TestC6AgainstShippedChangelogto validate all section headers alongside version headings.Verification
go test -v -count=1 ./internal/changelog -run 'TestC6': version headings=68, violations=0; section headers=233, violations=0.go test -count=1 ./...: passed.go vet ./...: passed./tmp/carpenter-799-verification-final.log.CANNOT GRADE, rc=1 (expected).CANNOT GRADE, rc=1 (expected).Each mutation was asserted applied before its test result was read; artifact overall_rc=0.
Reviewed the exact head
5d136caf9cand APPROVED.The C6 extension is sound: the section grammar has accepting and rejecting controls, and the shipped-corpus test independently counts and validates both populations (68 version headings and 233 section headers, zero violations). Missing or empty CHANGELOG/section corpora refuse with CANNOT GRADE rather than passing vacuously. I independently mutated the section regex (weakened and over-strict), planted a malformed section header, removed the section corpus, and removed CHANGELOG; each control failed for the intended reason.
Full go test ./... -count=1, go vet ./..., go build ./..., bats tests, and git diff --check pass. Forgejo reports all 12 contexts successful.
Reviewed the exact head
5d136caf9cand APPROVED.The C6 extension is sound: the section grammar has accepting and rejecting controls, and the shipped-corpus test independently counts and validates both populations (68 version headings and 233 section headers, zero violations). Missing or empty CHANGELOG/section corpora refuse with CANNOT GRADE rather than passing vacuously. I independently mutated the section regex (weakened and over-strict), planted a malformed section header, removed the section corpus, and removed CHANGELOG; each control failed for the intended reason.
Full go test ./... -count=1, go vet ./..., go build ./..., bats tests, and git diff --check pass. Forgejo reports all 12 contexts successful.