Skip to content

fix(release): guard component notes and package versions - #1930

Closed
rachitm022 wants to merge 1 commit into
nextfrom
rachitm022/check-release-tags
Closed

rachitm022 wants to merge 1 commit into
nextfrom
rachitm022/check-release-tags

Conversation

@rachitm022

Copy link
Copy Markdown
Collaborator

Why

After #1929's release notes delimiters and version heading were edited away, Release Please v17.6.0 logged parsing failures and created both the intended SDK tag and a storage tag carrying the SDK version. The storage distribution remained at 0.2.0b4.

What changed

  • Both next and main Release Please workflows validate the merged release PR's two notes delimiters and component-specific version heading against that branch's manifest before running Release Please.
  • The shared publish workflow checks the selected tag against both the built wheel and source distribution metadata before the companion gate, artifact upload, and PyPI publication.
  • Regression tests cover the edited chore(next): release 10.0.0-beta.21 #1929 body shape, bot release notes on both branches, component isolation, and the bogus storage tag.

Verification

This PR does not change existing tags or publication runs. It was prepared without a new Linear issue, as requested for this incident fix.

@rachitm022
rachitm022 marked this pull request as ready for review November 20, 2026 12:43

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — release-safety hardening for CI workflows and publish gating.

This PR adds validation that merged Release Please PR notes match the bumped manifest (component heading, two delimiters, single version heading) before tagging, and matches the release tag against built wheel/sdist metadata before PyPI publication. Changes are confined to .github/workflows/* and scripts/ci/*, backed by new tests in tests/test_release_safety.py.

Checked: tag-prefix routing, no-op behavior on non-release pushes, manifest key coverage, 30s external-call timeout/fail-closed guards, and workflow step ordering — all covered by the new tests. No public adcp.* surface, type-system layering, generated code, or wire-shape changes are touched, so the semver/forward-compat/import-layering gates do not apply.

The reviewer surfaced no critical, high, or medium findings. The only note is a non-blocking template-coupling fragility in the two-delimiter check, which fails closed correctly.

Gate state: high_risk false, gated_paths false, no author-team gate, no prior decision. None of rows 1–8 fire → row 9 approve.

@rachitm022 rachitm022 closed this Nov 22, 2026
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