Skip to content
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

Don't pull in single commits from a multi commit PR #313

Closed
BridgeAR opened this issue Mar 8, 2018 · 3 comments
Closed

Don't pull in single commits from a multi commit PR #313

BridgeAR opened this issue Mar 8, 2018 · 3 comments

Comments

@BridgeAR
Copy link
Member

BridgeAR commented Mar 8, 2018

There were a couple of occasions where the backporting tool seemed to pull in single commits from a multi commit PR even though other commits did not land cleanly (e.g. nodejs/node#17615). This could result in weird states. I am currently not sure what tool is used for getting in all the commits and how it is used. So it would be great if someone could have a look at this (and maybe also provide me with some useful links / info? :-) ).

@gibfahn
Copy link
Member

gibfahn commented Mar 26, 2018

Looking at that PR I think you're talking about what is used for current release?

If so @MylesBorins has a manual process that he currently follows.

The tool we use is branch-diff, you can read about the LTS process in releases.md.

Basically it's a manual process to revert the other commits if a cherry-pick fails halfway through.

We should have a tool though, see nodejs/node-core-utils#194 for that.

@gibfahn
Copy link
Member

gibfahn commented Mar 26, 2018

What we do for current is:

  • Run branch-diff to generate a list of shas:
    branch-diff --reverse --sha
  • For each commit try to cherry-pick it, if it fails:
    • Open PR in browser.
    • Either fix conflicts and backport, or don't fix and bail.
    • If PR had multiple commits, git cherry-pick --quit and git reset --hard to
      get rid of any previous commits from that PR.
    • Add a comment to PR either requesting a backport or saying it's
      dont-land.

@BridgeAR
Copy link
Member Author

BridgeAR commented May 2, 2018

Since the current structure should already cover my case, I am going to close this issue. Seems like it was a accident.

@BridgeAR BridgeAR closed this as completed May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants