GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — doc: clarify the review and landing process by joyeecheung · Pull Request #10202 · nodejs/node Conversation
|
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't think "stands for" is the right wording. That makes it sound like 'nits' is an acronym, which it isn't.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing this out. I'm not a native speaker so this is really helpful. Does "means" sounds better?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would sound better.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the description is quite accurate. IMHO nits are just minor issues, whether the changes needed to address the minor issue are large or small is irrelevant. For example, comment typos for a PR that changes code would probably be considered a nit especially because comments don't affect the code, but it could be there are a lot of typos to fix or just one.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. I copied this phrase from the onboarding guide, maybe that one needs to be more accurate too?
How does "request for changes that are not essential" sound?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That sounds better I think.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It might be worth also noting Github's PR review mechanism too if we want to advocate its usage.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Does adding a link to the video tutorial(https://www.youtube.com/watch?v=HW0RPaJqm4g) and the documentation(https://help.github.com/articles/reviewing-changes-in-pull-requests/) suffice?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That might be a good start.
I think we may want to add some text about the validity of approvals (either via 'LGTM' or Github's PR review) after changes were made since the approval. For example, when someone approves a PR using Github's mechanism, it will still show "Approved" even after someone pushes more changes after that approval is made, which can be misleading (at least at first glance).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Notes added. Thanks for the suggestion!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The indentation is off here and possibly other places below.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Thanks for pointing this out.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This isn't actually true, the commit history of your PR is available until you delete your fork branch, at which point it disappears.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing this out. Maybe "The commit history of your Pull Request, however, will stay intact on the Pull Request page(as long as you don't delete your fork branch, at which point it disappears)." is more accurate?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The commits won't necessarily be squashed into one commit per PR, they'll be squashed into one commit per logical change (it's hard to specify what a logical change is).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hmmm..maybe suggesting the new contributors checkout the previous commits to have an idea about the size of a logical change? Or a link to a specific example(preferably one with lib, src, doc, test changes but is still one logical change)?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this one could be a good example. #2921 Although it's two logical changes.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ooops, strike that, that one landed as two commits too. I will try to dig up a better example(any help would be appreciated!).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
OK, I think this commit 0b5191f could be a good example. There are a lot of lines changed, but it's still one logical change.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
links to the pull request and relevant issues
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I will add this to the sentence.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Collaborator? Also, collaborators can use GitHub's Approve button.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Do you mean this should be singular? I will add a phrase mentioning the Approve button, thanks
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- Explains what "nits" stand for - Explains commit squashing - Mentions the CI run - Mentions the mandatory 48/72 hours wait - Mention GitHub's PR review feature - Fix indentation
a248e7d to
cc22d35
Compare
|
@thefourtheye Thank you for the review, I've updated the changes, PTAL. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- Mention the "landed in <sha>" comment when a PR gets landed
There was an error while loading. Please reload this page.
|
I have read this one more time, and I think the comment "landed in <sha>" used by collaborators when a PR gets landed should be mentioned as well. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
023d78e to
86d6d7b
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@addaleax (in reply to #10202 (comment)) which I can't reply to for some reason: You're right, looking at #71 (where Ben deleted his branch 2 years ago) the commit history is still there. So deleting your branch is fine, my mistake! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to improve this. LGTM with a suggestion!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| In order to get landed, a Pull Request needs to be reviewed and | ||
| [approved](#getting-approvals-for-your-pull-request) by | ||
| at least one Node.js Collaborator. If the Pull Request touches | ||
| more than the documentation, then it also need to pass a |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My only concern with this is the addon tests are actually generated by the documentation. I do recall a time where our test suite was broken due to addon docs being changed and merged without the CI being run. Maybe worth mentioning?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
TBH I feel that it's worth running the CI even on doc changes, otherwise there's no record that the linter was run. I know that collaborators are supposed to run make lint as part of the landing process, but that inevitably doesn't always happen, and it has caused issues in the past.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oh, I didn't know about this! Thanks for the explanation, maybe I should also remind new contributors about this in the Step 5: Test section? So is it like:
addons.md, you need to run make -j8 testmake lintIs there anything else that can be added to this list?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
make -j4 test does run the addons tests, and we currently tell everyone to run that on their PR. I'd prefer just leaving it like that, we don't want to be telling people that they don't need to run the full test suite (they'll work that out for themselves).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
So the instructions here should be something like "as long as you touch the code snippets inside the documentation, you need to run make test"? Or just leave out the documentation part and state that every PR, including doc PR, needs to pass tests?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@joyeecheung So currently in the guide it says that:
Make sure the linter is happy and that all tests pass. Please, do not submit patches that fail either check.
I think that this sentence is sufficient, it says that you should always make sure the tests and linter pass.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
So for this part that we are commenting on, I will just change this back to "..and pass a CI test run". Maybe I can add some notes at the end to remind people of the needs of running tests for changes to doc? Just feeling odd to let this practice go undocumented.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Well, what is currently documented is that you should always run make -j4 test no matter what, which is strictly correct. What isn't documented is that in practice you can sometimes get away with just running the linter (or the specific test you changed). That's not something we really want to encourage, especially as it's a tricky issue (some doc changes do need make test, some test changes do need make test). Documenting something is effectively legitimising it, which I (personally) don't think we want to do.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see your point, but what I meant was to stress that doc PR needs to pass the tests too (and possibly explain why , or not if that expose too much details). I didn't mean to remind people that there is a way to skip the tests. Because I think the previous section is not very clear about doc PR needs tests too. After all it could be unexpected to new comers that you need to set up the whole compiler tool chain to get some markdown changes pass the review. But they do need to, so a heads up could be nice.
That said, since in practice this could be flexible, I think I can leave this as-is. Thank you for the clarification!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is there anything speaking against landing this in the next 1 or 2 days? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've updated this PR according to the last few discussions.
PTAL. If these updates are OK then I think there are no more changes to address. Thank you everyone for reviewing this! :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5ed2ccb to
82c2f76
Compare
82c2f76 to
246f52a
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM, thanks for sticking with this! Should make a big difference to people's experience getting started contributing.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ### CI Testing | ||
|
|
||
| Every Pull Request needs to be tested | ||
| to make sure the it works on the platforms that Node.js |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
make sure that it
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks for spotting this one :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ping. Is there anything that needs to be addressed? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| A Pull Request needs to stay open for at least 48 hours (72 hours on a | ||
| weekend) from when it is submitted, even after it gets approved and | ||
| passes the CI. This is to make sure that everyone has a chance to |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Microscopic nit: There is a trailing space at the end of this line.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should have trimmed the spaces :P. Addressed. Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 44b38bb Thanks a lot @joyeecheung |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.