-
Notifications
You must be signed in to change notification settings - Fork 3.9k
op-deployer: Add backports guide #14830
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
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.
The exact sequence of commands we need to use is unclear to me. Does this sound correct?
Should we just tag
backports/op-deployer/v0.2.0orop-deployer/v0.2.1at this point? If not, what branch does the pr forbackports/op-deployer/v0.2.0target?Uh oh!
There was an error while loading. Please reload this page.
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.
More like:
Then, create a PR where source branch is
backport-containing-branchand destination branch isbackports/op-deployer/v0.2.0Then, get that PR reviewed and merged.
Now, checkout a new tag called "v0.2.1" from the latest HEAD of
backports/op-deployer/v0.2.0and push it on origin.Goreleaser will catch this newly pushed tag and automatically create the v0.2.1 release i.e. (v0.2.0 + your backported fix)
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.
Ok I'm almost with you. Seems maybe there is a typo in your push command (has an extra arg):
So
backports/op-deployer/v0.2.0will be a long running branch (i.e. should never be deleted) where cherry picked commits will get merged. And after each merge into the backport branch, a new patch tag should be created.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.
✅
Umm, that's not necessarily true but you're on the right track.
For example, if we're aware of 2-3 fixes at present worth getting backported, it's sensible to club them together in one PR or create them as separate PRs and merge them all onto the
backports/op-deployer/v0.2.0.So that once we finally make the release v0.2.1, it would contain all the backported fixes and not just one of them.
PS: Something similar's happening with op-deployer currently i.e. including my recent backported fix, there are some more backport-fixes which Slipper is working and planning include in the new release v0.0.13 eventually. (v0.0.11 + my backported fix + Slipper's backported fixes).
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.
Got it. Ok thanks for the patient explanation
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.
But yeah, if you're talking about some time in the future (after v0.2.1 is already released), when we realise another fix worth backporting, I opine on having dedicated backport branches during the process of creating new backport releases i.e. new branch called
backports/op-deployer/v0.2.1(created out of v0.2.1 tag) so as to eventually create a new backport releasev0.2.2Functionally speaking, like you said, we can continue to just make a new commit on the old long-running
backports/op-deployer/v0.2.0and cut a release v0.2.2 from there but I think that would lead to some vagueness. One branch per backport release makes things more trackable imo.