A branch cut before a release merges green and breaks main's changelog check #87
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/rexcity!87
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/rexcity-dpnj3"
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?
Closes the gap rexcity-dpnj3 describes: CI checked a pull request's head, not its merge with main, so a branch cut before a release and merged after it could be green and still break main's changelog check (
release-entry-modified, seen on rexcity#66).Of the three options the bead listed, the user took fragments (#83). They keep a pull request that follows the rules out of
CHANGELOG.md. This adds option 2 on top, for a branch that still edits it: thechangelogjob merges the base branch into the checkout onpull_requestbefore the validate action. A checkout that is already the merge is left as it is, and a branch that does not merge cleanly fails the job with "rebase it". The required check keeps its name. README says so in the changelog paragraph.How I checked it: in a scratch repo, with changelog v2.0.1 built from the module cache, a branch that adds a bullet under the section a later release froze gives 0
release-entry-modifiedfindings on its head and 1 on the merge of main into it; a second merge is "Already up to date".yqparses the workflow,go vet ./...is clean. I could not run the Forgejo job itself.No fragment: a change to CI and docs alone carries no note (REVIEW.md), and
missing-fragmentonly warns.Not done: option 1 (branch protection that refuses a branch behind main) is the repository owner's setting.
Bead: rexcity-dpnj3
Review of
c4a5e36f7efor rexcity-dpnj3. Checks of the head: success.Verdict
pass
Findings
None that block, and no minor ones on this diff.
Outside this pull request, for whoever wants it: on main's code (this PR changes no Go),
go test -race ./...failsTestAWordOfMegabytesIsCutAtTheWidthInLinearTime/thinking/chunk_32768atinternal/acpbox/pane_test.go:610(2.49s against a 1s bound). The race detector slows the code, and CI does not run-race. The plaingo test ./...passes.Verified
CHANGELOG.md. Option 1 is a forge setting and is correctly left out. The PR has a description..forgejo/workflows/test.yaml. Onpull_requestonly, a step before the validate action fetchesrefs/heads/$BASE_REFand mergesorigin/$BASE_REFinto the checkout. A conflict fails the job with "rebase it".github.base_refreaches the shell throughenvand is quoted, so it cannot inject a command. The job name and the required checktest / changelogare unchanged.README.md, changelog paragraph: two lines that match what the step does.actions/validate/action.yml): the tag-dependent checks compare against the newest tag reachable from HEAD, so only after the merge does a frozen section get compared with its release.missing-fragmenttakes the merge base withbase, which is the base tip after the merge, so it still sees only the PR's own changes.missing-fragmentwarning is not a finding. REVIEW.md is not changed. main has no AGENTS.md or CLAUDE.md.origin/main(83bb714), so the merge is a clean fast-forward. Forge saysmergeable.goandchangelogboth success. The changelog job's log shows the new step ran. Its anonymous fetch worked and printed "Already up to date.". Then validate ran, with only themissing-fragmentwarning.go vet ./...andGOOS=darwin GOARCH=arm64 go vet ./...are clean.go test ./...passes.yqparses the workflow. changelog v2.0.1, built from the module cache and run with-base=main -warn=missing-fragment: valid=true, missing-fragment warning only.e626804(before Release 0.33.0) adds a bullet under[Unreleased]/### Fixed:origin/mainis clean.CHANGELOG.md:14: error: the notes under version 0.33.0 differ from the ones released at tag v0.33.0 (release-entry-modified), valid=false.So the step catches exactly the gap rexcity#66 showed.