bug(fragment-check): a PR that DELETES a fragment and adds none is classified fragment-present #1033
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit#1033
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
changedFragmentPathsmatches on name with no existence check, so a PR that DELETES a fragment and adds none is classified fragment-present.Split from
rt#1028's AC2, which the three-dot fix narrowed but did not close.Measured on the fixed workflow
Three-dot reports what the branch changed relative to the merge-base — and that includes the branch's own DELETIONS.
changedFragmentPaths(internal/gates/fragment_coverage.go) then matches the deleted path on name, with noos.Statand no read.🔑
rt#1028shrank the population from "any PR open across a cut" — common — to "a PR that deletes a fragment" — rare. This tracker owns what is left.Two candidate fixes, and they should be costed against each other
The flag is smaller; the check is more legible. Neither is obviously right and the tracker should not pre-decide it.
Acceptance criteria
--diff-filter=dexcludes D-status entries. Reproduced independently: bare[changelog.d/one.md], filtered[]. PR#1045, merged90f30ba4.[changelog.d/renamed.md].--diff-filterfix can break silently — DONE: two arms intests/workflows.bats, both extracting the shipped line via the #1028 helper so a retyped copy cannot drift; mutation-verified by stripping the flag and confirming both redden.📌 Split by @bosun from
rt#1028's AC2, after measuring that the three-dot fix leaves deletions in the set. Not urgent: the remaining population is a PR that removes a changelog fragment without adding one, which is rare and usually deliberate.