-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Tooling] Improve new_hotfix_release lane to work when there's no release tag
#24996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
mokagio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run from local release/99.9 that was not pushed to the remote
Tagged release/99.9 as 99.9 but did not push it:
Same but after adding remote: true as @AliSoftware suggested:
This shows another benefit of the suggestion: Ensuring the tag exists on the remote. I think this is beneficial because we can all make mistakes and it is possible (if contrived) that someone running the process on their machine might have a tag locally that has no match on the remote. A tag that exists only locally should be ignored, as the remote is the source of truth, especially when computing the release status.
After pushing release/99.9:
After pushing the tag as well:
Additional check for incorrect hotfix number, version:9.99.2:
On version that doesn't exist and different from current release branch:
Unrelated to the changes here, but we might want to add (possibly as a separate PR) a check to prevent passing a version that is not an hotfix to the lane.
E.g. bf new_hotfix_release skip_confirm:false version:26.4 gave me:
I suppose the process would have failed later on, but seems like a good check to add to fail early before risking pushing to the repo.
I think the
ad191ec to
5dcecde
Compare
Great idea! I've added 5dcecde while we're here. |
Co-authored-by: Olivier Halligon <[email protected]>
Co-authored-by: Gio Lodi <[email protected]>
aec64ea to
9c98ae3
Compare
|



Related to AINFRA-1518
Description
This PR aims to add more robustness and require less manual intervention to the hotfix creation lane
new_hotfix_release.We have observed that sometimes it is possible that the release has been finalized but a release tag isn't present yet for some reason (likely due to the fact that the release hasn't been published yet), so release managers will get an error and require manual intervention.
This PR changes the code so that, if no release tag is present, we start the hotfix branch based on the corresponding release branch.
Testing instructions
There are basically 3 test scenarios that can be simulated:
To test it, you can create test branches / tags and run
bundle exec fastlane new_hotfix_release skip_confirm:false version:"$VERSION"and then answernoafter the prompt so that the lane execution stops and check the printed values.For example:
release/30.6(which doesn't exist and has no corresponding tag for that version)bundle exec fastlane new_hotfix_release skip_confirm:false version:30.6.1release/30.6branch instead of trying to use a tag. It should print: