Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v12.12.0 proposal #29919

Merged
merged 65 commits into from
Oct 11, 2019
Merged

v12.12.0 proposal #29919

merged 65 commits into from
Oct 11, 2019

Conversation

BridgeAR
Copy link
Member

@BridgeAR BridgeAR commented Oct 10, 2019

Notable changes

  • build:
    • Add --force-context-aware flag to prevent usage of native node addons that aren't context aware #29631
  • deprecations:
    • Add documentation-only deprecation for process._tickCallback() #29781
  • esm:
    • Using JSON modules is experimental again #29754
  • fs:
    • Introduce opendir() and fs.Dir to iterate through directories #29349
  • process:
    • Add source-map support to stack traces by using --source-map-support#29564
  • tls:
    • Honor pauseOnConnect option #29635
    • Add option for private keys for OpenSSL engines #28973

Commits

  • [d09f2b4170] - build: build docs on Travis (Richard Lau) #29783
  • [03ec4cea30] - build: do not link against librt on linux (Sam Roberts) #29727
  • [f91778d2c7] - build: remove unused libatomic on ppc64, s390x (Sam Roberts) #29727
  • [ab4c53e0ef] - crypto: remove arbitrary UTF16 restriction (Anna Henningsen) #29795
  • [75f3b28d67] - crypto: refactor array buffer view validation (Ruben Bridgewater) #29683
  • [5eb013b854] - deps: update archs files for OpenSSL-1.1.1 (Sam Roberts) #29550
  • [1766cfcb9e] - deps: upgrade openssl sources to 1.1.1d (Sam Roberts) #29550
  • [3d88b76680] - deps: patch V8 to 7.7.299.13 (Michaël Zasso) #29869
  • [600478ac13] - dgram: use uv_udp_try_send() (Anna Henningsen) #29832
  • [ea6b6abb91] - doc: remove spaces inside code span elements (Nick Schonning) #29329
  • [20b9ef92d1] - doc: add more info to fs.Dir and fix typos (Jeremiah Senkpiel) #29890
  • [f566cd5801] - doc: remove misleading paragraph about the Legacy URL API (Jakob Krigovsky) #29844
  • [a5c2154534] - doc: add explicit bracket for markdown reference links (Nick Schonning) #29808
  • [ea9bf4a666] - doc: implement minor CSS improvements (XhmikosR) #29669
  • [a0498606a0] - doc: fix return type for crypto.createDiffieHellmanGroup() (exoego) #29696
  • [a00cd17b9e] - doc: reuse link indexes for n-api.md (legendecas) #29787
  • [aea0253697] - doc: unify place of stability notes (Vse Mozhet Byt) #29799
  • [8b4f210bf5] - doc: add missing deprecation code (cjihrig) #29820
  • [bede98128f] - doc: remove reference to stale CITGM job (Michael Dawson) #29774
  • [014eb67117] - (SEMVER-MINOR) doc: add documentation deprecation for process._tickCallback (Lucas Holmquist) #29781
  • [62370efe7e] - doc: add dash between SHA and PR in changelog (Nick Schonning) #29558
  • [d1a4aa3ca2] - doc: add missing reference link values (Nick Schonning) #29558
  • [de4652f55e] - doc: convert old changlogs SHA links to match newer format (Nick Schonning) #29558
  • [60b1f6f303] - doc: complete cut off links in old changelog (Nick Schonning) #29558
  • [906245e1a4] - doc: clarify --pending-deprecation effects on Buffer() usage (Rich Trott) #29769
  • [401f3e7235] - doc: fix nits in dgram.md (Vse Mozhet Byt) #29761
  • [bc48646206] - doc: improve process.ppid 'added in' info (Thomas Watson) #29772
  • [0b46bcaaa5] - doc: security maintenance processes (Sam Roberts) #29685
  • [f39259c079] - doc: remove redundant escape (XhmikosR) #29716
  • [87fb1c297a] - errors: make sure all Node.js errors show their properties (Ruben Bridgewater) #29677
  • [df218ce066] - Revert "esm: remove experimental status from JSON modules" (Guy Bedford) #29754
  • [e7f604f495] - esm: remove proxy for builtin exports (Bradley Farias) #29737
  • [c56f765cf6] - fs: remove options.encoding from Dir.read*() (Jeremiah Senkpiel) #29908
  • [b76a2e502c] - (SEMVER-MINOR) fs: introduce opendir() and fs.Dir (Jeremiah Senkpiel) #29349
  • [2bcde8309c] - (SEMVER-MINOR) http2: allow passing FileHandle to respondWithFD (Anna Henningsen) #29876
  • [a240d45d1a] - http2: support passing options of http2.connect to net.connect (ZYSzys) #29816
  • [3f153789b5] - http2: set default maxConcurrentStreams (ZYSzys) #29833
  • [6a989da6a0] - http2: use the latest settings (ZYSzys) #29780
  • [b2cce13235] - inspector: update faviconUrl (dokugo) #29562
  • [60296a3612] - lib: make tick processor detect xcodebuild errors (Ben Noordhuis) #29830
  • [9e5d691ee4] - lib: introduce no-mixed-operators eslint rule to lib (ZYSzys) #29834
  • [74a69abd12] - lib: stop using prepareStackTrace (Gus Caplan) #29777
  • [90562ae356] - module: use v8 synthetic modules (Guy Bedford) #29846
  • [20896f74d6] - n-api,doc: clarify napi_finalize related APIs (legendecas) #29797
  • [65c475269e] - net: emit close on unconnected socket (Robert Nagy) #29803
  • [ae8b2b4ab7] - (SEMVER-MINOR) process: add source-map support to stack traces (bcoe) #29564
  • [3f6ce39acf] - src: fix ESM path resolution on Windows (Thomas) #29574
  • [6bfe8f47fa] - (SEMVER-MINOR) src: add buildflag to force context-aware addons (Shelley Vohr) #29631
  • [6c75cc1b11] - stream: do not deadlock duplexpair (Robert Nagy) #29836
  • [320f649539] - stream: add comment about undocumented API (Robert Nagy) #29805
  • [5fdf4a474f] - test: remove extra process.exit() (cjihrig) #29873
  • [6a5d401f30] - test: remove spaces inside code span elements (Nick Schonning) #29329
  • [adee99883a] - test: debug output for dlopen-ping-pong test (Sam Roberts) #29818
  • [b309e20661] - test: add test for HTTP server response with Connection: close (Austin Wright) #29836
  • [bf1727a3f3] - test: add test for writable.write() argument types (Robert Nagy) #29746
  • [3153dd6766] - test: well-defined DH groups now verify clean (Sam Roberts) #29550
  • [690a863aaa] - test: simplify force-context-aware test (cjihrig) #29705
  • [54ef0fd010] - (SEMVER-MINOR) test: --force-context-aware cli flag (Shelley Vohr) #29631
  • [a7b56a5b01] - (SEMVER-MINOR) tls: honor pauseOnConnect option (Robert Jensen) #29635
  • [cf7b4056ca] - (SEMVER-MINOR) tls: add option for private keys for OpenSSL engines (Anton Gerasimov) #28973
  • [ba4946a520] - tools: prohibit Error.prepareStackTrace() usage (Ruben Bridgewater) #29827
  • [79f6cd3606] - tools: update ESLint to v6.5.1 (Rich Trott) #29785
  • [6d88f0fef7] - vm: refactor SourceTextModule (Gus Caplan) #29776
  • [a7113048e3] - worker: do not use two-arg NewIsolate (Shelley Vohr) #29850

targos and others added 30 commits October 9, 2019 19:58
Refs: v8/v8@7.7.299.11...7.7.299.13

PR-URL: #29869
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
PR-URL: #29631
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
PR-URL: #29631
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Add `privateKeyIdentifier` and `privateKeyEngine` options
to get private key from an OpenSSL engine in tls.createSecureContext().

PR-URL: #28973
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sam Roberts <[email protected]>
PR-URL: #29705
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Shelley Vohr <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
PR-URL: #29716
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
The TSC has responsibility for Node.js security, so avoid fragmentation
of the Node.js maintenance process documentation by adding it to the
other guides.

PR-URL: #29685
Reviewed-By: Michael Dawson <[email protected]>
This updates all sources in deps/openssl/openssl by:
    $ cd deps/openssl/
    $ rm -rf openssl
    $ tar zxf ~/tmp/openssl-1.1.0h.tar.gz
    $ mv openssl-1.1.0h openssl
    $ git add --all openssl
    $ git commit openssl

PR-URL: #29550
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
After an OpenSSL source update, all the config files need to be
regenerated and comitted by:
    $ cd deps/openssl/config
    $ make
    $ git add deps/openssl/config/archs
    $ git add deps/openssl/openssl/crypto/include/internal/bn_conf.h
    $ git add deps/openssl/openssl/crypto/include/internal/dso_conf.h
    $ git add deps/openssl/openssl/include/openssl/opensslconf.h
    $ git commit

PR-URL: #29550
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
OpenSSL 1.1.1d no longer generates warnings for some DH groups that used
to be considered unsafe. See below for discussion. This is considered a
bug fix.

See:
- openssl/openssl#9363
- openssl/openssl#9363 (comment)

PR-URL: #29550
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
This is just a refactoring to reduce code and computational overhead.

PR-URL: #29683
Reviewed-By: James M Snell <[email protected]>
PR-URL: #29772
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
The library is not necessary for ppc64 or s390x. It does no harm with
some linkers, but devtoolset-6 creates runtime dependencies on all link
libraries, even unused ones.

Fixes: #27377
Fixes: #29718

PR-URL: #29727
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: James M Snell <[email protected]>
PR-URL: #29727
Fixes: #27377
Fixes: #29718
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: James M Snell <[email protected]>
* Make a section with a history remark a YAML section
  of the relevant method.
  Refs: #29761 (comment)
* Make a bold line a real heading to be included in the TOC.
* Add formal return types.
* Reduce redundancy in a description.
* Unify link format.
* Fix ASCII sorting in bottom references.

PR-URL: #29761
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Refs: #29725 (comment)

PR-URL: #29769
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reference links were used in the document, but not define at the end.

PR-URL: #29558
Reviewed-By: Ruben Bridgewater <[email protected]>
It gets confused as a reference link otherwis

PR-URL: #29558
Reviewed-By: Ruben Bridgewater <[email protected]>
This change also supports --pending-deprecation for the new deprecation.

PR-URL: #29781
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Fixes: #29764

PR-URL: #29780
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
- Removes redundant `instantiate` method
- Refactors `link` to match the spec linking steps more accurately
- Removes URL validation from SourceTextModule specifiers
- DRYs some dynamic import logic

Closes: #29030

Co-Authored-By: Michaël Zasso <[email protected]>

PR-URL: #29776
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Remove reference to job that is out of date, has not
been run for a long time and likely does not work
properly.

Refs: nodejs/citgm#741

PR-URL: #29774
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
PR-URL: #29777
Reviewed-By: Ben Coe <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #29820
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
PR-URL: #29785
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: David Carlier <[email protected]>
PR-URL: #29746
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
This improves Node.js errors by always showing the attached properties
when inspecting such an error. This applies especially to SystemError.
It did often not show any properties but now all properties will be
visible.

This is done in a mainly backwards compatible way. Instead of using
prototype getters and setters, the property is now set directly on the
error.

PR-URL: #29677
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Since 71f633a, this is no longer necessary.

Refs: #22622
Fixes: #29793

PR-URL: #29795
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: David Carlier <[email protected]>
@BridgeAR
Copy link
Member Author

@nodejs/releasers PTAL

@BridgeAR
Copy link
Member Author

@XhmikosR PTAL. I would like to be sure that the changelog does not contain any escape sequences again that cause problems with the website.

@XhmikosR
Copy link
Contributor

@BridgeAR LGTM. We really need to move forward with https://github.com/nodejs/changelog-maker/pulls so that we can improve the regex to ignore the special characters if they are inside backticks.

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Oct 10, 2019

@richardlau
Copy link
Member

Anyone have any insights into the failing test-zlib-unused-weak test seen on both the CI and Travis?

=== release test-zlib-unused-weak ===

Path: parallel/test-zlib-unused-weak

--- stderr ---

assert.js:374

    throw err;

    ^

AssertionError [ERR_ASSERTION]: Expected after-GC delta 474434 to be less than 5 % of before-GC delta 1613656

    at Object.<anonymous> (/home/travis/build/nodejs/node/test/parallel/test-zlib-unused-weak.js:16:1)

    at Module._compile (internal/modules/cjs/loader.js:956:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)

    at Module.load (internal/modules/cjs/loader.js:812:32)

    at Function.Module._load (internal/modules/cjs/loader.js:724:14)

    at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)

    at internal/main/run_main_module.js:17:11 {

  generatedMessage: false,

  code: 'ERR_ASSERTION',

  actual: false,

  expected: true,

  operator: '=='

}

Command: out/Release/node --expose-gc /home/travis/build/nodejs/node/test/parallel/test-zlib-unused-weak.js

@BridgeAR
Copy link
Member Author

I am also not sure if ember-cli ever failed before on CITGM (https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2046/nodes=ppcle-ubuntu1404/testReport/junit/(root)/citgm/ember_cli_v3_13_1/).

I can't remember any of these failures before.

The socket-io error looks like a flake to me (https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2046/nodes=osx1011/testReport/junit/(root)/citgm/socket_io_v2_3_0/).

@richardlau the error seems to only occur in containerised infrastructure.

Let's see a CI for v12.11.1: https://ci.nodejs.org/job/node-test-commit/31815/

@Trott
Copy link
Member

Trott commented Oct 10, 2019

I am also not sure if ember-cli ever failed before on CITGM (https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2046/nodes=ppcle-ubuntu1404/testReport/junit/(root)/citgm/ember_cli_v3_13_1/).

Ember CLI fails occasionally in CITGM. See, for example, #29504 (comment) and #29504 (comment). If you just see one or maybe two failures, I wouldn't worry about it. If you see more than that, that warrants closer examination.

@BridgeAR
Copy link
Member Author

I guess it's a flaky test, since the resumed CI passed.

@nodejs/releasers @nodejs/tsc are you fine with pushing out the release or should we further investigate the mentioned test failure?

@BridgeAR
Copy link
Member Author

It is getting late and I guess there won't be a decision about pushing the release as is soon. So let's postpone it until tomorrow.

@targos
Copy link
Member

targos commented Oct 11, 2019

I think we can consider the test failure a flake. I see no change in zlib or src that could affect this and the test relies on GC behavior that are not really under our control.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Notable changes:

* build:
  * Add `--force-context-aware` flag to prevent usage of native node
    addons that aren't context aware
    #29631
* deprecations:
  * Add documentation-only deprecation for `process._tickCallback()`
    #29781
* esm:
  * Using JSON modules is experimental again
    #29754
* fs:
  * Introduce `opendir()` and `fs.Dir` to iterate through directories
    #29349
* process:
  * Add source-map support to stack traces by using
    `--source-map-support` #29564
* tls:
  * Honor `pauseOnConnect` option
    #29635
  * Add option for private keys for OpenSSL engines
    #28973

PR-URL: #29919
@BridgeAR BridgeAR merged commit 921493e into v12.x Oct 11, 2019
BridgeAR added a commit that referenced this pull request Oct 11, 2019
BridgeAR added a commit that referenced this pull request Oct 11, 2019
Notable changes:

* build:
  * Add `--force-context-aware` flag to prevent usage of native node
    addons that aren't context aware
    #29631
* deprecations:
  * Add documentation-only deprecation for `process._tickCallback()`
    #29781
* esm:
  * Using JSON modules is experimental again
    #29754
* fs:
  * Introduce `opendir()` and `fs.Dir` to iterate through directories
    #29349
* process:
  * Add source-map support to stack traces by using
    `--source-map-support` #29564
* tls:
  * Honor `pauseOnConnect` option
    #29635
  * Add option for private keys for OpenSSL engines
    #28973

PR-URL: #29919
@BridgeAR
Copy link
Member Author

It will take a bit longer until I publish the release with the release builds, since I just got back a bit earlier to my notebook and the release builds had to be run again due to the changed release date.

BridgeAR added a commit to nodejs/nodejs.org that referenced this pull request Oct 11, 2019
BridgeAR added a commit to nodejs/nodejs.org that referenced this pull request Oct 11, 2019
@addaleax addaleax deleted the v12.12.0-proposal branch October 24, 2019 12:04
@targos targos added release Issues and PRs related to Node.js releases. and removed build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations. meta Issues and PRs related to the general management of the project. openssl Issues and PRs related to the OpenSSL dependency. labels Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Issues and PRs related to Node.js releases.
Projects
None yet
Development

Successfully merging this pull request may close these issues.