-
Notifications
You must be signed in to change notification settings - Fork 3.8k
docs: explain how to cherry-pick a merge commit for backports #8625
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
docs: explain how to cherry-pick a merge commit for backports #8625
Conversation
|
Hi @davidhsingyuchen. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
It seems reasonable to add in case someone gets stuck and doesn't know where to look for help on the error. But, you need to sign the commit for this change to get a successful CI run :) |
Signed-off-by: Hsing-Yu (David) Chen <[email protected]>
7a13c16 to
81ef13b
Compare
Thanks for the reminder! Fixed. |
|
Have we run into problems with this? I think most of our cherry-picks are not merge commits (generally the merge is going to be directly into one of our branches and not something with its own content; I don't think we commonly have PRs that include merges themselves). |
For the context, I encountered this error when I was working on #8624.
Hmm, I guess I may be misunderstanding something here. Take the commits from yesterday for example, if anyone wants to cherry pick a commit that starts with |
|
I feel like we should encourage not cp'ing merge commits. If you wanted all of the work from a particular PR/set of PRs, we should direct folks to cp all of the individual commits from that PR/set of PRs. For some examples: |
|
I'd agree with @dcantah, generally we'd want the individual commits that comprise a feature/bugfix/PR cherry-picked rather than the merge commit. |
|
@dcantah @samuelkarp Thank you for the pointer. Created #8627 to replace this one. |

1is chosen because that's the branch that's merged into (i.e.,main), and that's what we want.Folks can also read the Git documentation or this Stackoverflow post to understand what merge parent number is and which one should be chosen, but having this tip at hand may save some time there.
That said, feel free to close this PR if this is too general to appear in containerd's doc, thanks!