Anna Henningsen
6dffd6b3de
src: make Environment::interrupt_data_ atomic
...
Otherwise this potentially leads to race conditions when used in a
multi-threaded environment (i.e. when used for its very purpose).
PR-URL: https://github.com/nodejs/node/pull/32523
Reviewed-By: Matheus Marchini <mat@mmarchini.me >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-14 11:03:51 +01:00
himself65
89df2ebccb
perf_hooks: allow omitted parameters in 'performance.measure'
...
Make `startMark` and `endMark` parameters optional.
PR-URL: https://github.com/nodejs/node/pull/32651
Fixes: https://github.com/nodejs/node/issues/32647
Refs: https://www.w3.org/TR/user-timing-2/#measure-method
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-14 11:03:43 +01:00
Jesus Hernandez
b69ac886a1
lib: removes unnecessary params
...
PR-URL: https://github.com/nodejs/node/pull/32694
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
2020-04-14 11:03:43 +01:00
Rich Trott
791aa933a6
build: fix LINT_MD_NEWER assignment
...
Indentation with a tab breaks the functionality, resulting in linting
all .md files when any one is changed. For consistency with the rest of
the Makefile and to restore functionality, remove indentation.
Refs: https://github.com/nodejs/node/pull/32614#issuecomment-610670779
PR-URL: https://github.com/nodejs/node/pull/32712
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-04-14 11:03:43 +01:00
Rich Trott
f4d595e48e
build: remove .txt files from .gitignore
...
Refs: https://github.com/nodejs/node/pull/32670#issuecomment-609498003
PR-URL: https://github.com/nodejs/node/pull/32710
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2020-04-14 11:03:42 +01:00
Anna Henningsen
34b6ebc70b
deps: fix zlib compilation for CPUs without SIMD features
...
Fix the compile flags so that zlib can run on CPUs that do
not have SSSE3/SSE4.2/etc. Do not compile zlib with flags that
indicate that those features are available, and instead enable
them selectively for functions that use them.
There are probably better way to do this, e.g. through gyp file
modifications as suggested in the issue. However, this patch
should do just fine until that happens.
Fixes: https://github.com/nodejs/node/issues/32553
PR-URL: https://github.com/nodejs/node/pull/32627
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-14 11:03:42 +01:00
Agustin Daguerre
25656109db
test: replace console.log/error with debuglog
...
Use utility debug logs instead of console logs
in test-cluster-setup-master-multiple.js
Refs: https://github.com/nodejs/node/issues/32678
PR-URL: https://github.com/nodejs/node/pull/32695
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
2020-04-14 11:03:42 +01:00
Richard Lau
d2c0800596
build: log detected compilers in --verbose mode
...
Log the versions of the detected compilers when the configure script
is run with `--verbose` to help verify which compiler is being used if
multiple toolchains are installed on the system.
Signed-off-by: Richard Lau <riclau@uk.ibm.com >
PR-URL: https://github.com/nodejs/node/pull/32715
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-04-14 11:03:32 +01:00
Gabriel Schulhof
45676be3dc
n-api: detect deadlocks in thread-safe function
...
We introduce status `napi_would_deadlock` to be used as a return status
by `napi_call_threadsafe_function` if the call is made with
`napi_tsfn_blocking` on the main thread and the queue is full.
PR-URL: https://github.com/nodejs/node/pull/32689
Fixes: https://github.com/nodejs/node/issues/32615
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2020-04-14 11:03:32 +01:00
gengjiawen
e7352f519a
report: fix stderr matching for fatal error
...
PR-URL: https://github.com/nodejs/node/pull/32699
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Matheus Marchini <mat@mmarchini.me >
2020-04-14 11:03:32 +01:00
himself65
73bc7bd488
doc: add himself65 to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/32734
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-04-14 11:03:31 +01:00
Michael Dawson
1a782e80e3
doc: clarify behavior of napi_get_typedarray_info
...
Signed-off-by: Michael Dawson <michael_dawson@ca.ibm.com >
Fixes: https://github.com/nodejs/node/issues/32089
PR-URL: https://github.com/nodejs/node/pull/32603
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-04-14 11:03:31 +01:00
Shelley Vohr
fee8cb1c42
2020-04-08 Version 12.16.2 'Erbium' (LTS)
...
Notable changes:
doc:
* add ronag to collaborators (Robert Nagy) [#31498 ](https://github.com/nodejs/node/pull/31498 )
* add GeoffreyBooth to collaborators (Geoffrey Booth) [#31306 ](https://github.com/nodejs/node/pull/31306 )
deps:
* upgrade npm to 6.13.6 (Ruy Adorno) [#31304 ](https://github.com/nodejs/node/pull/31304 )
* update openssl to 1.1.1e (Hassaan Pasha) [#32328 ](https://github.com/nodejs/node/pull/32328 )
2020-04-14 11:03:31 +01:00
unknown
b7e7559a12
util: add maxStrLength option to inspect function
...
Refs: https://github.com/nodejs/node/issues/25478
PR-URL: https://github.com/nodejs/node/pull/32392
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Matheus Marchini <mat@mmarchini.me >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-14 11:03:31 +01:00
Beth Griggs
8d8095f2d1
2020-04-08, Version 10.20.0 'Dubnium' (LTS)
...
macOS package notarization and a change in builder configuration
The macOS binaries for this release, and future 10.x releases, are now
being compiled on macOS 10.15 (Catalina) with Xcode 11 to support
package notarization, a requirement for installing .pkg files on macOS
10.15 and later. Previous builds of Node.js 10.x were compiled on macOS
10.10 (Yosemite) with a minimum deployment target of macOS 10.7 (Lion).
As binaries are still being compiled to support a minimum of macOS 10.7
(Lion) we do not anticipate this having a negative impact on Node.js
10.x users with older versions of macOS.
Notable changes:
- buffer: add {read|write}Big\[U\]Int64{BE|LE} methods (garygsc)
[#19691 ](https://github.com/nodejs/node/pull/19691 )
- build: macOS package notarization (Rod Vagg)
[#31459 ](https://github.com/nodejs/node/pull/31459 )
- deps:
- update npm to 6.14.3 (Myles Borins)
[#32368 ](https://github.com/nodejs/node/pull/32368 )
- upgrade openssl sources to 1.1.1e (Hassaan Pasha)
[#32328 ](https://github.com/nodejs/node/pull/32328 )
- upgrade to libuv 1.34.2 (cjihrig)
[#31477 ](https://github.com/nodejs/node/pull/31477 )
- n-api:
- add napi\_get\_all\_property\_names (himself65)
[#30006 ](https://github.com/nodejs/node/pull/30006 )
- add APIs for per-instance state management (Gabriel Schulhof)
[#28682 ](https://github.com/nodejs/node/pull/28682 )
- define release 6
[#32058 ](https://github.com/nodejs/node/pull/32058 )
- turn NAPI\_CALL\_INTO\_MODULE into a function (Anna Henningsen)
[#26128 ](https://github.com/nodejs/node/pull/26128 )
- tls:
- expose keylog event on TLSSocket (Alba Mendez)
[#27654 ](https://github.com/nodejs/node/pull/27654 )
- support TLS min/max protocol defaults in CLI (Sam Roberts)
[#27946 ](https://github.com/nodejs/node/pull/27946 )
- url: handle quasi-WHATWG URLs in urlToOptions() (cjihrig)
[#26226 ](https://github.com/nodejs/node/pull/26226 )
PR-URL: https://github.com/nodejs/node/pull/31984
2020-04-14 11:03:30 +01:00
Sam Roberts
8ce52f9773
src: sync access for report and openssl options
...
Audited usage of per-process OpenSSL and Report options, adding two
required mutexes.
Also documented existence and typical use of the per-process cli option
mutex.
PR-URL: https://github.com/nodejs/node/pull/32618
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2020-04-14 11:03:30 +01:00
Anna Henningsen
d0b6ada618
test: make sure that inspector tests finish
...
PR-URL: https://github.com/nodejs/node/pull/32673
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-14 11:03:30 +01:00
Rich Trott
7abba3f6d7
doc: remove optional parameter from markdown anchor link
...
Fix up a few instances so that lines don't xceed 80 characters.
PR-URL: https://github.com/nodejs/node/pull/32671
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2020-04-14 11:03:30 +01:00
Anna Henningsen
8c5ad1392f
src: initialize inspector before RunBootstrapping()
...
This is necessary for `--inspect-brk-node` to work, and for the
inspector to be aware of scripts created before bootstrapping.
Fixes: https://github.com/nodejs/node/issues/32648
Refs: https://github.com/nodejs/node/pull/30467#discussion_r396879908
PR-URL: https://github.com/nodejs/node/pull/32672
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-14 11:03:29 +01:00
Yash Ladha
ce79923826
lib: changed functional logic in cluster schedulers
...
Free pool in round_robin scheduler is implemented as an array. There
were constant lookups being for distributing load on other workers in
free pool. Reimplementing in Map will create will be more performant as
compared to Array implementation. This was done for all in past but free
wasn't implemented at that time.
PR-URL: https://github.com/nodejs/node/pull/32505
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2020-04-14 11:03:20 +01:00
rickyes
7a46be2a21
dns: remove duplicate code
...
PR-URL: https://github.com/nodejs/node/pull/32664
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-14 11:03:20 +01:00
Luigi Pinca
c24f512819
test: save test file in temporary directory
...
The readv_sync.txt test file is currenly saved in the root directory.
Save it in the dedicated temporary directory.
PR-URL: https://github.com/nodejs/node/pull/32670
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-14 11:03:20 +01:00
Harshitha KP and Divyanshu
fd300ddaa7
doc: clarify listening event
...
Co-authored-by: Divyanshu <dsinecos@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/32581
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-04-14 11:03:19 +01:00
Tobias Nießen
9ed6d845e6
src: refactor to avoid goto in node_file.cc
...
PR-URL: https://github.com/nodejs/node/pull/32637
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-04-14 11:03:19 +01:00
rickyes
f9e2baebdf
async_hooks: use hasHooks function internally
...
PR-URL: https://github.com/nodejs/node/pull/32656
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-14 11:03:19 +01:00
himself65
d515b95676
test: fix check error name on error instance
...
PR-URL: https://github.com/nodejs/node/pull/32508
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:18 +01:00
Adrian Estrada
cd73828dcc
doc: update Ninja information in build guide
...
PR-URL: https://github.com/nodejs/node/pull/32629
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2020-04-07 16:30:18 +01:00
af6cbf5f0a
src: munmap(2) upon class instance destructor
...
Replace `OnScopeLeave` with a class whose instance destructor performs
the munmap(2).
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com >
Fixes: https://github.com/nodejs/node/issues/32532
PR-URL: https://github.com/nodejs/node/pull/32570
Co-Authored-By: Anna Henningsen <github@addaleax.net >
Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
2020-04-07 16:30:18 +01:00
Robert Nagy
27f6e5d382
stream: complete pipeline with stdio
...
stdio (stderr & stdout) should for compatibility
reasons not be closed/end():ed. However, this
causes pipeline with a stdio destination to
never finish. This commit fixes this issue at
a performance cost.
Refs: https://github.com/nodejs/node/issues/7606
Fixes: https://github.com/nodejs/node/issues/32363
PR-URL: https://github.com/nodejs/node/pull/32373
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2020-04-07 16:30:17 +01:00
Luigi Pinca
46f060c73c
Revert "test: mark empty udp tests flaky on OS X"
...
This reverts commit 24a4f76709 .
PR-URL: https://github.com/nodejs/node/pull/32489
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
2020-04-07 16:30:17 +01:00
Sam Roberts
eafd64b1c8
src: consistently declare BindingData class
...
Its defined as a class, so forward declare as a class, fixing type
mismatch warning.
PR-URL: https://github.com/nodejs/node/pull/32677
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-04-07 16:30:17 +01:00
Andrey Pechkurov
0d9798d2ab
async_hooks: move to lazy destroy hook registration in AsyncResource
...
PR-URL: https://github.com/nodejs/node/pull/32429
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com >
2020-04-07 16:30:17 +01:00
Luigi Pinca
8f9d5ac433
build: use tabs for indentation in Makefile
...
PR-URL: https://github.com/nodejs/node/pull/32614
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2020-04-07 16:30:17 +01:00
Santiago Gimeno
730acb50e3
net: fix crash if POLLHUP is received
...
If the `onread` socket option is used and a `POLLHUP` event is received,
libuv returns `UV_EOF` along with a `NULL` buffer in the read callback,
causing the crash. Deal with this case.
Fixes: https://github.com/nodejs/node/issues/31823
PR-URL: https://github.com/nodejs/node/pull/32590
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:16 +01:00
himself65
3969b982e7
src: fix warnings on SPrintF
...
PR-URL: https://github.com/nodejs/node/pull/32558
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:16 +01:00
Julian Duque
aea24b7816
test: remove unused variables on async hook test
...
This commit remove the `id` and `type` arguments from the mustCall
function on init.
PR-URL: https://github.com/nodejs/node/pull/32630
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-04-07 16:30:16 +01:00
Juan José Arboleda
5f01fedf48
test: check that --expose-internals is disallowed in NODE_OPTIONS
...
Add test cases that confirm that `--expose-internals` and
`--expose_internals` are disallowed in the NODE_OPTIONS environment
variable.
PR-URL: https://github.com/nodejs/node/pull/32554
Refs: https://github.com/nodejs/node/pull/32542
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:16 +01:00
Anna Henningsen
acac5df260
src,doc: add documentation for per-binding state pattern
...
PR-URL: https://github.com/nodejs/node/pull/32538
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:15 +01:00
Anna Henningsen
78c82a38ac
src: move fs state out of Environment
...
Moves state that is specific to the `fs` binding into the
`fs` binding implementation as a cleanup.
PR-URL: https://github.com/nodejs/node/pull/32538
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:15 +01:00
Anna Henningsen
7005670f34
src: move http parser state out of Environment
...
Moves state that is specific to HTTP/1 into the HTTP/1 implementation
as a cleanup.
PR-URL: https://github.com/nodejs/node/pull/32538
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:15 +01:00
Anna Henningsen
19b671506c
src: move v8 stats buffers out of Environment
...
Moves state that is specific to the `v8` binding into the
`v8` binding implementation as a cleanup.
PR-URL: https://github.com/nodejs/node/pull/32538
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:15 +01:00
Anna Henningsen
4df24f040d
src: move HTTP/2 state out of Environment
...
Moves state that is specific to HTTP/2 into the HTTP/2 implementation
as a cleanup.
PR-URL: https://github.com/nodejs/node/pull/32538
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:15 +01:00
Anna Henningsen
1fc3de908e
src: make creating per-binding data structures easier
...
Enable the state associated with the individual bindings, e.g. fs or
http2, to be moved out of the Environment class, in order for these
to be more modular and for Environment to be come less of a collection
of random data fields.
Do this by using a BaseObject as the data for callbacks, which can hold
the per-binding state. By default, no per-binding state is available,
although that can be configured when setting up the binding.
PR-URL: https://github.com/nodejs/node/pull/32538
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:14 +01:00
himself65
dbd030a930
test: refactor test-worker
...
PR-URL: https://github.com/nodejs/node/pull/32509
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2020-04-07 16:30:14 +01:00
Tobias Nießen
57856bc769
src: replace goto with lambda in options parser
...
PR-URL: https://github.com/nodejs/node/pull/32635
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:14 +01:00
Harshitha KP
cbc254e6cb
test: add Worker initialization failure test case
...
Cover the scenario fixed through
https://github.com/nodejs/node/pull/31621
Unfortunately there is no easy way to test this, in a
cross-platform manner. So the approach is:
- open a child process with ulimit restriction on file descriptors
- in the child process, start few workers - more than the fd limit
- make sure some workers fail, with the expected error type.
- skip the test in windows, as there is no ulimit there.
Refs: https://github.com/nodejs/node/pull/31621
PR-URL: https://github.com/nodejs/node/pull/31929
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-04-07 16:30:14 +01:00
Richard Lau
9a705fa2ed
test: fix tool path in test-doctool-versions.js
...
Path to the versions tool tested by test-doctool-versions.js would
be incorrect if the test temporary directory was redirected (e.g.
via NODE_TEST_DIR) outside of `test/`.
Signed-off-by: Richard Lau <riclau@uk.ibm.com >
PR-URL: https://github.com/nodejs/node/pull/32645
Refs: https://github.com/nodejs/node/pull/32518
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Shelley Vohr <codebytere@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-04-07 16:30:13 +01:00
Dave Vandyke
f821deb3b0
doc: correct version metadata for Readable.from
...
PR-URL: https://github.com/nodejs/node/pull/32639
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-04-07 16:30:13 +01:00
Anna Henningsen
e96877544e
test: copy addons .gitignore to test/abort/
...
`cp test/addons/.gitignore test/abort/.gitignore`, because the new
addon test in there leaves a build/ folder lying around and somebody
is bound to use `git add .` earlier or later.
Refs: https://github.com/nodejs/node/pull/31740
PR-URL: https://github.com/nodejs/node/pull/32624
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-07 16:30:13 +01:00
Sam Roberts
7e6708513b
doc: make openssl commit messages be valid
...
The current commit message is wrapped at 80 columns, but commit message
descriptions should wrap at 72, so the maintainer has to fix the
message up instead of just copying it in. They might not notice that
requirement, in which case it has to be fixed during landing because
`git node land` notices. To prevent that, make the message template
wrap before 72 to keep the landing process as simple as possible.
PR-URL: https://github.com/nodejs/node/pull/32602
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2020-04-07 16:30:13 +01:00