Skip to content

ci(release): tolerate missing changelog section in dry-run#171

Merged
d-laub merged 1 commit into
mainfrom
fix/release-dryrun-no-changelog
May 21, 2026
Merged

ci(release): tolerate missing changelog section in dry-run#171
d-laub merged 1 commit into
mainfrom
fix/release-dryrun-no-changelog

Conversation

@d-laub
Copy link
Copy Markdown
Collaborator

@d-laub d-laub commented May 21, 2026

Problem

Post-merge validation of the new release pipeline surfaced a real bug in dry-run mode. Run 26253881223 (fresh-bump dry-run) failed at the release job because the projected tag v0.25.0 has no section in docs/source/changelog.md — commitizen only writes it during the real bump.

Fix

In release.yaml's Extract changelog section step: if the section is empty AND we're in dry-run, emit a placeholder body so the dry-run summary still renders. Real releases continue to fail fast on missing sections.

Validation context

The recovery-path dry-run (26253886867) passed end-to-end (all 16 wheel builds, sdist, attestation, uv publish dry-run, merge dry-run summary) since v0.24.1 has a real changelog section. This fix lets the fresh-bump dry-run reach the wheel matrix too.

Test plan

  • After merge, re-dispatch Release pipeline with increment=auto, dry_run=true and confirm release succeeds with the placeholder body in the step summary.

In dry-run from the orchestrator's fresh-bump path, the projected tag
(e.g. v0.25.0) has no changelog section yet because commitizen only
writes it during the real bump. Emit a placeholder body instead of
failing so the dry-run summary still renders. Real releases still fail
fast on missing sections.
@d-laub d-laub merged commit c5047c9 into main May 21, 2026
5 checks passed
@d-laub d-laub deleted the fix/release-dryrun-no-changelog branch May 21, 2026 21:38
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