Let a release retry bump versions in crates added since 0.66

Merged
AF
4h ago
+47-10

The 0.67.1 patch retry (release.sh --retry-from v0.67.0 0.67.1) was refused before anything was pushed: "retry bump changes files other than versions and notes". The check listed the version files by path, and the list predates the crates added in 0.67 (aft-store, aft-base, aft-db, aft-parse), which version-sync now also bumps.

The check now accepts any Cargo.toml, package.json, Cargo.lock or bun.lock in the bump. The existing content check is unchanged: each such file may differ from the failed tag only by the version string, and the notes file must be present.

Tests: a fixture with a crate added before the failed tag now retries cleanly (fails on the old check), and a bump that touches a non-version file is still refused. All 92 release-landing tests pass.

This commit is also cherry-picked into the 0.67.1 retry, because the release branch's own CI gate runs the same check.


Summary by cubic

Fixes the release retry check so a 0.67.1 patch retry isn't refused just because version-sync now also bumps crates added after 0.66. The check now allows any Cargo.toml, package.json, Cargo.lock, or bun.lock in the bump, while still requiring those files to differ from the failed tag only by version and the notes file to be present.

Adds tests for a bump with a crate added before the failed tag and for a bump touching a non-version file. The change is also cherry-picked to the release branch, which runs the same check.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Release retries now accept manifests and lockfiles by filename instead of a fixed path list.

  • Patch-release retries accept version bumps in newly added crate manifests.

Reviews (1) · Last reviewed commit: "Let a release retry bump versions in cra..." · Reviewed by Greptile