-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doc: update backporting guide #13749
doc: update backporting guide #13749
Conversation
doc/STYLE_GUIDE.md
Outdated
@@ -68,3 +68,5 @@ | |||
|
|||
[plugin]: http://editorconfig.org/#download | |||
[Oxford comma]: https://en.wikipedia.org/wiki/Serial_comma | |||
[emdashes]: https://en.wikipedia.org/wiki/Dash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Perhaps this should link to https://en.wikipedia.org/wiki/Dash#Em_dash instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
372f293
to
0312e28
Compare
what can be landed. Our LTS release lines (`v4.x` and `v6.x` as of March 2017) | ||
require that commits mature in the Current release for at least 2 weeks before | ||
they can be landed in an LTS staging branch. Please see the [LTS Plan][] for | ||
more information. Only after "maturation" will those the commits be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those the commits -> those commits?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assorted nits (many from the existing text, but while you're here...)
| `v8.x` | `v8.x-staging` | Current | | ||
| `v7.x` | `v7.x-staging` | Maintenance | | ||
| `v6.x` | `v6.x-staging` | LTS | | ||
| `v4.x` | `v4.x-staging` | Maintenance | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realise this was in the guide, I remember @MylesBorins suggested we remove it in the original PR, as it will get out of date every few months.
As this info is basically duplicated in the LTS schedule, maybe link to that in ## Staging branches
and remove the whole ### Active staging branches
section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
|
||
## What needs to be backported? | ||
|
||
If a cherry-pick from master does not land cleanly on a staging branch, the | ||
releaser will mark the pull request with a particular label for that release | ||
line, specifying to our tooling that this pull request should not be included. | ||
The releaser will then add a comment that a backport is needed. | ||
line (e.g. `backport-requested-v8.x`), specifying to our tooling that this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v8.x
-> vN.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
for more information. After that time, if the commit can be cherry-picked | ||
cleanly from master, then nothing needs to be done. If not, a backport pull | ||
request will need to be submitted. | ||
what can be landed. Our LTS release lines (`v4.x` and `v6.x` as of March 2017) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
(
v4.xand
v6.x as of March 2017)
-> (see the [LTS Plan][])
and then remove Please see the [LTS Plan][] for more information.
from the next line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
The releaser will then add a comment that a backport is needed. | ||
line (e.g. `backport-requested-v8.x`), specifying to our tooling that this | ||
pull request should not be included. The releaser will then add a comment | ||
that a backport is needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that a backport is needed.
-> requesting that a backport pull request be made
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
format — `(v7.x backport) #<PR_NUMBER> - <commit title>`. | ||
Example: `(v7.x backport) #10157 - process: improve performance of nextTick` | ||
3. Check the checkbox labelled "Allow edits from maintainers". | ||
4. In the description add a referance to the original PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
referance
-> reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. Check the checkbox labelled "Allow edits from maintainers". | ||
4. In the description add a referance to the original PR | ||
10. Replace the `backport-requested-v7.x` label on the original PR | ||
with `backported-to-v7.x`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this should be done until the PR lands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved it out of the numbered list, PTAL.
with `backported-to-v7.x`. | ||
|
||
*Note*: If the backport pull request is different than the original, it should | ||
be reviewed the same way a new pull request is reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All backport PRs are reviewed, what exactly is your meaning here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
7. Make sure `make -j4 test` passes. | ||
8. Push the changes to your fork | ||
9. Open a pull request: | ||
1. Be sure to target the `v7.x-staging` branch in the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is maybe just me, but I feel like a.
b.
c.
is more natural than another set of numbers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gibfahn PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly done, one nit and one thing I just noticed we don't specify.
7. Make sure `make -j4 test` passes. | ||
8. Push the changes to your fork | ||
9. Open a pull request: | ||
1. Be sure to target the `v7.x-staging` branch in the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs doing.
format — `(v7.x backport) #<PR_NUMBER> - <commit title>`. | ||
Example: `(v7.x backport) #10157 - process: improve performance of nextTick` | ||
3. Check the checkbox labelled "Allow edits from maintainers". | ||
4. In the description add a reference to the original PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're here, could you add a note saying that you should run CI as well? Just node-test-pull-request
with the default settings.
Refs: #13835 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR for PR tile
9. Open a pull request: | ||
1. Be sure to target the `v7.x-staging` branch in the pull request. | ||
2. Include the backport target in the pull request title in the following | ||
format — `[v7.x backport] #<PR_NUMBER> - <commit title>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[]
seems reasonable, but why require the #PR NUMBER
? That seems like noise, especially if you have the commit message in the PR description (the PR-URL
is a clickable link so more useful). Also doesn't work for multiple PRs backported together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. No #PR NUMBER
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More nits
doc/STYLE_GUIDE.md
Outdated
@@ -40,8 +40,8 @@ | |||
* When documenting APIs, note the version the API was introduced in at | |||
the end of the section. If an API has been deprecated, also note the first | |||
version that the API appeared deprecated in. | |||
* When using dashes, use emdashes ("—", Option+Shift+"-" on macOS) surrounded by | |||
spaces, per the New York Times usage. | |||
* When using dashes, use [emdashes][] ("—" or `Option+Shift+"-"` on macOS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emdashes
-> Em dashes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
* After creating the branch, apply the changes to the branch. The cherry-pick | ||
will likely fail due to conflicts. In that case, you will see something this: | ||
4. After creating the branch, apply the changes to the branch. The cherry-pick | ||
will likely fail due to conflicts. In that case, you will see something this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this
-> like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
9. Open a pull request: | ||
1. Be sure to target the `v7.x-staging` branch in the pull request. | ||
2. Include the backport target in the pull request title in the following | ||
format — `[v7.x backport] #<PR_NUMBER> - <commit title>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[]
seems reasonable, but why require the #PR NUMBER
? That seems like noise, especially if you have the commit message in the PR description (the PR-URL
is a clickable link so more useful). Also doesn't work for multiple PRs backported together.
3. Check the checkbox labelled "Allow edits from maintainers". | ||
4. In the description add a reference to the original PR | ||
5. Run a [`node-test-pull-request`][] CI job (with `REBASE_UNTO` set to the | ||
default `<pr base barnch>`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
barnch
-> branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
Example: `[v7.x backport] #10157 - process: improve performance of nextTick` | ||
3. Check the checkbox labelled "Allow edits from maintainers". | ||
4. In the description add a reference to the original PR | ||
5. Run a [`node-test-pull-request`][] CI job (with `REBASE_UNTO` set to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UNTO
-> ONTO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
@@ -74,6 +74,8 @@ hint: and commit the result with 'git commit' | |||
4. In the description add a reference to the original PR | |||
5. Run a [`node-test-pull-request`][] CI job (with `REBASE_UNTO` set to the | |||
default `<pr base barnch>`) | |||
10. If during the review process conflicts arise, use the following to rebase: | |||
`git pull --rebase upstream v6.x-staging` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we better use v6.x
in all the examples instead of v7.x
? The latter is in the maintenance phase, there will be hardly any backports for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄 just had the same idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
doc/STYLE_GUIDE.md
Outdated
@@ -40,8 +40,8 @@ | |||
* When documenting APIs, note the version the API was introduced in at | |||
the end of the section. If an API has been deprecated, also note the first | |||
version that the API appeared deprecated in. | |||
* When using dashes, use emdashes ("—", Option+Shift+"-" on macOS) surrounded by | |||
spaces, per the New York Times usage. | |||
* When using dashes, use [emdashes][] ("—" or `Option+Shift+"-"` on macOS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
* After creating the branch, apply the changes to the branch. The cherry-pick | ||
will likely fail due to conflicts. In that case, you will see something this: | ||
4. After creating the branch, apply the changes to the branch. The cherry-pick | ||
will likely fail due to conflicts. In that case, you will see something this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
9. Open a pull request: | ||
1. Be sure to target the `v7.x-staging` branch in the pull request. | ||
2. Include the backport target in the pull request title in the following | ||
format — `[v7.x backport] #<PR_NUMBER> - <commit title>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. No #PR NUMBER
Example: `[v7.x backport] #10157 - process: improve performance of nextTick` | ||
3. Check the checkbox labelled "Allow edits from maintainers". | ||
4. In the description add a reference to the original PR | ||
5. Run a [`node-test-pull-request`][] CI job (with `REBASE_UNTO` set to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
3. Check the checkbox labelled "Allow edits from maintainers". | ||
4. In the description add a reference to the original PR | ||
5. Run a [`node-test-pull-request`][] CI job (with `REBASE_UNTO` set to the | ||
default `<pr base barnch>`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
fcb21b9
to
e673666
Compare
@gibfahn @vsemozhetbyt PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I think this also needs to be reviewed by some collaborators that bear LTS releases.
@addaleax @MylesBorins You've been requesting backports, PTAL?... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for doing this @refack
* also update STYLE_GUIDE comment about Em dashes PR-URL: nodejs#13749 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
e673666
to
e3ea0fc
Compare
* also update STYLE_GUIDE comment about Em dashes PR-URL: #13749 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
* also update STYLE_GUIDE comment about Em dashes PR-URL: #13749 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
doc