Skip to content

feat: synthesize bot changelog entries at release time - #1425

Merged
c-vigo merged 4 commits into
devfrom
feature/1423-release-time-bot-changelog
Aug 11, 2026
Merged

c-vigo merged 4 commits into
devfrom
feature/1423-release-time-bot-changelog

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces the per-PR Renovate/adoption changelog pipeline with release-time synthesis (Closes #1423).

  • New synthesize-bot-changelog (vig-utils): enumerates merged bot PRs since the last stable tag from git history, fetches metadata via gh api, and regenerates a #### Dependencies block under ### Changed — net delta per dependency (earliest from, latest to, all PRs cited; zero-delta disappears), lock-file-maintenance rollups per ecosystem (previously skipped entirely — verified gap in devkit build(pip): lock file maintenance #1315/build(pip): lock file maintenance #1369 and consumers), and adoption entries coalesced to the shipped devkit version. The block is the tool's only owned region, rebuilt wholesale each run — idempotent by construction; hand-written entries are never touched.
  • Wired at the two dispatch points that own changelog mutation: prepare-release.yml (before the content gate and the freeze, so the entries ride the freeze commit) and the finalize pass (release.yml root / release-core.yml scaffold, final kind only, before the date stamp). A bot PR merged into the release branch mid-train is reachable from HEAD at finalize, so it cannot ship unchronicled; candidates stay changelog-neutral.
  • Deleted renovate-changelog-build.yml + renovate-changelog-commit.yml (root + scaffold), their sync-manifest entry, zizmor baselines, and preset exclusions; retired via the fix(install): upgrade does not prune scaffold files retired since the consumer's pinned version #1348 retired-paths manifest (1.8.0). Bot PR branches no longer receive changelog commits → concurrent Renovate PRs stop conflicting on ## Unreleased, Renovate's rebaseWhen: conflicted self-rebase works again (the bot author was never in gitIgnoredAuthors, so it was dead wiring), and the double CI run per bot PR disappears. The latent release-branch bug (bot PR based on release/** inserting into the empty post-freeze Unreleased) dies with the pipeline.
  • Scaffold cut contract: the Unreleased content gate moves from the host-only validate job into the toolchain-capable prepare job (still ahead of the freeze) so a train whose only content is bot PRs passes; tag-prefix threads through for prefixed consumer tag schemes.
  • just changelog-preview: read-only preview of the pending block (root + scaffold).

Evidence

Notes for review

  • #1404's adoption-entry transport is superseded (never live-proven at a train); the entry format and title parser survive and are reused.
  • Reverted-bump edge: PR-metadata coalescing can overstate if a Renovate bump is later reverted by a non-bot commit — recorded as out of scope in feat: synthesize bot changelog entries at release time (drop per-PR pipeline) #1423 (convention: reverts carry their own hand-written entry).
  • Consumers still on ≤1.7.x briefly lose the preset exclusion for the (now retired) pair; the devkit-upgrade cron (Mon 06:00) runs before Renovate's schedule (Mon <09:00), so the exposure window is minimal.
  • First live end-to-end exercise lands at the next train's cut/finalize.

Refs: #1423

c-vigo added 4 commits August 11, 2026 14:28
The per-PR Renovate changelog pipeline conflicts every open bot PR on
the same Unreleased lines, silently skips lock-file-maintenance PRs,
and sends release-branch PR entries into the post-freeze Unreleased.
Pin the replacement: synthesize-bot-changelog coalesces the merged
bot-PR window since the last stable tag to net deltas per dependency
and regenerates a #### Dependencies block at cut and finalize.

Refs: #1423
synthesize-bot-changelog enumerates merged bot PRs since the last
stable tag, fetches their metadata via gh api, coalesces per-dependency
net deltas (lock-file-maintenance rollups per ecosystem, adoptions to
the shipped devkit version) and regenerates the #### Dependencies
block in the target section. renovate_changelog_pr.py shrinks to the
parsing library the synthesizer consumes; its CLI and insertion path
are superseded.

Refs: #1423
Wire synthesize-bot-changelog into the two dispatch points that own
changelog mutation — prepare-release (before the content gate and the
freeze) and the finalize pass (release.yml at the root, release-core
in the scaffold, final kind only, before the date stamp) — and delete
the per-PR renovate-changelog build/commit pair from root and
scaffold. The scaffold content gate moves from the host-only validate
job into the toolchain-capable prepare job so a bot-only train still
passes. Retire the shipped pair via the retired-paths manifest and
drop it from the renovate feature set, the sync manifest and the
zizmor baselines. A changelog-preview recipe gives read-only
mid-cycle visibility.

Refs: #1423
@c-vigo
c-vigo enabled auto-merge August 11, 2026 12:53
@c-vigo
c-vigo merged commit 8045470 into dev Aug 11, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1423-release-time-bot-changelog branch August 11, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant