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

doc: update backporting guide #13749

Merged
merged 1 commit into from
Jun 23, 2017

Conversation

refack
Copy link
Contributor

@refack refack commented Jun 17, 2017

  • also update STYLE_GUIDE comment about emdashes
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Jun 17, 2017
@@ -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
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

@refack refack force-pushed the backport-guide-learing-by-editing branch from 372f293 to 0312e28 Compare June 17, 2017 20:38
@mscdex mscdex added the meta Issues and PRs related to the general management of the project. label Jun 17, 2017
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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

Copy link
Member

@gibfahn gibfahn left a 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 |
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v8.x -> vN.x

Copy link
Contributor Author

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

(v4.xandv6.x as of March 2017) -> (see the [LTS Plan][]) and then remove Please see the [LTS Plan][] for more information. from the next line.

Copy link
Contributor Author

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.
Copy link
Member

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

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

referance -> reference

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAck. It's an MD feature:
image

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`.
Copy link
Member

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.

Copy link
Contributor Author

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.
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no Idea, just reformatted from previous text.
Maybe this alludes to the case when the cherry-pick had conflicts that had to be manually resolved.
Or cases like #13750 where I had to add unrelated code i.e. d429bc6

Copy link
Contributor Author

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.
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still needs doing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAck. It's an MD feature:
image
(pasted this before in the wrong comment)

@refack
Copy link
Contributor Author

refack commented Jun 21, 2017

@gibfahn PTAL

Copy link
Member

@gibfahn gibfahn left a 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.
Copy link
Member

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
Copy link
Member

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

Copy link
Contributor Author

@refack refack left a 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>`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm asking to change the format of the titles from parans '(' to brackets '[' for personal reasons:
image
Green arrow is an issue with new comments
Red arrow is a backport PR

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack. No #PR NUMBER

@refack refack self-assigned this Jun 22, 2017
Copy link
Member

@gibfahn gibfahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More nits

@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emdashes -> Em dashes

Copy link
Contributor Author

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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this -> like this

Copy link
Contributor Author

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>`.
Copy link
Member

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>`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

barnch -> branch

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UNTO -> ONTO

Copy link
Contributor Author

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`
Copy link
Contributor

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.

Copy link
Contributor Author

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!

Copy link
Contributor Author

@refack refack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

@@ -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)
Copy link
Contributor Author

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:
Copy link
Contributor Author

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>`.
Copy link
Contributor Author

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
Copy link
Contributor Author

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>`)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

@refack refack force-pushed the backport-guide-learing-by-editing branch from fcb21b9 to e673666 Compare June 23, 2017 11:47
@refack
Copy link
Contributor Author

refack commented Jun 23, 2017

@gibfahn @vsemozhetbyt PTAL

Copy link
Contributor

@vsemozhetbyt vsemozhetbyt left a 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.

@refack
Copy link
Contributor Author

refack commented Jun 23, 2017

@addaleax @MylesBorins You've been requesting backports, PTAL?...

Copy link
Member

@gibfahn gibfahn left a 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>
@refack refack force-pushed the backport-guide-learing-by-editing branch from e673666 to e3ea0fc Compare June 23, 2017 19:24
@refack refack merged commit e3ea0fc into nodejs:master Jun 23, 2017
@addaleax addaleax mentioned this pull request Jun 24, 2017
addaleax pushed a commit that referenced this pull request Jun 24, 2017
* 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>
@addaleax addaleax mentioned this pull request Jun 24, 2017
@refack refack deleted the backport-guide-learing-by-editing branch July 2, 2017 02:34
MylesBorins pushed a commit that referenced this pull request Jul 17, 2017
* 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>
@MylesBorins MylesBorins mentioned this pull request Jul 18, 2017
@refack refack removed their assignment Oct 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. meta Issues and PRs related to the general management of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants