| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
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 a problem hiding this comment.
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 a problem hiding this comment.
Yes, that would sound better.
Sorry, something went wrong.
There was a problem hiding this comment.
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 a problem hiding this comment.
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 a problem hiding this comment.
That sounds better I think.
Sorry, something went wrong.
There was a problem hiding this comment.
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 a problem hiding this comment.
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 a problem hiding this comment.
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 a problem hiding this comment.
Notes added. Thanks for the suggestion!
Sorry, something went wrong.
There was a problem hiding this comment.
The indentation is off here and possibly other places below.
Sorry, something went wrong.
There was a problem hiding this comment.
Addressed. Thanks for pointing this out.
Sorry, something went wrong.
There was a problem hiding this comment.
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 a problem hiding this comment.
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 a problem hiding this comment.
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 a problem hiding this comment.
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 a problem hiding this comment.
I think this one could be a good example. #2921 Although it's two logical changes.
Sorry, something went wrong.
There was a problem hiding this comment.
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 a problem hiding this comment.
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.
Sorry, something went wrong.
There was a problem hiding this comment.
links to the pull request and relevant issues
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks, I will add this to the sentence.
Sorry, something went wrong.
There was a problem hiding this comment.
Collaborator? Also, collaborators can use GitHub's Approve button.
Sorry, something went wrong.
There was a problem hiding this comment.
Do you mean this should be singular? I will add a phrase mentioning the Approve button, thanks
Sorry, something went wrong.
- 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
|
@thefourtheye Thank you for the review, I've updated the changes, PTAL. |
Sorry, something went wrong.
- Mention the "landed in <sha>" comment when a PR gets landed
|
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.
Sorry, something went wrong.
|
@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 a problem hiding this comment.
Thanks for taking the time to improve this. LGTM with a suggestion!
Sorry, something went wrong.
| 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.
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 a problem hiding this comment.
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 a problem hiding this comment.
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:
Is there anything else that can be added to this list?
Sorry, something went wrong.
There was a problem hiding this comment.
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 a problem hiding this comment.
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 a problem hiding this comment.
@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 a problem hiding this comment.
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 a problem hiding this comment.
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 a problem hiding this comment.
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.
|
Is there anything speaking against landing this in the next 1 or 2 days? |
Sorry, something went wrong.
|
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 a problem hiding this comment.
Still LGTM, thanks for sticking with this! Should make a big difference to people's experience getting started contributing.
Sorry, something went wrong.
| ### CI Testing | ||
|
|
||
| Every Pull Request needs to be tested | ||
| to make sure the it works on the platforms that Node.js |
There was a problem hiding this comment.
make sure that it
Sorry, something went wrong.
There was a problem hiding this comment.
Fixed. Thanks for spotting this one :)
Sorry, something went wrong.
|
Ping. Is there anything that needs to be addressed? |
Sorry, something went wrong.
|
|
||
| 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.
Microscopic nit: There is a trailing space at the end of this line.
Sorry, something went wrong.
There was a problem hiding this comment.
Should have trimmed the spaces :P. Addressed. Thanks!
Sorry, something went wrong.
There was a problem hiding this comment.
Still LGTM
Sorry, something went wrong.
|
Landed in 44b38bb Thanks a lot @joyeecheung |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
doc
Description of change
A few process-related details are only explained in the onboarding guide and the collaborator's guide. Mentioning them in the contributing guide as well can avoid confusions to new contributors.
This is based on my previous experience, but I am still a new contributor myself, so feel free to correct me if my understanding is not the case!
Ref: #10151