Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
04db9ef
stream: fix no data on partial decode
mscdex Feb 14, 2016
cd78ff9
doc: fix links in Addons docs
estliberitas Feb 4, 2016
67245fa
doc: clarify code of conduct reporting
juliepagano Feb 5, 2016
2ce83bd
http,util: fix typos in comments
estliberitas Feb 17, 2016
ebbc64b
doc: add "building node with ninja" guide
Fishrock123 Jan 19, 2016
d09b44f
doc: add Сковорода Никита Андреевич to the CTC
rvagg Feb 17, 2016
4e469d5
doc: add Ali Ijaz Sheikh to the CTC
rvagg Feb 17, 2016
a2a32b7
doc: add Rich Trott to the CTC
rvagg Feb 17, 2016
2964620
doc: add Evan Lucas to the CTC
rvagg Feb 17, 2016
04d16eb
doc: document fs.datasync(Sync)
Feb 24, 2016
3168e6b
doc: update V8 URL
strawbrary Mar 2, 2016
0e97a3e
win,build: support Visual C++ Build Tools 2015
joaocgreis Mar 9, 2016
b690916
lib: freelist: use .pop() for allocation
subzey Jan 26, 2016
470a9ca
doc: add onboarding resources
Fishrock123 Nov 9, 2015
17a7430
doc: add info to docs on how to submit docs patch
Sequoia Jan 8, 2016
dac4e64
build: add option to select VS version
greenjava Jan 12, 2016
7c3b844
src: return UV_EAI_NODATA on empty lookup
cjihrig Jan 15, 2016
fb5ba6b
stream: prevent object map change in ReadableState
evanlucas Jan 19, 2016
068b0cb
test: move cluster tests to parallel
Trott Jan 20, 2016
0830bb4
doc: clarify when writable.write callback is called
kevinoid Jan 22, 2016
b816044
buffer: remove duplicated code in fromObject
entertainyou Jan 29, 2016
6386f62
test: remove unneeded bind() and related comments
aayn Feb 1, 2016
242a65e
stream: prevent object map change in TransformState
evanlucas Feb 2, 2016
cc0e36f
string_decoder: fix performance regression
mscdex Feb 11, 2016
e7f45f0
repl: handle quotes within regexp literal
princejwesley Feb 6, 2016
ca17f91
doc: add note for binary safe string reading
Feb 9, 2016
b1d580c
doc: update removeListener behaviour
vaibhav93 Feb 12, 2016
46a5d51
build: skip msi build if WiX is not found
dimhotepus Feb 13, 2016
ca5d7a8
http: remove unnecessary check
mscdex Feb 15, 2016
f982632
http: remove old, confusing comment
mscdex Feb 15, 2016
1624d5b
doc: document base64url encoding support
tristanls Feb 15, 2016
ba5e0b6
doc: fix buf.readInt16LE output
chinedufn Feb 17, 2016
70c872c
doc: improve unhandledException doc copy
jasnell Feb 17, 2016
d7b81b5
deps: cherry-pick 2e4da65 from v8's 4.8 upstream
mhdawson Feb 17, 2016
b66d6b1
doc: improve httpVersionMajor / httpVersionMajor
JacksonTian Feb 18, 2016
d4cfc6f
doc: add missing property in cluster example
MrOutput Feb 18, 2016
38d4291
doc: fix typo in pbkdf2Sync code sample
mjcuva Feb 18, 2016
57b02e6
debugger: remove unneeded callback check
Trott Feb 19, 2016
5e6b760
tools: add Node.js-specific ESLint rules
Trott Feb 19, 2016
a39aacf
test: refactor test-dgram-udp4
santigimeno Feb 20, 2016
f242e62
test: remove flaky designation from fixed tests
Trott Feb 26, 2016
c86902d
test: mitigate flaky test-http-agent
Trott Feb 21, 2016
85f927a
test: prevent flakey test on pi2
trevnorris Mar 2, 2016
99269ff
test: increase timeouts on some unref timers tests
Fishrock123 Feb 21, 2016
6867bed
tools: enable additional lint rules
Trott Feb 22, 2016
901dbab
doc: fix relative links in net docs
evanlucas Feb 22, 2016
2b0c7ad
doc: fix links in tls, cluster docs
estliberitas Feb 19, 2016
d4b9f02
tools: apply custom buffer lint rule to /lib only
Trott Feb 22, 2016
b4fbe04
test: fix test-timers.reliability on OS X
Trott Feb 23, 2016
dff7091
url: group slashed protocols by protocol name
nettofarah Feb 23, 2016
97e95d0
crypto: PBKDF2 works with `int` not `ssize_t`
indutny Feb 23, 2016
d681bf2
test: fix flaky child-process-fork-regr-gh-2847
santigimeno Feb 24, 2016
03b20a7
benchmark: add benchmark for buf.compare()
Trott Feb 26, 2016
b4ef644
test: retry on known SmartOS bug
Trott Feb 26, 2016
1642078
doc: fix crypto function indentation level
mscdex Feb 26, 2016
d4a1fc7
doc: add Testing WG
Trott Feb 26, 2016
4aa2c03
test: increase timeout for test-tls-fast-writing
Trott Feb 28, 2016
ba9ad26
test: apply Linux workaround to Linux only
Trott Feb 28, 2016
97a18bd
doc: update NAN urls in ROADMAP.md and doc/releases.md
ronkorving Feb 28, 2016
d871ae2
doc: fix typo in child_process documentation
evanlucas Feb 28, 2016
1afab6a
doc: add clarification on birthtime in fs stat
kthelgason Feb 28, 2016
131ed49
tools: enable no-extra-parens in ESLint
Trott Mar 1, 2016
4990dda
build: remove --quiet from eslint invocation
Mar 2, 2016
1165ecc
build: update Node.js logo on Win installer
eljefedelrodeodeljefe Mar 2, 2016
7a0fcfc
test: remove broken debugger scenarios
Trott Mar 2, 2016
063f22f
test: check memoryUsage properties The properties on memoryUsage were…
geek Mar 3, 2016
04d3f8a
doc: update link green to match homepage
silverwind Mar 3, 2016
64d5752
tools: enable no-self-assign ESLint rule
Trott Mar 3, 2016
9058fc0
build: correctly detect clang version
Mar 3, 2016
98a1bb6
doc: document directories in test directory
mike182uk Mar 3, 2016
1faea43
doc: fix typo in fs.symlink
targos Mar 4, 2016
deec8bc
tools: reduce verbosity of cpplint
thefourtheye Mar 6, 2016
13a8bde
doc: fix dns.resolveCname description typo
axvm Mar 9, 2016
38d7b0b
docs: update link to iojs+release ci job
Mar 9, 2016
b1b17ef
doc: move build instructions to a new document
jbergstroem Mar 9, 2016
cae5da2
doc: fix markdown links
stevemao Mar 10, 2016
5176346
doc: include typo in 'unhandledRejection' example
r1b Mar 11, 2016
2d5527f
doc: add mattloring to collaborators
Mar 11, 2016
3f71864
doc: add phillipj to collaborators
phillipj Mar 11, 2016
e5f254d
doc: add benjamingr to collaborator list
benjamingr Mar 11, 2016
eec3008
doc: add whitlockjc to collaborators
whitlockjc Mar 11, 2016
39c7d8a
doc: add AndreasMadsen to collaborators
AndreasMadsen Mar 11, 2016
0a6e883
doc: add thekemkid to collaborators
GlenTiki Mar 11, 2016
4c92316
doc: add fansworld-claudio to collaborators
claudiorodriguez Mar 11, 2016
c6dc561
doc: remove non-standard use of hyphens
svozza Mar 12, 2016
07e71b2
doc: fix typo in api/addons
watilde Mar 13, 2016
f6d4982
doc: clarify type of first argument in zlib
fanatid Mar 13, 2016
daf3ef6
doc: explain path.format() algorithm
Trott Mar 13, 2016
a673c9a
tls: fix assert in context._external accessor
bnoordhuis Mar 2, 2016
2053995
docs: fix man pages link if tok type is code
mithun-daa Mar 15, 2016
e572542
doc: Add note about use of JSON.stringify()
mithun-daa Mar 15, 2016
4332f80
doc: fix return value of write methods
fb55 Mar 16, 2016
a1772dc
build: update Node.js logo on OSX installer
rvagg Feb 24, 2016
d53dcc5
doc: update fansworld-claudio username on README
claudiorodriguez Mar 13, 2016
7a10fd3
collaborator_guide: clarify commit message rules
geek Mar 11, 2016
1e877f1
doc: fix typo in child_process docs
benjamingr Mar 13, 2016
bb423bb
doc: update release tweet template
Fishrock123 Mar 9, 2016
0943001
doc: fix invalid path doc comments
Trott Mar 11, 2016
ddac368
benchmark: fix lint errors
Trott Mar 2, 2016
6dc49ae
tools,benchmark: increase lint compliance
Trott Feb 25, 2016
4be2065
benchmark: refactor to eliminate redeclared vars
Trott Feb 28, 2016
c901741
benchmark: use strict mode
Trott Feb 20, 2016
df283f8
benchmark: fix linting issues
Trott Mar 17, 2016
10ec1d2
tools: enable linting for benchmarks
Trott Mar 17, 2016
7501ddc
tools: support testing known issues
cjihrig Mar 2, 2016
9952bcf
test: bug repro for vm function redefinition
cjihrig Mar 2, 2016
4b6a8f4
tools: update gyp to b3cef02
Oct 19, 2015
8ffef48
tools: fix gyp to work on MacOSX without XCode
Feb 10, 2015
666d369
test: eval a strict function
kthelgason Feb 15, 2016
5f54bd2
doc: topic blocking vs non-blocking
jrit Feb 19, 2016
067ce9b
build: don't install github templates
jbergstroem Mar 9, 2016
19ae308
deps: update openssl config
Mar 6, 2016
1e05f37
doc: fix typo in synchronous randomBytes example
WebReflection Mar 18, 2016
5368455
2016-03-22, Version v4.4.1 'Argon' (LTS)
Mar 21, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: add onboarding resources
PR-URL: #3726
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Fishrock123 authored and Myles Borins committed Mar 21, 2016
commit 470a9ca909ae5b2112a0a9d81c6c9cd74be0436f
105 changes: 105 additions & 0 deletions doc/onboarding-extras.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
## Who to CC in issues

* `lib/buffer`: @trevnorris
* `lib/child_process`: @cjihrig, @bnoordhuis, @piscisaereus
* `lib/cluster`: @cjihrig, @bnoordhuis, @piscisaereus
* `lib/{crypto,tls,https}`: @indutny, @shigeki, @nodejs/crypto
* `lib/domains`: @misterdjules
* `lib/{_}http{*}`: @indutny, @bnoordhuis, @nodejs/http
* `lib/net`: @indutny, @bnoordhuis, @piscisaereus, @chrisdickinson, @nodejs/streams
* `lib/{_}stream{s|*}`: @nodejs/streams
* `lib/repl`: @fishrock123
* `lib/timers`: @fishrock123, @misterdjules
* `lib/zlib`: @indutny, @bnoordhuis

* `src/async-wrap.*`: @trevnorris
* `src/node_crypto.*`: @indutny, @shigeki, @nodejs/crypto

* `test/*`: @nodejs/testing, @trott

* `tools/eslint`, `.eslintrc`: @silverwind, @trott

* upgrading v8: @bnoordhuis / @targos / @ofrobots
* upgrading npm: @thealphanerd, @fishrock123


When things need extra attention, are controversial, or `semver-major`: @nodejs/ctc

If you cannot find who to cc for a file, `git shortlog -n -s <file>` may help.


## Labels

### By Subsystem

We generally sort issues by a concept of "subsystem" so that we know what part(s) of the codebase it touches.

**Subsystems generally are**:

* `lib/*.js`
* `doc`, `build`, `tools`, `test`, `deps`, `lib / src` (special), and there may be others.
* `meta` for anything non-code (process) related

There may be more than one subsystem valid for any particular issue / PR.


### General

Please use these when possible / appropriate

* `confirmed-bug` - Bugs you have verified exist
* `discuss` - Things that need larger discussion
* `feature request` - Any issue that requests a new feature (usually not PRs)
* `good first contribution` - Issues suitable for newcomers to process

* `semver-{minor,major}`
* be conservative – that is, if a change has the remote *chance* of breaking something, go for semver-major
* when adding a semver label, add a comment explaining why you're adding it
* minor vs. patch: roughly: "does it add a new method / does it add a new section to the docs"
* major vs. everything else: run last versions tests against this version, if they pass, **probably** minor or patch
* A breaking change helper ([full source](https://gist.github.com/chrisdickinson/ba532fa0e4e243fb7b44)):
```
git checkout $(git show -s --pretty='%T' $(git show-ref -d $(git describe --abbrev=0) | tail -n1 | awk '{print $1}')) -- test; make -j8 test
```


### Other Labels

* Operating system labels
* `os x`, `windows`, `solaris`
* No linux, linux is the implied default
* Architecture labels
* `arm`, `mips`
* No x86{_64}, since that is the implied default
* `lts-agenda`, `lts-watch-v*`
* tag things that should be discussed to go into LTS or should go into a specific LTS branch
* (usually only semver-patch things)
* will come more naturally over time


## Updating Node.js from Upstream

* `git remote add upstream git://github.com/nodejs/node.git`

to update from nodejs/node:
* `git checkout master`
* `git remote update -p` OR `git fetch --all` (I prefer the former)
* `git merge --ff-only upstream/master` (or `REMOTENAME/BRANCH`)


## If `git am` fails

* if `git am` fails – use `git am --abort`
* this usually means the PR needs updated
* prefer to make the originating user update the code, since they have it fresh in mind
* first, reattempt with `git am -3` (3-way merge)`
* if `-3` still fails, and you need to get it merged:
* `git fetch origin pull/N/head:pr-N && git checkout pr-N && git rebase master`


## best practices

* commit often, out to your github fork (origin), open a PR
* when making PRs make sure to spend time on the description:
* every moment you spend writing a good description quarters the amount of time it takes to understand your code.
* usually prefer to only squash at the *end* of your work, depends on the change
199 changes: 199 additions & 0 deletions doc/onboarding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
## pre-setup

Ensure everyone is added to https://github.com/orgs/nodejs/teams/collaborators


## onboarding to nodejs

### intros


### **thank you** for doing this

* going to cover four things:
* local setup
* some project goals & values
* issues, labels, and reviewing code
* merging code


### setup:

* notifications setup
* use https://github.com/notifications or set up email
* watching the main repo will flood your inbox, so be prepared


* git:
* make sure you have whitespace=fix: `git config --global --add core.whitespace fix`
* usually PR from your own github fork
* [**See "Updating Node.js from Upstream"**](./onboarding-extras.md#updating-nodejs-from-upstream)
* make new branches for all commits you make!


* `#node-dev` on `chat.freenode.net` is the best place to interact with the CTC / other collaborators


### a little deeper about the project

* collaborators are effectively part owners
* the project has the goals of its contributors


* but, there are some higher-level goals and values
* not everything belongs in core (if it can be done reasonably in userland, let it stay in userland)
* empathy towards users matters (this is in part why we onboard people)
* generally: try to be nice to people


### managing the issue tracker

* you have (mostly) free rein – don't hesitate to close an issue if you are confident that it should be closed
* this will come more naturally over time
* IMPORTANT: be nice about closing issues, let people know why, and that issues and PRs can be reopened if necessary
* Still need to follow the Code of Conduct.


* labels:
* generally sort issues by a concept of "subsystem" so that we know what part(s) of the codebase it touches, though there are also other useful labels.
* [**See "Labels"**](./onboarding-extras.md#labels)
* `ctc-agenda` if a topic is controversial or isn't coming to a conclusion after an extended time.
* `semver-{minor,major}`:
* be conservative – that is, if a change has the remote *chance* of breaking something, go for `semver-major`
* when adding a semver label, add a comment explaining why you're adding it
* it's cached locally in your brain at that moment!


* Notifying humans
* [**See "Who to CC in issues"**](./onboarding-extras.md#who-to-cc-in-issues)
* will also come more naturally over time


* reviewing:
* primary goal is for the codebase to improve
* secondary (but not far off) is for the person submitting code to succeed
* helps grow the community
* and draws new people into the project
* Review a bit at a time. It is **very important** to not overwhelm newer people.
* it is tempting to micro-optimize / make everything about relative perf,
don't succumb to that temptation. we change v8 a lot more often now, contortions
that are zippy today may be unnecessary in the future
* be aware: your opinion carries a lot of weight!
* nits are fine, but try to avoid stalling the PR
* note that they are nits when you comment
* if they really are stalling nits, fix them yourself on merge (but try to let PR authors know they can fix these)
* improvement doesn't have to come all at once
* minimum wait for comments time
* There is a minimum waiting time which we try to respect for non-trivial changes, so that people who may have important input in such a distributed project are able to respond.
* It may help to set time limits and expectations:
* the collaborators are very distributed so it is unlikely that they will be looking at stuff the same time as you are.
* before merging code: give folks at least one working day to respond: "If no one objects, tomorrow at <time> I'll merge this in."
* please always either specify your timezone, or use UTC time
* set reminders
* check in on the code every once in a while (set reminders!)
* 48 hours for non-trivial changes, and 72 hours on weekends.
* if a PR is abandoned, check if they'd mind if you took it over (especially if it just has nits left)
* you have the power to `LGTM` another collaborator or TSC / CTC members' work


* what belongs in node:
* opinions vary, but I find the following helpful:
* if node itself needs it (due to historic reasons), then it belongs in node
* that is to say, url is there because of http, freelist is there because of http, et al
* also, things that cannot be done outside of core, or only with significant pain (example: async-wrap)


* CI testing:
* lives here: https://ci.nodejs.org/
* not automatically run - some of the platforms we test do not have full sandboxing support so we need to ensure what we run on it isn't potentially malicious
* make sure to log in – we use github authentication so it should be seamless
* go to "node-test-pull-request" and "Build with parameters"
* fill in the pull request number without the `#`, and check the verification that you have reviewed the code for potential malice
* The other options shouldn't need to be adjusted in most cases.
* link to the CI run in the PR by commenting "CI: <ci run link>"


### process for getting code in:

* the collaborator guide is a great resource: https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md#technical-howto


* no one (including TSC or CTC members) pushes directly to master without review
* an exception is made for release commits only


* one "LGTM" is usually sufficient, except for semver-major changes
* the more the better
* semver-major (breaking) changes must be reviewed in some form by the CTC


* be sure to wait before merging non-trivial changes
* 48 hours for non-trivial changes, and 72 hours on weekends.


* **make sure to run the PR through CI before merging!** (Except for documentation PRs)


* once code is ready to go in:
* [**See "Landing PRs"**](#landing-prs) below


* what if something goes wrong?
* ping a CTC member
* `#node-dev` on freenode
* force-pushing to fix things after is allowed for ~10 minutes, be sure to notify people in IRC if you need to do this, but avoid it
* Info on PRs that don't like to apply found under [**"If `git am` fails"**](./onboarding-extras.md#if-git-am-fails).


### Landing PRs

* Please never use GitHub's green "Merge Pull Request" button.
* If you do, please force-push removing the merge.

Update your `master` branch (or whichever branch you are landing on, almost always `master`)

* [**See "Updating Node.js from Upstream"**](./onboarding-extras.md#updating-nodejs-from-upstream)

Landing a PR

* if it all looks good, `curl -L 'url-of-pr.patch' | git am`
* `git rebase -i upstream/master`
* squash into logical commits if necessary
* `./configure && make -j8 test` (`-j8` builds node in parallel with 8 threads. adjust to the number of cores (or processor-level threads) your processor has (or slightly more) for best results.)
* Amend the commit description
* commits should follow `subsystem[,subsystem]: small description\n\nbig description\n\n<metadata>`
* first line 50 columns, all others 72
* add metadata:
* `Fixes: <full-issue-url>`
* `Reviewed-By: human <email>`
* Easiest to use `git log` then do a search
* (`/Name` + `enter` (+ `n` as much as you need to) in vim)
* `PR-URL: <full-pr-url>`
* `git push upstream master`
* close the original PR with "Landed in `<commit hash>`".


### exercise: make PRs adding yourselves to the README.

* Example: https://github.com/nodejs/node/commit/7b09aade8468e1c930f36b9c81e6ac2ed5bc8732
* to see full URL: `git log 7b09aade8468e1c930f36b9c81e6ac2ed5bc8732 -1`
* Collaborators in alphabetical order by username
* Label your pull request with the `doc` subsystem label
* If you would like to run CI on your PR, feel free to
* Make sure to added the `PR-URL: <full-pr-url>`!


### final notes:

* don't worry about making mistakes: everybody makes them, there's a lot to internalize and that takes time (and we recognize that!)
* very few (no?) mistakes are unrecoverable
* the existing node committers trust you and are grateful for your help!
* other repos:
* https://github.com/nodejs/dev-policy
* https://github.com/nodejs/NG
* https://github.com/nodejs/api
* https://github.com/nodejs/build
* https://github.com/nodejs/docs
* https://github.com/nodejs/nodejs.org
* https://github.com/nodejs/readable-stream
* https://github.com/nodejs/LTS