Found in review of #2: the release run tags whatever the heading's date says; the changelog check reads the head, not the merge #5
No reviewers
Labels
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/claudeacp!5
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/claudeacp-aqp"
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?
Addresses items 1 and 2 of claudeacp-aqp.
.forgejo/workflows/release.yaml): before the Release step, a step compares the version heading's date in CHANGELOG.md with the release commit's UTC day and fails without tagging when they differ. The section stays untagged, so a pull request can still correct the date..forgejo/workflows/ci.yml): on pull_request it mergesorigin/<base>(already fetched byfetch-depth: 0) into the checkout before the check, so the check reads the merge result; a branch that does not merge cleanly fails with a "rebase" message.CHANGELOG.md: a note under [Unreleased].Not changed: item 3 (
permissions: contents: write, a no-op on Forgejo 17, left as it is) and item 4 (tag protection, unreadable with the token). gascitypacks and rexcity share the workflow pattern and need the same guard; not touched here.Checked: the date extraction run by hand against CHANGELOG.md (0.5.0 matches, 0.4.0 is flagged), both workflows parse as YAML,
go buildandgo vetpass. The workflows themselves only run on the forge, so the guard and merge step are untested there.Bead: claudeacp-aqp
Review of
66832e82affor claudeacp-aqp. Checks of the head: success.Verdict
fail
Findings
TZ=UTC ... --date=format-local:), but the changelog tool does not. changelog v1.6.0 (the pinned 7ec45bb) dates a lightweight tag by the committer date in the commit's own offset, and refuses to normalize it to UTC on purpose (pkg/git/git.go,TagDayandtagTime). The tags the Release step cuts are lightweight: v0.4.0 and v0.5.0 are bothcommitobjects. So whenever the release commit's offset is not UTC, the guard and date-mismatch can disagree, and the guard lets through the very tag it exists to stop. That can happen in this repository: fast-forward-only and rebase merges are enabled, and Workers commit with +01:00 (this head is2026-11-12T13:21:04+01:00). I reproduced it: with a heading of## [0.6.0] - 2026-11-12and a commit at2026-11-13T00:30:00+01:00, the guard exits 0, and oncev0.6.0is tagged the v1.6.0 checker reportsversion 0.6.0 is dated 2026-11-12 and tag v0.6.0 was cut on 2026-11-13 (date-mismatch), the unrepairable state of item 1. The reverse case (heading 2026-11-13, same commit) is refused even though the tool would accept it. The fix: read the day the way the tool does,commit_date=$(git log -1 --format=%cd --date=format:%Y-%m-%d HEAD)with noTZ=UTCand no-local. On the repro commit that prints 2026-11-13. Then make the comment at :44, the step name at :45, the error text at :58 and the CHANGELOG.md entry (line 12, "(UTC)") say "the commit's own date" rather than UTC. Squash merges and Forgejo's merge commits carryZ, so with the default merge style the two readings agree, which is why the history so far does not show the problem.Verified
66af402) is a fast-forward, so it is clean; Forgejo reportsmergeable.go test -race -shuffle=on ./...pass on the merged tree (with the city's variables removed). The Go code is unchanged.66832e8and printing "Already up to date.", so origin/main is there afterfetch-depth: 0and the merge happens before the check. The step is skipped on push. This part looks correct.54d3364for 0.4.0 and66af402for 0.5.0 (both pass), and against synthetic commits. A Z commit on the heading's day passes. 00:01Z on the next day is refused. A heading with no date is refused with its message. The +01:00 case is wrong, as described above.Review of
f3ff28d9d7for claudeacp-aqp. Checks of the head: success.Verdict
fail
Findings
91639f5(#6, "Send status in_progress when a tool's execution starts") after this branch was cut from66af402, and #6 added its own entry at the same place under[Unreleased]/### Changed. Forgejo reports the PRnot_mergeable, andgit mergeoff3ff28dinto origin/main stops with a content conflict in CHANGELOG.md. The fix: rebase onto origin/main (91639f5) and keep both bullets under the one### Changedheading, #6's first and this one after it. Nothing else conflicts: ci.yml and release.yaml merge cleanly.The round-1 finding (review 210, the guard dating the commit in UTC) is fixed, and nothing else blocks. Once rebased, the change is ready to approve.
Verified
66af402: ci.yml (+16), release.yaml (+23) and CHANGELOG.md (+4). Items 3 and 4 are left out and the description says so. Nothing unrelated is in the diff.git log -1 --format=%cd --date=format:%Y-%m-%d HEAD, with noTZ=UTCand no-local, so it is the committer date in the commit's own offset. That is the date changelog v1.6.0 uses for a lightweight tag (pkg/git/git.go,TagDay/tagTime:Committer.Whenformatted in its own zone, by design). The comment, the step name, the error text and the CHANGELOG entry no longer say UTC.f3ff28dand ran it on synthetic commits, with the city's variables removed. The heading 2026-11-13 with a commit at 2026-11-13T00:30+01:00 passes. The heading 2026-11-12 with that same commit is refused, which is round 1's repro. The heading 2026-11-12 passes with a commit at 23:59Z and is refused at 2026-11-13T00:01Z. It also passes with a commit at 2026-11-12T23:30-07:00.91639f5) in a clone: CHANGELOG.md conflicts, as described above. With the conflict resolved locally by keeping both bullets (for testing only),go build,go vetandgo test -race -shuffle=on ./...pass on the merged tree. The Go code is unchanged by this PR. The changelog checker built from changelog v1.6.0 returns valid=true and due=false on that tree. Both workflows parse as YAML. golangci-lint and govulncheck were not run (they need the network, and this PR touches no Go code).f3ff28d9d7acdadfa49aReview of
acdadfa49afor claudeacp-aqp. Checks of the head: success.Verdict
pass
Findings
None. The round-2 finding (review 214, the conflict in CHANGELOG.md with #6) is fixed. The branch is now
e4552f6andacdadfaon top of origin/main (91639f5). Both bullets sit under the one### Changedheading of[Unreleased], #6's first and this one after it.Verified
acdadfaare byte-identical tof3ff28d, the head review 214 found ready apart from the rebase. So the round-1 fix still stands: the guard reads the committer date in the commit's own offset (git log -1 --format=%cd --date=format:%Y-%m-%d), as changelog v1.6.0 dates a lightweight tag.mergeable.go build ./...,go vet ./...andgo test -race -shuffle=on ./...all pass. The Go code is unchanged.acdadfaand ran it on the 0.5.0 release commit66af402. VERSION=0.5.0 passes. VERSION=0.4.0 (heading 2026-11-11) is refused with its message.