Take changelog notes as fragments in .changelog/, on changelog v2 #83
No reviewers
Labels
No labels
No milestone
No project
No assignees
3 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/rexcity!83
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/rexcity-sffhf"
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?
Pull requests now note their change as a fragment in
.changelog/and no longer editCHANGELOG.md, so parallel pull requests stop colliding on the same lines.What changed
test,releaseandrenovateworkflows usehttps://sarak.sh/mikluko/changelog/actions/validate@v2; renovate's pinned tool moves fromv1.6.0tov2/cmd/changelog@v2.0.1(the release carrying the linked-worktree fix). Job names are unchanged, so main's protection still matches.missing-fragmentis a warning in thechangelogjob: REVIEW.md says CI/test/docs-only changes carry no note, and v2 would otherwise fail them.fragment-form,fragments-release,missing-fragment), the fragment shape, and how a version is cut: on a branch offmain,go run sarak.sh/mikluko/changelog/v2/cmd/changelog@v2 releasefolds the fragments intoCHANGELOG.md, deletes them, and dates the entry today (UTC); the release pull request holds only that edit; merging it triggersrelease.yaml, which reads the newest entry as before.[Unreleased].CHANGELOG.mdis already valid under v2; no edit needed.Behaviour to know
maininto the release it cuts (as it did with[Unreleased]notes before); its version is still computed from the kuberex bump alone.date-mismatchfails once the tag exists.Verified locally (tool built from changelog origin/main):
CHANGELOG.mdvalid;releaseover two fragments; renovate'sappend+release -versionwith no.changelog/;-base mainfailsmissing-fragmentby default and passes with it as a warning; workflows parse with yq. The workflows themselves only run on the forge.Bead: rexcity-sffhf
Review of
8f7ab6bf5dfor rexcity-sffhf. Checks of the head: success.Verdict
fail
Findings
.*) and re-includes only.gitignore,.dockerignore,.forgejoand.beads/, so.changelog/is ignored. A fragment written as README.md:71-79 says is never staged bygit add -A,git add .orgit commit -a, andgit add .changelog/x.mdrefuses it without-f; it never reaches the pull request. CI does not catch the loss, becausemissing-fragmentis only a warning intest.yaml. In the merged treegit check-ignore -v .changelog/t.mdprints.gitignore:1:.*. The Done-when ("a pull request of this repository can note its change in a file of its own") does not hold in practice. Fix: add!.changelog/to.gitignorenext to!.forgejo. The PR description's "release over two fragments" check would not have shown this, sincereleasereads files on disk whether git tracks them or not.Verified
fd06139): clean.sarak.sh/mikluko/changelog/v2, so.../v2/cmd/changelog@v2.0.1resolves.actions/validate/action.yamlexists at v2, has awarninput, has outputsversion,dueandnotes, and defaultsbasetogithub.base_ref. Built the CLI from the v2.0.1 source.-base main -warn missing-fragment(the PR job): valid, one warning.-base mainwith default severities: failsmissing-fragment. So job names and behaviour match the description, and CHANGELOG.md needs no edit.releasefolded them and main's[Unreleased]note into## [0.34.0] - 2026-11-12, deleted the fragments, and afterwards the check gave valid=true, due=true. The README's bump rule matches the tool's README (**Breaking:**→ major, minor below 1.0.0).append -section=Changedthenrelease -version=0.33.1edited CHANGELOG.md and deleted the fragment.git commit -amstaged both, and the result is valid with due=true. The README's description of renovate is accurate.go vet ./...andgo test ./...pass on the merge (the PR changes no Go code).missing-fragmentwarning, which the bead's REVIEW.md rule (CI, test and docs changes carry no note) calls for. No changelog note is needed for this CI/docs-only change.8f7ab6bf5d24fd0cf618Review of
24fd0cf618for rexcity-sffhf. Checks of the head: success.Verdict
pass
Findings
### Addedfragment (or a**Breaking:**note) goes out in a patch release: in the merged tree,appendthenrelease -version=0.33.1over a### Addedfragment gave a valid## [0.33.1]that holds### Added. This is how[Unreleased]notes were cut before this change, and the PR description says so, so it does not block this pull request. A follow-up could take the larger of the kuberex bump and the bump the notes call for (releasewith no-versioncomputes the latter).Verified
.gitignore:5adds!.changelog/. In the merged treegit check-ignore -v .changelog/t.mdprints nothing (exit 1).git add -Astages a new fragment, and with it the check passesmissing-fragmentat default severity..gitignoreline and the comment inimage.yaml. That comment changes no step, and a release pull request touches none of the image's paths.fd06139) is a fast-forward and clean.mergeableismergeable.v2and origin/main).actions/validateat v2 has thewarninput and the outputsdue,versionandnotesthat release.yaml and renovate.yaml read.-base main -warn missing-fragment(the PR job): valid, with one warning.-base mainat default severities: failsmissing-fragment, as the README and the test.yaml comment say. A file in.changelog/that is not a fragment failsfragment-form.### Addedfragment,changelog releasefolded it and main's[Unreleased]note into## [0.34.0] - 2026-11-12, deleted the fragment and opened a new empty[Unreleased]. The diff held onlyM CHANGELOG.mdandD .changelog/new-thing.md. Checked against its base the way test.yaml checks it, the result is valid. In push mode it is valid with due=true, which is what release.yaml'splanneeds, and release.yaml triggers on a push that changesCHANGELOG.md. The README's bump rule and its date rule (date-mismatch) match the tool's README.appendthenrelease -versionthengit commit -amstaged the fragment's deletion along with CHANGELOG.md, and the result is valid with due=true.go vet ./...andgo test ./...pass on the merged tree. I did not run-race, because the pull request changes no Go code.