You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PR changelog entries keep merging under the just-released heading, and nothing catches it #1101
What happens: a PR opened before a release adds its entry under ## [Unreleased]. The release PR then inserts ## [X.Y.Z] - date directly beneath [Unreleased]. When the older PR merges, git's 3-way merge places its lines by their surrounding context, which now sits inside the released section. The merge is clean, CI is green, and the curated notes for an already-tagged release silently change.
v0.129.0: the same thing happened, and I restored that section by hand.
Each release since, I've caught it only by diffing by hand.
changelog_test.go checks structure (duplicate groups, unknown groups, compare links), so a moved entry passes.
Proposed gate: for every ## [X.Y.Z] section with a vX.Y.Z tag, the section must equal the same section in git show vX.Y.Z:CHANGELOG.md. Released sections are then immutable unless someone deliberately edits that test's allowlist. The Test job checks out shallow, so it needs tags (fetch-depth: 0, or git fetch --tags --depth=1). Under CI=true, a missing tag must fail, not skip, or the gate can never fire where it matters (CLAUDE.md rule 1). Locally it can skip with a message.
More evidence: #1099 copied the #1090 and #1093 entries into [Unreleased], but on main at 5b6a3ff the copies under [0.132.1] are still there, so each entry appears twice. changelog_test.go passed it, because it checks group structure, not whether a released section matches its tag or whether an entry appears twice. #1103 restores [0.132.1] from the tag. The proposed gate would have failed #1098, #1095 and #1099.
Activity
scttfrdmn commentedon Oct 18, 2026
More evidence: #1099 copied the #1090 and #1093 entries into
[Unreleased], but on main at 5b6a3ff the copies under[0.132.1]are still there, so each entry appears twice.changelog_test.gopassed it, because it checks group structure, not whether a released section matches its tag or whether an entry appears twice. #1103 restores[0.132.1]from the tag. The proposed gate would have failed #1098, #1095 and #1099.scttfrdmn commentedon Oct 18, 2026
Two more, and one of them is mine.
[0.132.2]section. Cause: a clean-up I'd folded into my second commit was replayed during the final rebase, after v0.132.2 had moved those entries under its own heading. I checked the section after resolving the first commit but beforerebase --continuereplayed the second. Restored from tagv0.132.2in the v0.133.0 release PR. That's another case a structural changelog test passes and the proposed tag-equality gate would catch.[0.126.0]has gained a ttl-reaper: cross-account trust names a CFN-generated role ARN suffix — recreating the stack breaks EVERY account at once (#457 trap 1) #476 entry since tagging, and[0.97.0]has lost a### Fixedblock (Pool worker should survive an early spored pool-worker exit (restart-on-exit), not run once at boot #465). Tags v0.42.0 and earlier have noCHANGELOG.md, so the gate must skip them. These two need a decision, restore or accept, before the gate can go green, so it'll want a short, explained allowlist of accepted historic edits.The check, for whoever builds the gate:
ci: gate released CHANGELOG sections against their tags; advisory ste…