-
Notifications
You must be signed in to change notification settings - Fork 24
DM-54042: Add some instructions for fast forward backporting #738
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
Open
timj
wants to merge
1
commit into
main
Choose a base branch
from
tickets/DM-54042
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+35
−0
Open
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,11 @@ What next? | |
|
|
||
| Now treat ``v23.0.x`` same as you would the default branch (``main``). | ||
|
|
||
| .. note:: | ||
|
|
||
| If the release branch and the parent commit for this backport request are at the same commit, you do not need cherry pick commits onto the release branch and can instead fast forward the release branch. | ||
| If this is the case, at this point in the process jump to the `instructions below <backports-fast-forward>`. | ||
|
|
||
| 4) Create a copy of your ticket branch called ``tickets/DM-XXXXX-v23``. | ||
|
|
||
| .. code-block:: bash | ||
|
|
@@ -75,3 +80,33 @@ What next? | |
| but please *do not* put your ticket status back into ``In Review`` on Jira. | ||
|
|
||
| 7) When a ticket has been backported to all requested releases, label your Jira ticket ``backport-done``. | ||
|
|
||
| .. _backports-fast-forward: | ||
|
|
||
| What If The Backport Can Be Fast Forwarded? | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the fast-forward criteria is satisfied, maybe we should just instruct people to ask in a Slack channel for a pro to take over (
|
||
| =========================================== | ||
|
|
||
| If the parent commit of your backport coincides with the release branch (or release candidate tag) you do not need to cherry pick and instead should fast forward. | ||
| Following on from step (3) above having created the release branch and pushed it. | ||
|
|
||
| 4) At the merge commit on ``main`` of the code you are backporting, create a temporary ticket branch. | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| git checkout -b tickets/DM-XXXXX-v23 | ||
|
|
||
| This branch exists solely to allow Jenkins to be tested as a convenience without having to find a commit ref for the merge to ``main``. | ||
|
|
||
| 5) Run Jenkins as described above in step (5) using this temporary ticket branch. | ||
|
|
||
| 6) When Jenkins passes you can now merge your ticket branch directly to the release branch. | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| git checkout v23.0.x | ||
| git merge --ff-only tickets/DM-XXXXX-v23 | ||
| git push | ||
| git branch -d tickets/DM-XXXXX-v23 | ||
|
|
||
| We ensure that the merge is a fast forward and this command will fail if it is not. | ||
| The ticket branch is not needed and can be deleted. | ||
Oops, something went wrong.
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.
I honestly don't know how to judge this PR or this statement.
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.
I think we could instead say, "if the release branch (or if it doesn't exist, the release tags) are on a commit that is also on the main branch and your ticket is the first one after that commit". A screenshot of this condition in some git GUI would really be worth a thousand variations of those words, though.