2016-08-10 22:51:14 +00:00
|
|
|
|
# Onboarding
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2016-08-10 22:51:14 +00:00
|
|
|
|
This document is an outline of the things we tell new Collaborators at their
|
|
|
|
|
onboarding session.
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2016-09-25 21:48:59 +00:00
|
|
|
|
## One week before the onboarding session
|
|
|
|
|
|
2018-02-24 00:29:45 +00:00
|
|
|
|
* If the new Collaborator is not yet a member of the nodejs GitHub organization,
|
2018-03-03 12:32:01 +00:00
|
|
|
|
confirm that they are using [two-factor authentication][]. It will not be
|
|
|
|
|
possible to add them to the organization if they are not using two-factor
|
|
|
|
|
authentication. If they cannot receive SMS messages from GitHub, try
|
|
|
|
|
[using a TOTP mobile app][].
|
2018-01-20 13:09:17 +00:00
|
|
|
|
* Announce the accepted nomination in a TSC meeting and in the TSC
|
|
|
|
|
mailing list.
|
2018-03-03 12:32:01 +00:00
|
|
|
|
* Suggest the new Collaborator install [`node-core-utils`][] and
|
|
|
|
|
[set up the credentials][] for it.
|
2016-09-25 21:48:59 +00:00
|
|
|
|
|
|
|
|
|
## Fifteen minutes before the onboarding session
|
|
|
|
|
|
2016-12-30 00:16:37 +00:00
|
|
|
|
* Prior to the onboarding session, add the new Collaborator to
|
2018-02-20 05:55:35 +00:00
|
|
|
|
[the Collaborators team](https://github.com/orgs/nodejs/teams/collaborators).
|
2018-03-03 12:32:01 +00:00
|
|
|
|
* Ask them if they want to join any subsystem teams. See
|
2018-03-19 19:45:26 +00:00
|
|
|
|
[Who to CC in the issue tracker][who-to-cc].
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2016-11-15 17:47:58 +00:00
|
|
|
|
## Onboarding session
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2017-06-02 19:35:45 +00:00
|
|
|
|
* This session will cover:
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* [local setup](#local-setup)
|
|
|
|
|
* [project goals & values](#project-goals--values)
|
|
|
|
|
* [managing the issue tracker](#managing-the-issue-tracker)
|
|
|
|
|
* [reviewing PRs](#reviewing-prs)
|
|
|
|
|
* [landing PRs](#landing-prs)
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2016-11-15 17:47:58 +00:00
|
|
|
|
## Local setup
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* git:
|
|
|
|
|
* Make sure you have whitespace=fix: `git config --global --add
|
|
|
|
|
apply.whitespace fix`
|
2018-02-18 04:06:42 +00:00
|
|
|
|
* Always continue to PR from your own GitHub fork
|
|
|
|
|
* Branches in the `nodejs/node` repository are only for release lines
|
2018-05-30 03:15:41 +00:00
|
|
|
|
* Add the canonical nodejs repository as `upstream` remote:
|
|
|
|
|
* `git remote add upstream git://github.com/nodejs/node.git`
|
|
|
|
|
* To update from `upstream`:
|
|
|
|
|
* `git checkout master`
|
|
|
|
|
* `git remote update -p` OR `git fetch --all`
|
|
|
|
|
* `git merge --ff-only upstream/master` (or `REMOTENAME/BRANCH`)
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Make a new branch for each PR you submit.
|
|
|
|
|
* Membership: Consider making your membership in the Node.js GitHub
|
|
|
|
|
organization public. This makes it easier to identify Collaborators.
|
|
|
|
|
Instructions on how to do that are available at
|
|
|
|
|
[Publicizing or hiding organization membership][].
|
|
|
|
|
|
|
|
|
|
* Notifications:
|
|
|
|
|
* Use [https://github.com/notifications](https://github.com/notifications) or
|
|
|
|
|
set up email
|
|
|
|
|
* Watching the main repo will flood your inbox (several hundred notifications
|
|
|
|
|
on typical weekdays), so be prepared
|
|
|
|
|
|
|
|
|
|
* `#node-dev` on [webchat.freenode.net](https://webchat.freenode.net/) is the
|
|
|
|
|
best place to interact with the TSC / other Collaborators
|
|
|
|
|
* If there are any questions after the session, a good place to ask is there!
|
|
|
|
|
* Presence is not mandatory, but please drop a note there if force-pushing to
|
|
|
|
|
`master`
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2016-11-15 17:47:58 +00:00
|
|
|
|
## Project goals & values
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Collaborators are the collective owners of the project
|
|
|
|
|
* The project has the goals of its contributors
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* There are some higher-level goals and values
|
|
|
|
|
* Empathy towards users matters (this is in part why we onboard people)
|
|
|
|
|
* Generally: try to be nice to people!
|
|
|
|
|
* The best outcome is for people who come to our issue tracker to feel like
|
|
|
|
|
they can come back again.
|
2017-06-02 19:35:45 +00:00
|
|
|
|
|
2018-02-18 04:06:42 +00:00
|
|
|
|
* You are expected to follow *and* hold others accountable to the
|
|
|
|
|
[Code of Conduct][].
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2016-11-15 17:47:58 +00:00
|
|
|
|
## Managing the issue tracker
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* You have (mostly) free rein; don't hesitate to close an issue if you are
|
|
|
|
|
confident that it should be closed
|
|
|
|
|
* Be nice about closing issues! Let people know why, and that issues and PRs
|
|
|
|
|
can be reopened if necessary
|
|
|
|
|
|
|
|
|
|
* [**See "Labels"**](./onboarding-extras.md#labels)
|
|
|
|
|
* There is [a bot](https://github.com/nodejs-github-bot/github-bot) that
|
|
|
|
|
applies subsystem labels (for example, `doc`, `test`, `assert`, or `buffer`)
|
|
|
|
|
so that we know what parts of the code base the pull request modifies. It is
|
|
|
|
|
not perfect, of course. Feel free to apply relevant labels and remove
|
|
|
|
|
irrelevant labels from pull requests and issues.
|
|
|
|
|
* `semver-{minor,major}`:
|
|
|
|
|
* If a change has the remote *chance* of breaking something, use the
|
|
|
|
|
`semver-major` label
|
2018-02-18 04:06:42 +00:00
|
|
|
|
* When adding a `semver-*` label, add a comment explaining why you're adding
|
|
|
|
|
it. Do it right away so you don't forget!
|
2018-12-13 14:36:42 +00:00
|
|
|
|
* Please add the [`author-ready`][] label for PRs, if applicable.
|
2017-12-17 15:59:46 +00:00
|
|
|
|
|
2018-03-19 19:45:26 +00:00
|
|
|
|
* See [Who to CC in the issue tracker][who-to-cc].
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* This will come more naturally over time
|
|
|
|
|
* For many of the teams listed there, you can ask to be added if you are
|
|
|
|
|
interested
|
|
|
|
|
* Some are WGs with some process around adding people, others are only there
|
|
|
|
|
for notifications
|
|
|
|
|
|
|
|
|
|
* When a discussion gets heated, you can request that other Collaborators keep
|
|
|
|
|
an eye on it by opening an issue at the private
|
|
|
|
|
[nodejs/moderation](https://github.com/nodejs/moderation) repository.
|
|
|
|
|
* This is a repository to which all members of the `nodejs` GitHub
|
|
|
|
|
organization (not just Collaborators on Node.js core) have access. Its
|
|
|
|
|
contents should not be shared externally.
|
|
|
|
|
* You can find the full moderation policy
|
|
|
|
|
[here](https://github.com/nodejs/TSC/blob/master/Moderation-Policy.md).
|
2017-01-18 11:30:19 +00:00
|
|
|
|
|
2016-11-15 17:47:58 +00:00
|
|
|
|
## Reviewing PRs
|
2017-12-17 23:32:28 +00:00
|
|
|
|
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* The primary goal is for the codebase to improve.
|
|
|
|
|
* Secondary (but not far off) is for the person submitting code to succeed. A
|
2018-03-03 21:55:30 +00:00
|
|
|
|
pull request from a new contributor is an opportunity to grow the community.
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Review a bit at a time. Do not overwhelm new contributors.
|
2018-02-18 04:06:42 +00:00
|
|
|
|
* It is tempting to micro-optimize. Don't succumb to that temptation. We
|
2018-03-03 21:55:30 +00:00
|
|
|
|
change V8 often. Techniques that provide improved performance today may be
|
|
|
|
|
unnecessary in the future.
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Be aware: Your opinion carries a lot of weight!
|
|
|
|
|
* Nits (requests for small changes that are not essential) are fine, but try to
|
|
|
|
|
avoid stalling the pull request.
|
2019-06-20 19:25:25 +00:00
|
|
|
|
* Identify them as nits when you comment: `Nit: change foo() to bar().`
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* If they are stalling the pull request, fix them yourself on merge.
|
2017-12-25 22:27:33 +00:00
|
|
|
|
* Insofar as possible, issues should be identified by tools rather than human
|
|
|
|
|
reviewers. If you are leaving comments about issues that could be identified
|
|
|
|
|
by tools but are not, consider implementing the necessary tooling.
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Minimum wait for comments time
|
|
|
|
|
* There is a minimum waiting time which we try to respect for non-trivial
|
2018-03-03 21:55:30 +00:00
|
|
|
|
changes so that people who may have important input in such a distributed
|
|
|
|
|
project are able to respond.
|
2018-09-25 13:35:33 +00:00
|
|
|
|
* For non-trivial changes, leave the pull request open for at least 48 hours.
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* If a pull request is abandoned, check if they'd mind if you took it over
|
2018-03-03 21:55:30 +00:00
|
|
|
|
(especially if it just has nits left).
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Approving a change
|
|
|
|
|
* Collaborators indicate that they have reviewed and approve of the changes in
|
2018-06-15 22:34:00 +00:00
|
|
|
|
a pull request using GitHub’s approval interface
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Some people like to comment `LGTM` (“Looks Good To Me”)
|
|
|
|
|
* You have the authority to approve any other collaborator’s work.
|
|
|
|
|
* You cannot approve your own pull requests.
|
|
|
|
|
* When explicitly using `Changes requested`, show empathy – comments will
|
|
|
|
|
usually be addressed even if you don’t use it.
|
|
|
|
|
* If you do, it is nice if you are available later to check whether your
|
|
|
|
|
comments have been addressed
|
|
|
|
|
* If you see that the requested changes have been made, you can clear
|
|
|
|
|
another collaborator's `Changes requested` review.
|
|
|
|
|
* Use `Changes requested` to indicate that you are considering some of your
|
|
|
|
|
comments to block the PR from landing.
|
|
|
|
|
|
|
|
|
|
* What belongs in Node.js:
|
|
|
|
|
* Opinions vary – it’s good to have a broad collaborator base for that reason!
|
2018-02-18 04:06:42 +00:00
|
|
|
|
* If Node.js itself needs it (due to historical reasons), then it belongs in
|
|
|
|
|
Node.js.
|
|
|
|
|
* That is to say, `url` is there because of `http`, `freelist` is there
|
|
|
|
|
because of `http`, etc.
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Things that cannot be done outside of core, or only with significant pain
|
2018-02-18 04:06:42 +00:00
|
|
|
|
such as `async_hooks`.
|
2017-12-17 15:59:46 +00:00
|
|
|
|
|
|
|
|
|
* Continuous Integration (CI) Testing:
|
|
|
|
|
* [https://ci.nodejs.org/](https://ci.nodejs.org/)
|
|
|
|
|
* It is not automatically run. You need to start it manually.
|
|
|
|
|
* Log in on CI is integrated with GitHub. Try to log in now!
|
|
|
|
|
* You will be using `node-test-pull-request` most of the time. Go there now!
|
|
|
|
|
* Consider bookmarking it: https://ci.nodejs.org/job/node-test-pull-request/
|
|
|
|
|
* To get to the form to start a job, click on `Build with Parameters`. (If you
|
|
|
|
|
don't see it, that probably means you are not logged in!) Click it now!
|
|
|
|
|
* To start CI testing from this screen, you need to fill in two elements on
|
|
|
|
|
the form:
|
|
|
|
|
* The `CERTIFY_SAFE` box should be checked. By checking it, you are
|
|
|
|
|
indicating that you have reviewed the code you are about to test and you
|
|
|
|
|
are confident that it does not contain any malicious code. (We don't want
|
|
|
|
|
people hijacking our CI hosts to attack other hosts on the internet, for
|
|
|
|
|
example!)
|
|
|
|
|
* The `PR_ID` box should be filled in with the number identifying the pull
|
|
|
|
|
request containing the code you wish to test. For example, if the URL for
|
|
|
|
|
the pull request is `https://github.com/nodejs/node/issues/7006`, then put
|
|
|
|
|
`7006` in the `PR_ID`.
|
2018-05-30 12:37:40 +00:00
|
|
|
|
* The remaining elements on the form are typically unchanged.
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* If you need help with something CI-related:
|
|
|
|
|
* Use #node-dev (IRC) to talk to other Collaborators.
|
|
|
|
|
* Use #node-build (IRC) to talk to the Build WG members who maintain the CI
|
|
|
|
|
infrastructure.
|
|
|
|
|
* Use the [Build WG repo](https://github.com/nodejs/build) to file issues
|
|
|
|
|
for the Build WG members who maintain the CI infrastructure.
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2016-11-15 17:47:58 +00:00
|
|
|
|
## Landing PRs
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2018-03-03 12:32:01 +00:00
|
|
|
|
See the Collaborator Guide: [Landing Pull Requests][].
|
|
|
|
|
|
2019-06-20 19:25:25 +00:00
|
|
|
|
Commits in one PR that belong to one logical change should
|
2018-03-03 12:32:01 +00:00
|
|
|
|
be squashed. It is rarely the case in onboarding exercises, so this
|
|
|
|
|
needs to be pointed out separately during the onboarding.
|
|
|
|
|
|
|
|
|
|
<!-- TODO(joyeechueng): provide examples about "one logical change" -->
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2016-09-16 05:50:28 +00:00
|
|
|
|
## Exercise: Make a PR adding yourself to the README
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Example:
|
2018-06-15 22:35:03 +00:00
|
|
|
|
https://github.com/nodejs/node/commit/ce986de829457c39257cd205067602e765768fb0
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* For raw commit message: `git log ce986de829457c39257cd205067602e765768fb0
|
|
|
|
|
-1`
|
|
|
|
|
* Collaborators are in alphabetical order by GitHub username.
|
|
|
|
|
* Optionally, include your personal pronouns.
|
2018-10-06 22:36:08 +00:00
|
|
|
|
* Label your pull request with the `doc`, `notable-change`, and `fast-track`
|
|
|
|
|
labels.
|
2018-02-18 03:25:07 +00:00
|
|
|
|
* Run CI on the PR. Because the PR does not affect any code, use the
|
2018-07-25 21:37:57 +00:00
|
|
|
|
`node-test-pull-request-lite-pipeline` CI task.
|
2018-10-06 22:36:08 +00:00
|
|
|
|
* After two Collaborator approvals for the change and two Collaborator approvals
|
|
|
|
|
for fast-tracking, land the PR.
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Be sure to add the `PR-URL: <full-pr-url>` and appropriate `Reviewed-By:`
|
2018-01-20 13:38:24 +00:00
|
|
|
|
metadata.
|
|
|
|
|
* [`node-core-utils`][] automates the generation of metadata and the landing
|
|
|
|
|
process. See the documentation of [`git-node`][].
|
2018-03-03 12:32:01 +00:00
|
|
|
|
* [`core-validate-commit`][] automates the validation of commit messages.
|
|
|
|
|
This will be run during `git node land --final` of the [`git-node`][]
|
|
|
|
|
command.
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2016-11-15 17:47:58 +00:00
|
|
|
|
## Final notes
|
2015-11-09 22:52:43 +00:00
|
|
|
|
|
2017-12-17 15:59:46 +00:00
|
|
|
|
* Don't worry about making mistakes: everybody makes them, there's a lot to
|
|
|
|
|
internalize and that takes time (and we recognize that!)
|
|
|
|
|
* Almost any mistake you could make can be fixed or reverted.
|
|
|
|
|
* The existing Collaborators trust you and are grateful for your help!
|
|
|
|
|
* Other repositories:
|
|
|
|
|
* [https://github.com/nodejs/TSC](https://github.com/nodejs/TSC)
|
|
|
|
|
* [https://github.com/nodejs/build](https://github.com/nodejs/build)
|
|
|
|
|
* [https://github.com/nodejs/nodejs.org](https://github.com/nodejs/nodejs.org)
|
|
|
|
|
* [https://github.com/nodejs/readable-stream](https://github.com/nodejs/readable-stream)
|
|
|
|
|
* [https://github.com/nodejs/LTS](https://github.com/nodejs/LTS)
|
|
|
|
|
* [https://github.com/nodejs/citgm](https://github.com/nodejs/citgm)
|
|
|
|
|
* The Node.js Foundation hosts regular summits for active contributors to the
|
2018-02-18 04:06:42 +00:00
|
|
|
|
Node.js project, where we have face-to-face discussions about our work on the
|
|
|
|
|
project. The Foundation has travel funds to cover participants' expenses
|
|
|
|
|
including accommodations, transportation, visa fees, etc. if needed. Check out
|
2017-12-17 15:59:46 +00:00
|
|
|
|
the [summit](https://github.com/nodejs/summit) repository for details.
|
2017-06-02 19:35:45 +00:00
|
|
|
|
|
2017-10-23 23:37:43 +00:00
|
|
|
|
[Code of Conduct]: https://github.com/nodejs/admin/blob/master/CODE_OF_CONDUCT.md
|
2018-12-13 14:36:42 +00:00
|
|
|
|
[`author-ready`]: https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md#author-ready-pull-requests
|
2018-11-13 05:01:37 +00:00
|
|
|
|
[`core-validate-commit`]: https://github.com/nodejs/core-validate-commit
|
2018-03-03 12:32:01 +00:00
|
|
|
|
[`git-node`]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md
|
2017-11-13 00:29:27 +00:00
|
|
|
|
[`node-core-utils`]: https://github.com/nodejs/node-core-utils
|
2017-12-17 15:59:46 +00:00
|
|
|
|
[Landing Pull Requests]: https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md#landing-pull-requests
|
|
|
|
|
[Publicizing or hiding organization membership]: https://help.github.com/articles/publicizing-or-hiding-organization-membership/
|
2018-03-03 12:32:01 +00:00
|
|
|
|
[set up the credentials]: https://github.com/nodejs/node-core-utils#setting-up-credentials
|
|
|
|
|
[two-factor authentication]: https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/
|
|
|
|
|
[using a TOTP mobile app]: https://help.github.com/articles/configuring-two-factor-authentication-via-a-totp-mobile-app/
|
2018-03-19 19:45:26 +00:00
|
|
|
|
[who-to-cc]: ../COLLABORATOR_GUIDE.md#who-to-cc-in-the-issue-tracker
|