Skip to content

Conversation

@davidhsingyuchen
Copy link
Contributor

1 is 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!

@k8s-ci-robot
Copy link

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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.

@davidhsingyuchen davidhsingyuchen marked this pull request as ready for review June 1, 2023 17:56
@estesp
Copy link
Member

estesp commented Jun 1, 2023

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 :)

@davidhsingyuchen
Copy link
Contributor Author

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 :)

Thanks for the reminder! Fixed.

@samuelkarp
Copy link
Member

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).

@davidhsingyuchen
Copy link
Contributor Author

Have we run into problems with this?

For the context, I encountered this error when I was working on #8624.

I think most of our cherry-picks are not merge commits

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 Merge pull request, then the error would occur?

image

@dcantah
Copy link
Member

dcantah commented Jun 1, 2023

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:

  1. [release/1.7] Backport Sandbox/CRI fixes #8282
  2. [release/1.7] Backport CRI sandbox server stats changes #8604
  3. [release/1.7] Transfer service backports #8491

@samuelkarp
Copy link
Member

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.

@davidhsingyuchen
Copy link
Contributor Author

@dcantah @samuelkarp Thank you for the pointer. Created #8627 to replace this one.

@davidhsingyuchen davidhsingyuchen deleted the fix-backport-merge branch June 2, 2023 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants