-
Notifications
You must be signed in to change notification settings - Fork 578
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
github labelling to more clearly indicate state of PRs wrt. backporting #183
Comments
Probably need a label for semver-major security fixes that should be backported, because that is allowed for security fixes. @nodejs/lts @MylesBorins |
I think the |
@MylesBorins should weigh in on this but we've been talking about doing away with the |
The problem with As is, there is no way to know if a PR will or did land from master onto any current or LTS branches, or to know if it was, or will be, backported. @jasnell you think that state can't be indicated with labels, or that is not useful to know whether a PR will backport? I need to know the state of my PRs all the time. Our customers are running LTS, when I PR something to master, its because I want it to hit a LTS release where our customers can use it, and I'm doing a fair bit of manual trolling of release-in-progress PRs ATM to make sure it makes it in. |
I'm all for the |
but not I do branch-diffs myself regularly now, see nodejs/node#11185 (comment), I haven't found another way to know what is not making it in. |
That's something @MylesBorins should weigh in on more but in practice it hasn't proven to be very useful when actually tracking which PRs need to land. The |
We currently have/need three different types of labels:
1. Labels for people raising PRsIf we have a well-defined backport process then do we need this? For example we can say that any EDIT: Actually, looking at the COLLABORATOR_GUIDE, our policy is still to only land Then the question is how to ask why a PR is/isn't being backported. I'd have thought @mentioning nodejs/LTS should be okay. 2. Labels for the GitHub botThis is basically a helper for If something requires a manual backport, adding a label doesn't generate a notification, so it might be helpful for the bot to comment as well (cc/ @nodejs/github-bot). 3. Labels for the release/LTS teamWho decides whether something should be backported? According to the docs it should be @nodejs/LTS (not sure if that applies to Whoever does it probably needs labels that take priority over the ones the bot sets (for when the bot makes a mistake). |
Personally I'd be happy with just two sets of labels: one to indicate intention ("want-backport-v4.x", etc.) and the other the bot adds to show whether the PR can currently land on particular branches without manual intervention (e.g. "no-conflicts-v4.x", etc.) (this one is a bit of an issue with the bot currently, since it does seem to automatically resolve conflicts where possible). |
I feel like if we add too many labels we are going to fix one problem and create another one. About backporting. Normally the person doing the release is going to start a conversation when a commit is not landing in the |
Do you mean the intention of the person who raises the PR? I'm not sure how helpful that actually is. What do you see as the use for that? |
Not necessarily just the PR author, but it could be anyone I suppose. It would be helpful because it may not get backported immediately for any number of reasons, so when it comes time to make a new release for example, a releaser could see that there are x PRs that have yet to go into staging (that may/may not land "cleanly"), so they might ping the author in the PR about it. Having just a bot-managed "no-conflicts-*" label does not help with this because you may not want the PR to be backported to those branches. For example, if I know node v4.x and v6.x have a slow Also, I don't think we need a third set of labels to show whether something landed or not. IMHO just removing the "want-backport-*" label after backporting it should be sufficient. |
@mscdex okay sure, but that seems like a decision that should be made by the LTS team, not just by any collaborator, hence my suggestion of having labels for the LTS/release team to use to override the In any case, I think we'd only need the negative |
Why? I don't see a problem with the current process that seems to involve everyone (including LTS team members), including the PR author, when deciding whether something should be backported. I think there are many occasions when the PR author knows if they should be backported based on the changes being made (e.g. my |
I think the automatic bot labeling can be beneficial to PR authors so they know (immediately) whether they will need to open up a separate PR for manual backporting. As far as the negation goes, I don't care which way it is ("want-backport-v7.x" or the combination of "dont-land-on-v4.x" and "dont-land-on-v6.x"), as long as the general meaning stays the same -- the indication of intention. |
After the last backport I was pretty convinced anything aside from the dont-land label was unnecessary, if something shouldn't be backported you should know and be explicit. A lot of people don't label things and we have to batch review a lot of stuff no matter what, so it doesn't end up saving that much time in the review process. We could potentially pair dont-land and land-on to be more explicit that the commit was backported for PRs that don't land cleanly. |
Linking with nodejs/github-bot#120 |
Well, after reviewing the destruction I caused with the release of 7.7.0, one of the biggest issue that I found was using the I think at least the As a clarification, I want to point that this was not the main problem, but the label can help to avoid having something similar in the future. |
There is also something else that caused the 7.7.0 issue. It was not obvious at first that nodejs/node#9304 would be backported to 7.x and the backport (nodejs/node#11106) happened more than 1 month after the original PR. The real issue is that when nodejs/node#11106 was opened, we should have realized that other PRs needed to be included with it. GitHub doesn't provide a good way to mark issues as dependent on other issues but we probably need to come up with a solution for this. |
This labelling exists now.
What I've been doing (copied from @MylesBorins) is adding a comment on a PR that depends on another one to say "needs to land with #xxxx". It's not ideal but it should work (as long as people do it). Not sure there's a better way of doing it, but happy to continue the discussion. |
This is relevant to both LTS (backporting to what is 6.x and 4.x at this moment) as well as the maintenance of Current (which is 7.x at this moment).
I think it would be useful to have a
backport-to-v#.#
label with the meaning that this PRs content is wanted onv#.#
, but needs backport because it does not land clean.In general, I would like for the intentions wrt. backporting and landing of any PR to be possible to know from the github labels. This will help people looking at a PR in github to understand what is going to happen to it. It should also help with tool automation, because the tools can rely on the labels more and less on discretion of the person doing the release. And it would make communication more clear. Perhaps we could even write a tool that given a PR number, would predict the releases it will be in, so people know when to expect their features to appear in LTS, or if they will never appear because they were rejected as not stable enough.
The state of any PR wrt. to the next branch back (for master, next back is 7.x at the moment, for 7.x, the next back is 6.x, etc.) could be described by a set of labels like:
dont-land
: this PR will not be landed (if it won't be landed because it can't, but its wanted, then it should also have abackport-to
label, but if its just not wanted, this label is enough to remove from it from the branch diff)backport-to
: this PR does not land, but should be backportedlts-watch
: indicates that someone is requesting the LTS team to consider this PR for landing on a LTS veresion. Note: LTS team will consider, but there isn't a label indicating the result of their consideration, and the label isn't required for a PR to be landed, LTS will proactively pick PRs that are appropriate. I think the current state is a bit vague.land-on
: for master, anything that is notsemver-major
ordont-land
should land on current, so this is not needed. For LTS, I don't think this label is (currently) required for a PR to land on a LTS version, but I think it should be applied to all PRs that did land or will land, so that its clear what their destiny is.Backport PRs themselves can use exactly the labels above, same meaning.
If the github bot starts doing labelling again, I think what would be useful is something like
auto-land-failed-v#.#
(or something of the like). That way, when a PR lands on master, people can see the labels, and if it doesn't land on Current, or on any LTS, and the author thinks it should, they can start to prepare backports right away.I think this would make preparing the 7.x much easier. Also, if the github bot isn't correctly realizing that PRs land (perhaps because they don't cherrypick standalone, but do land when the preceeding commits all land), then maybe branch-diff needs to learn to set labels like
dont-land
on PRs, so their authors get a notification and can choose to backport.cf. nodejs/node#11051 (comment)
The text was updated successfully, but these errors were encountered: