Repository navigation
Let a release retry bump versions in crates added since 0.66 - #1496
Merged
Merged
Conversation
… written The 0.67.1 retry was refused because version-sync now also bumps aft-store, aft-base, aft-db and aft-parse, which the fixed path list didn't name. Match manifests and lockfiles by file name; the content check still proves each one changed only its version. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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), whichversion-syncnow also bumps.The check now accepts any
Cargo.toml,package.json,Cargo.lockorbun.lockin 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-syncnow also bumps crates added after 0.66. The check now allows anyCargo.toml,package.json,Cargo.lock, orbun.lockin 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.
Written for commit 5712d42. Summary will update on new commits.


Confidence 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.
Reviews (1) · Last reviewed commit: "Let a release retry bump versions in cra..." · Reviewed by Greptile