-
Notifications
You must be signed in to change notification settings - Fork 160
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
Document how to mark commits on master for cherry picking to stable branch #2254
Comments
Another thing we could do is to add a label "backport to stable" to be used on PRs. That's not necessarily an alternative, but rather complementary. I.e. using a fixed string in the commit message is useful if only some commits in a PR should be cherry picked. OTOH the label is good if all changes should be ported. I'd then recommend this course: Once a PR with that label gets merged, somebody should cherry pick the changes, either directly to stable, or into a PR against stable. Then immediately remove the "backport to stable" label, and instead add a comment which links to the new PR, or else lists the commit SHA-1s of the cherry-picked commits. |
I have added a label |
This should be codified somewhere, eg in the wiki, dev manual, |
Just to understand the process: How about changes that are only part of a PR? Should the commit(s) get the additional comment line "backport-to-4.9" (or is another string better) ? |
I would say, as far as possible, split such a PR into two PRs, the stuff for master+4.9, and the stuff for master. It should always be possible to split, because of course the stuff for 4.9 has to be applicable by itself to 4.9 :) If we realise late that part of a PR should be in 4.9 (or not be in 4.9) then we can always do a special case, even by opening a new PR just to apply it to 4.9. |
Yeah, so effectively, what we have done recently is this: add the And yeah, ideally, the PR with the |
This (and other information about how we do certaing things) should be documented somewhere, e.g. in a Wiki page... |
Some time ago we decided to backport changes from master to stable-4.9. One drawback of that is that one can easily forget to do so.
In order to help avoid this, @hulpke suggested in PR #2035 that we could add a fixed string somewhere in the commit message. E.g. "Should be backported to stable-4.9". Or just "Backport to 4.9", or "Cherry pick to 4.9".
I suggest we fix a string, then one can search the git commit log for it. Moreover, somebody (probably will end up being me ?!? sigh) could even write a script which automatically checks for all commits (resp. a suitable subset...) on master containing that string whether they were already merged. The script could even automatically prepare a branch with cherry picks of those which are not yet merged; or at least a list of commits to be cherry-picked.
If we decide to do so, we should document this string somewhere were devs can find it. E.g.
CONTRIBUTING.md
, the Wiki, the dev manual (or all of them)...Thoughts?
The text was updated successfully, but these errors were encountered: