mergify icon indicating copy to clipboard operation
mergify copied to clipboard

Conflicts should be resolved after backporting missing PR's

Open soyacz opened this issue 1 year ago • 3 comments

Expected Behavior

When trying to backport one PR, I figure out that previous one was missing causing conflicts. So, first I backport previous one and I expect the initial one conflicts to be fixed.

Actual Behavior

Conflicts stay and need to resolve them manually.

Steps to Reproduce the Problem

  1. Create 2 PR's that change the same thing
  2. Try to backport the second one - cause conflict
  3. Backport 1st one - see still conflicts are present

soyacz avatar Aug 07 '24 06:08 soyacz

Backports are not automatically updated in any way and that's not something we're planning to do. Best case would be to be able to recreate a backport, which would work in your case. Though I think this is something that we don't allow yet.

jd avatar Aug 07 '24 07:08 jd

Backports are not automatically updated in any way and that's not something we're planning to do. Best case would be to be able to recreate a backport, which would work in your case. Though I think this is something that we don't allow yet.

thanks for the prompt response @jd

if there something that could be done to help with such flow ? we have them on a daily basis, that we need to backport to 5-6 branches, and even if 2 of 6 is having this, the manual intervention is not always trivial, and cannot be automated...

fruch avatar Aug 07 '24 09:08 fruch

also trying using @mergify rebase command, which in this situations, cause more harm, and all of the conflicts in code are duplicated, and it ends up harder to solve them.

I would expect a rebase command to work as rebase does, take the changes out, and apply the original changeset ontop of the updated target branch.

fruch avatar Aug 07 '24 09:08 fruch