Skip to content

release: v3.1.2 - #12

Merged
Shinrai merged 2 commits into
masterfrom
fix/release-gate-changelog-update
May 21, 2026
Merged

Shinrai merged 2 commits into
masterfrom
fix/release-gate-changelog-update

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(release): refresh PR body when version already bumped on branch (17aec97)

🔧 Other Changes

No other changes

👥 Contributors

Shinrai and others added 2 commits May 20, 2026 18:33
When the same branch receives a second release-worthy commit (e.g. a
second fix:) after the bot already pushed its 'chore: bump version to
X.Y.Z' commit, check-release-commit's early-exit was discarding the
new commit from the changelog and PR body.

Concrete failure: PR #10 on the v3 line — first push landed
fix(actions); workflow updated the PR body with that commit and
pushed 'chore: bump version to 3.1.2'. A later push added
fix(security) — the workflow re-ran but exited at the 'already bumped
to 3.1.2' check, skipping changelog regen + PR body refresh. The PR
description never gained the fix(security) bullet, and the release
notes (had we merged then) would have lost it too.

Fix:
- check-release-commit: new opt-in input 'allow-already-bumped'.
  When true, instead of exiting should-create-pr=false on duplicate
  target version, emit should-create-pr=true + bump-already-applied=true
  with all the usual outputs so downstream steps can refresh state.
- update-release-pr: pass allow-already-bumped=true and split the
  step gates. Version-mutating steps (install, build, update-pkg,
  restore-src, commit) gate on bump-already-applied != 'true'.
  Body-refresh steps (range, changelog, PR description, labels)
  gate only on should-create-pr == 'true'.

Callers create-release-pr and create-release are unchanged — they
omit the new input (default 'false'), preserving the short-circuit
behavior they actually want (nothing to create / nothing to publish
when target is already bumped).

The misleading 'Release Summary' that previously reported 'updated
successfully' when nothing happened becomes accurate by construction:
the body really does get updated now.
@cldmv-bot cldmv-bot Bot added release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected area: core labels May 21, 2026
@Shinrai
Shinrai merged commit 85c88cf into master May 21, 2026
8 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/release-gate-changelog-update branch May 21, 2026 03:44
Shinrai added a commit that referenced this pull request May 21, 2026
The local-sync-release-prs.yml gate excluded PRs authored by cldmv-bot,
intended to 'avoid recursion'. The reasoning was wrong:

  - sync-fan-out's only side effect is force-pushing a refreshed
    'chore: bump version to X.Y.Z' commit onto each open release PR.
    It never merges anything itself.
  - A force-push to a release branch triggers Local Release PR + Local
    CI, neither of which fire local-sync-release-prs.yml (which is
    gated on pull_request closed). No recursion path exists.

Real-world impact of the bug: EVERY release PR is auto-opened by
cldmv-bot (the release flow creates them), so the gate fired 'skip'
on exactly the merges it was built for. Concrete symptom from PR #12's
merge (35 min ago): sync-fan-out fired and exited in 1s, leaving PR
#10's branch at its pre-merge state ('chore: bump version to 3.1.2'
even though master is now at 3.1.2 and PR #10's target should be
3.1.3).

Fix: drop the cldmv-bot exclusion. Keep the github-actions[bot] guard
as defensive — some workflows post merges under that identity and
genuinely shouldn't trigger fan-out.
Shinrai added a commit that referenced this pull request May 21, 2026
Adds a one-line reminder above the pinned ref to re-verify against the
upstream advisory before any future bump. No behavior change — purely a
maintenance comment.

Secondary effect: triggers a fresh release-flow run on this PR. The PR
has been stuck at its pre-PR-#12-merge state ('chore: bump version to
3.1.2'), but master is now AT v3.1.2 — sync-fan-out should have re-
calculated this PR's target to 3.1.3 when PR #12 merged, except its
gate skipped because PR #12 was authored by cldmv-bot (the fix for
that gate is in PR #11, not yet on @V3). Pushing this commit triggers
local-release.yml directly, which calls update-release-pr@v3 — and
that code DOES have the gate fix from PR #12. Expected: a new
'chore: bump version to 3.1.3' commit gets force-pushed onto this
branch, the PR body refreshes with the security fix entry, and the
title goes from 'release: v3.1.2' to 'release: v3.1.3'.
Shinrai added a commit that referenced this pull request May 21, 2026
Resolves conflicts with PR #12's gate fix that landed on master as
85c88cf release: v3.1.2. The cherry-picked gate fix on this branch
(bf9f4ce) and master's gate fix (17aec97 via merge) touched the same
lines in check-release-commit/action.mjs and check-release-commit/action.yml.

Resolution: take feat's version everywhere, which is a superset:
  - Gate fix: identical content, no semantic change
  - Title-suffix output: extra lines feat added on top of the gate fix
  - package.json: 3.2.0 (feat target) over 3.1.2 (master) — feat is a
    minor bump so the higher version wins
  - update-release-pr/action.yml: auto-merged cleanly — both branches
    only added lines (feat added title-suffix passthrough, master had
    the gate-split if conditions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant