Skip to content

[v8.x] deps: re land npm 5.6.0 - #18625

Closed
MylesBorins wants to merge 1 commit into
nodejs:v8.x-stagingfrom
MylesBorins:npm-5.6.0-redux
Closed

[v8.x] deps: re land npm 5.6.0#18625
MylesBorins wants to merge 1 commit into
nodejs:v8.x-stagingfrom
MylesBorins:npm-5.6.0-redux

Conversation

@MylesBorins

Copy link
Copy Markdown
Contributor

When the original backport was landed there were some missing commits
on v8.x. This commit completely re lands npm 5.6.0 to make sure the
version on 8.x has the correct file tree

Refs: #16509 (comment)

Alternative to #18616

When the original backport was landed there were some missing commits
on v8.x. This commit completely re lands npm 5.6.0 to make sure the
version on 8.x has the correct file tree
Refs: nodejs#16509 (comment)
@nodejs-github-botnodejs-github-bot added npm Issues and PRs related to the npm client dependency or the npm registry. v8.x labels Feb 7, 2018
@MylesBorins

Copy link
Copy Markdown
ContributorAuthor

There is a quite a bit of churn in here due to whitespace that was not included in the original backport. I think we should simply land this, as it is the exact version of npm that will be installed via npm itself

@targos

Copy link
Copy Markdown
Member

Diff without whitespace: https://github.com/nodejs/node/pull/18625/files?w=1

@targostargos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. This includes the changes to minizlib and unsupported.js

@MylesBorins

Copy link
Copy Markdown
ContributorAuthor

@addaleaxaddaleax changed the title deps: re land npm 5.6.0[v8.x] deps: re land npm 5.6.0Feb 8, 2018
@gibfahngibfahn self-assigned this Feb 8, 2018
gibfahn pushed a commit that referenced this pull request Feb 8, 2018
When the original backport was landed there were some missing commits
on v8.x. This commit completely re lands npm 5.6.0 to make sure the
version on 8.x has the correct file tree
Refs: #16509 (comment)
PR-URL: #18625
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
@gibfahn

Copy link
Copy Markdown
Member

Landed without squashing whitespace in 96f85e4

Failures (on my machine):

Subset of failures:
notok9-configproperitieslist: projectData: # ofelements---found: 2
wanted: 1compare: ===at:
line: 67
column: 5
file: test/tap/config-basic.js
type: globalfunction: isDeeplyDetailsstack: |isDeeplyDetails(test/tap/config-basic.js:67:5)test/tap/config-basic.js:78:7Array.forEach(<anonymous>)
test/tap/config-basic.js:77:17
lib/config/core.js:81:7
Array.forEach (<anonymous>)
lib/config/core.js:80:13
f (node_modules/once/once.js:25:25)
finalize (lib/config/core.js:198:5)
afterExtras (lib/config/core.js:189:5)
node_modules/mkdirp/index.js:48:26
source: |
t.is(Object.keys(aa).length, Object.keys(bb).length, msg + ': # of elements')
...
not ok 52 - config by source ->project->data: # ofelements---found: 2wanted: 1compare: ===at:
line: 67column: 5file: test/tap/config-basic.jstype: globalfunction: isDeeplyDetailsstack: |isDeeplyDetails(test/tap/config-basic.js:67:5)test/tap/config-basic.js:69:5Array.forEach(<anonymous>)
isDeeplyDetails (test/tap/config-basic.js:68:19)
test/tap/config-basic.js:69:5
Array.forEach (<anonymous>)
isDeeplyDetails (test/tap/config-basic.js:68:19)
test/tap/config-basic.js:80:5
lib/config/core.js:81:7
Array.forEach (<anonymous>)
lib/config/core.js:80:13
f (node_modules/once/once.js:25:25)
finalize (lib/config/core.js:198:5)
afterExtras (lib/config/core.js:189:5)
node_modules/mkdirp/index.js:48:26
source: |
t.is(Object.keys(aa).length, Object.keys(bb).length, msg + ': # of elements')
...
# Subtest: test/tap/config-builtin.js
# Subtest: with builtin
not ok 1 - should be equivalent
---
found:
- foo: bar
heading: foo
git-tag-version: false
- userconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/userconfig-with-gcother-env-thing: '1000'
_underbar-env-thing: underfuluppercase-env-thing: '42'
-save-prefix: '~'
legacy-bundling: true-globalconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/globalconfigemail: i@izs.meenv-thing: asdfinit.author.name: IsaacZ.Schlueterinit.author.email: i@izs.meinit.author.url: 'http://blog.izs.me/'
init.version: 1.2.3
'npm:publishtest': true
'_npmjs.org:couch': 'https://admin:password@localhost:5984/registry'
'npm-www:nocache': '1'
nodedir: /Users/isaacs/dev/js/node-v0.8sign-git-tag: truemessage: v%sstrict-ssl: falsetmp: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/.tmp_auth: dXNlcm5hbWU6cGFzc3dvcmQ=_token:
AuthSession: yabba-dabba-doodleversion: '1'
expires: '1345001053415'
path: /httponly: true- 'package-config:foo': boo-builtin-config: truewanted:
-foo: barheading: foogit-tag-version: false-userconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/userconfig-with-gc_underbar-env-thing: underfuluppercase-env-thing: 42other-env-thing: 1000-legacy-bundling: true-globalconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/globalconfigemail: i@izs.meenv-thing: asdfinit.author.name: IsaacZ.Schlueterinit.author.email: i@izs.meinit.author.url: 'http://blog.izs.me/'
init.version: 1.2.3
'npm:publishtest': true
'_npmjs.org:couch': 'https://admin:password@localhost:5984/registry'
'npm-www:nocache': '1'
nodedir: /Users/isaacs/dev/js/node-v0.8sign-git-tag: truemessage: v%sstrict-ssl: falsetmp: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/.tmp_auth: dXNlcm5hbWU6cGFzc3dvcmQ=_token:
AuthSession: yabba-dabba-doodleversion: '1'
expires: '1345001053415'
path: /httponly: true- 'package-config:foo': boo-builtin-config: trueat:
line: 58column: 7file: test/tap/config-builtin.jstype: globalstack: |test/tap/config-builtin.js:58:7lib/config/core.js:81:7Array.forEach(<anonymous>)
lib/config/core.js:80:13
f (node_modules/once/once.js:25:25)
finalize (lib/config/core.js:198:5)
afterExtras (lib/config/core.js:189:5)
node_modules/mkdirp/index.js:48:26
source: |
t.same(conf.list, expectList)
...
not ok 2 - should be equivalent
---
found:
cli:
data:
foo: bar
heading: foo
git-tag-version: false
env:
data:
userconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/userconfig-with-gcother-env-thing: '1000'
_underbar-env-thing: underfuluppercase-env-thing: '42'
source:
userconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/userconfig-with-gcother-env-thing: '1000'
_underbar-env-thing: underfuluppercase-env-thing: '42'
prefix: ''
project:
path: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/.npmrctype: inidata:
save-prefix: '~'
legacy-bundling: trueuser:
path: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/userconfig-with-gctype: inidata:
globalconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/globalconfigemail: i@izs.meenv-thing: asdfinit.author.name: IsaacZ.Schlueterinit.author.email: i@izs.meinit.author.url: 'http://blog.izs.me/'
init.version: 1.2.3
'npm:publishtest': true
'_npmjs.org:couch': 'https://admin:password@localhost:5984/registry'
'npm-www:nocache': '1'nodedir: /Users/isaacs/dev/js/node-v0.8sign-git-tag: truemessage: v%sstrict-ssl: falsetmp: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/.tmp_auth: dXNlcm5hbWU6cGFzc3dvcmQ=_token:
AuthSession: yabba-dabba-doodleversion: '1'expires: '1345001053415'path: /httponly: trueglobal:
path: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/globalconfigtype: inidata:
'package-config:foo': boobuiltin:
data:
builtin-config: truewanted:
cli:
data:
foo: barheading: foogit-tag-version: falseenv:
data:
userconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/userconfig-with-gc_underbar-env-thing: underfuluppercase-env-thing: 42other-env-thing: 1000source:
userconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/userconfig-with-gc_underbar-env-thing: underfuluppercase-env-thing: '42'other-env-thing: '1000'prefix: ''project:
path: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/.npmrctype: inidata:
legacy-bundling: trueuser:
path: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/userconfig-with-gctype: inidata:
globalconfig: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/globalconfigemail: i@izs.meenv-thing: asdfinit.author.name: IsaacZ.Schlueterinit.author.email: i@izs.meinit.author.url: 'http://blog.izs.me/'init.version: 1.2.3'npm:publishtest': true'_npmjs.org:couch': 'https://admin:password@localhost:5984/registry''npm-www:nocache': '1'nodedir: /Users/isaacs/dev/js/node-v0.8sign-git-tag: truemessage: v%sstrict-ssl: falsetmp: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/.tmp_auth: dXNlcm5hbWU6cGFzc3dvcmQ=_token:
AuthSession: yabba-dabba-doodleversion: '1'expires: '1345001053415'path: /httponly: trueglobal:
path: >-/Users/gib/wrk/com/DANGER/node/test/.tmp.npm.90db1054b2631b65addaf2325e8313fd/pkg/test/fixtures/config/globalconfigtype: inidata:
'package-config:foo': boobuiltin:
data:
builtin-config: trueat:
line: 59column: 7file: test/tap/config-builtin.jstype: globalstack: |test/tap/config-builtin.js:59:7lib/config/core.js:81:7Array.forEach(<anonymous>)
lib/config/core.js:80:13
f (node_modules/once/once.js:25:25)
finalize (lib/config/core.js:198:5)
afterExtras (lib/config/core.js:189:5)
node_modules/mkdirp/index.js:48:26
source: |
t.same(conf.sources, expectSources)
...
# Subtest: test/broken-under-nyc-and-travis/lifecycle-path.js
# Subtest: make sure the path is correct, without directory of current node
not ok 2 - should be equivalent
---
found:
- '{{ROOT}}/node_modules/npm-lifecycle/node-gyp-bin'
- '{{PKG}}/node_modules/.bin'
- /Users/gib/wrk/com/DANGER/node/out/Release
- /bin
- /usr/bin
wanted:
- '{{ROOT}}/bin/node-gyp-bin'
- '{{PKG}}/node_modules/.bin'
- /Users/gib/wrk/com/DANGER/node/out/Release
- /bin
- /usr/bin
at:
line: 200
column: 7
file: test/broken-under-nyc-and-travis/lifecycle-path.js
type: global
stack: |
test/broken-under-nyc-and-travis/lifecycle-path.js:200:7
f (node_modules/once/once.js:25:25)
ChildProcess.<anonymous> (test/common-tap.js:87:5)
...
1..2
# failed 1 of 2 tests
not ok 2 - make sure the path is correct, without directory of current node # time=317.03ms
not ok 3 - should be equivalent
---
found:
- '{{ROOT}}/node_modules/npm-lifecycle/node-gyp-bin'
- '{{PKG}}/node_modules/.bin'
- /Users/gib/wrk/com/DANGER/node/out/Release
- /bin
- /usr/bin
wanted:
- '{{ROOT}}/bin/node-gyp-bin'
- '{{PKG}}/node_modules/.bin'
- /Users/gib/wrk/com/DANGER/node/out/Release
- /bin
- /usr/bin

test-npm.tap.txt

Confirmed that cherry-picking 9f33a24 and b8888f5 resulted in no changes, and that npm ls -g works.

@gibfahngibfahn closed this Feb 8, 2018
gibfahn added a commit that referenced this pull request Mar 6, 2018
Notable changes:
* deps:
* update V8 to 6.2.414.46 (Michaël Zasso) [#16413](#16413)
* revert ABI breaking changes in V8 6.2 (Anna Henningsen) [#16413](#16413)
* upgrade libuv to 1.19.1 (cjihrig) [#18260](#18260)
* re land npm 5.6.0 (Myles Borins) [#18625](#18625)
* ICU 60 bump (Steven R. Loomis) [#16876](#16876)
* crypto:
* Support both OpenSSL 1.1.0 and 1.0.2 (David Benjamin) [#16130](#16130)
* warn on invalid authentication tag length (Tobias Nießen) [#17566](#17566)
* async_hooks:
* update defaultTriggerAsyncIdScope for perf (Anatoli Papirovski) [#18004](#18004)
* use typed array stack as fast path (Anna Henningsen) [#17780](#17780)
* use scope for defaultTriggerAsyncId (Andreas Madsen) [#17273](#17273)
* separate missing from default context (Andreas Madsen) [#17273](#17273)
* rename initTriggerId (Andreas Madsen) [#17273](#17273)
* deprecate undocumented API (Andreas Madsen) [#16972](#16972)
* add destroy event for gced AsyncResources (Sebastian Mayr) [#16998](#16998)
* add trace events to async_hooks (Andreas Madsen) [#15538](#15538)
* set HTTPParser trigger to socket (Andreas Madsen) [#18003](#18003)
* add provider types for net server (Andreas Madsen) [#17157](#17157)
* n-api:
* add helper for addons to get the event loop (Anna Henningsen) [#17109](#17109)
* cli:
* add --stack-trace-limit to NODE_OPTIONS (Anna Henningsen) [#16495](#16495)
* console:
* add support for console.debug (Benjamin Zaslavsky) [#17033](#17033)
* module:
* add builtinModules (Jon Moss) [#16386](#16386)
* replace default paths in require.resolve() (cjihrig) [#17113](#17113)
* src:
* add helper for addons to get the event loop (Anna Henningsen) [#17109](#17109)
* add process.ppid (cjihrig) [#16839](#16839)
* http:
* support generic `Duplex` streams (Anna Henningsen) [#16267](#16267)
* add rawPacket in err of `clientError` event (XadillaX) [#17672](#17672)
* better support for IPv6 addresses (Mattias Holmlund) [#14772](#14772)
* net:
* remove ADDRCONFIG DNS hint on Windows (Bartosz Sosnowski) [#17662](#17662)
* process:
* fix reading zero-length env vars on win32 (Anna Henningsen) [#18463](#18463)
* tls:
* unconsume stream on destroy (Anna Henningsen) [#17478](#17478)
* process:
* improve unhandled rejection message (Madara Uchiha) [#17158](#17158)
* stream:
* remove usage of *State.highWaterMark (Calvin Metcalf) [#12860](#12860)
* trace_events:
* add executionAsyncId to init events (Andreas Madsen) [#17196](#17196)
PR-URL: #18336
gibfahn added a commit that referenced this pull request Mar 7, 2018
Notable changes:
* deps:
* update V8 to 6.2.414.46 (Michaël Zasso) [#16413](#16413)
* revert ABI breaking changes in V8 6.2 (Anna Henningsen) [#16413](#16413)
* upgrade libuv to 1.19.1 (cjihrig) [#18260](#18260)
* re land npm 5.6.0 (Myles Borins) [#18625](#18625)
* ICU 60 bump (Steven R. Loomis) [#16876](#16876)
* crypto:
* Support both OpenSSL 1.1.0 and 1.0.2 (David Benjamin) [#16130](#16130)
* warn on invalid authentication tag length (Tobias Nießen) [#17566](#17566)
* async_hooks:
* update defaultTriggerAsyncIdScope for perf (Anatoli Papirovski) [#18004](#18004)
* use typed array stack as fast path (Anna Henningsen) [#17780](#17780)
* use scope for defaultTriggerAsyncId (Andreas Madsen) [#17273](#17273)
* separate missing from default context (Andreas Madsen) [#17273](#17273)
* rename initTriggerId (Andreas Madsen) [#17273](#17273)
* deprecate undocumented API (Andreas Madsen) [#16972](#16972)
* add destroy event for gced AsyncResources (Sebastian Mayr) [#16998](#16998)
* add trace events to async_hooks (Andreas Madsen) [#15538](#15538)
* set HTTPParser trigger to socket (Andreas Madsen) [#18003](#18003)
* add provider types for net server (Andreas Madsen) [#17157](#17157)
* n-api:
* add helper for addons to get the event loop (Anna Henningsen) [#17109](#17109)
* cli:
* add --stack-trace-limit to NODE_OPTIONS (Anna Henningsen) [#16495](#16495)
* console:
* add support for console.debug (Benjamin Zaslavsky) [#17033](#17033)
* module:
* add builtinModules (Jon Moss) [#16386](#16386)
* replace default paths in require.resolve() (cjihrig) [#17113](#17113)
* src:
* add helper for addons to get the event loop (Anna Henningsen) [#17109](#17109)
* add process.ppid (cjihrig) [#16839](#16839)
* http:
* support generic `Duplex` streams (Anna Henningsen) [#16267](#16267)
* add rawPacket in err of `clientError` event (XadillaX) [#17672](#17672)
* better support for IPv6 addresses (Mattias Holmlund) [#14772](#14772)
* net:
* remove ADDRCONFIG DNS hint on Windows (Bartosz Sosnowski) [#17662](#17662)
* process:
* fix reading zero-length env vars on win32 (Anna Henningsen) [#18463](#18463)
* tls:
* unconsume stream on destroy (Anna Henningsen) [#17478](#17478)
* process:
* improve unhandled rejection message (Madara Uchiha) [#17158](#17158)
* stream:
* remove usage of *State.highWaterMark (Calvin Metcalf) [#12860](#12860)
* trace_events:
* add executionAsyncId to init events (Andreas Madsen) [#17196](#17196)
PR-URL: #18336
MayaLekova pushed a commit to MayaLekova/node that referenced this pull request May 8, 2018
Notable changes:
* deps:
* update V8 to 6.2.414.46 (Michaël Zasso) [nodejs#16413](nodejs#16413)
* revert ABI breaking changes in V8 6.2 (Anna Henningsen) [nodejs#16413](nodejs#16413)
* upgrade libuv to 1.19.1 (cjihrig) [nodejs#18260](nodejs#18260)
* re land npm 5.6.0 (Myles Borins) [nodejs#18625](nodejs#18625)
* ICU 60 bump (Steven R. Loomis) [nodejs#16876](nodejs#16876)
* crypto:
* Support both OpenSSL 1.1.0 and 1.0.2 (David Benjamin) [nodejs#16130](nodejs#16130)
* warn on invalid authentication tag length (Tobias Nießen) [nodejs#17566](nodejs#17566)
* async_hooks:
* update defaultTriggerAsyncIdScope for perf (Anatoli Papirovski) [nodejs#18004](nodejs#18004)
* use typed array stack as fast path (Anna Henningsen) [nodejs#17780](nodejs#17780)
* use scope for defaultTriggerAsyncId (Andreas Madsen) [nodejs#17273](nodejs#17273)
* separate missing from default context (Andreas Madsen) [nodejs#17273](nodejs#17273)
* rename initTriggerId (Andreas Madsen) [nodejs#17273](nodejs#17273)
* deprecate undocumented API (Andreas Madsen) [nodejs#16972](nodejs#16972)
* add destroy event for gced AsyncResources (Sebastian Mayr) [nodejs#16998](nodejs#16998)
* add trace events to async_hooks (Andreas Madsen) [nodejs#15538](nodejs#15538)
* set HTTPParser trigger to socket (Andreas Madsen) [nodejs#18003](nodejs#18003)
* add provider types for net server (Andreas Madsen) [nodejs#17157](nodejs#17157)
* n-api:
* add helper for addons to get the event loop (Anna Henningsen) [nodejs#17109](nodejs#17109)
* cli:
* add --stack-trace-limit to NODE_OPTIONS (Anna Henningsen) [nodejs#16495](nodejs#16495)
* console:
* add support for console.debug (Benjamin Zaslavsky) [nodejs#17033](nodejs#17033)
* module:
* add builtinModules (Jon Moss) [nodejs#16386](nodejs#16386)
* replace default paths in require.resolve() (cjihrig) [nodejs#17113](nodejs#17113)
* src:
* add helper for addons to get the event loop (Anna Henningsen) [nodejs#17109](nodejs#17109)
* add process.ppid (cjihrig) [nodejs#16839](nodejs#16839)
* http:
* support generic `Duplex` streams (Anna Henningsen) [nodejs#16267](nodejs#16267)
* add rawPacket in err of `clientError` event (XadillaX) [nodejs#17672](nodejs#17672)
* better support for IPv6 addresses (Mattias Holmlund) [nodejs#14772](nodejs#14772)
* net:
* remove ADDRCONFIG DNS hint on Windows (Bartosz Sosnowski) [nodejs#17662](nodejs#17662)
* process:
* fix reading zero-length env vars on win32 (Anna Henningsen) [nodejs#18463](nodejs#18463)
* tls:
* unconsume stream on destroy (Anna Henningsen) [nodejs#17478](nodejs#17478)
* process:
* improve unhandled rejection message (Madara Uchiha) [nodejs#17158](nodejs#17158)
* stream:
* remove usage of *State.highWaterMark (Calvin Metcalf) [nodejs#12860](nodejs#12860)
* trace_events:
* add executionAsyncId to init events (Andreas Madsen) [nodejs#17196](nodejs#17196)
PR-URL: nodejs#18336
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

npmIssues and PRs related to the npm client dependency or the npm registry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@MylesBorins@targos@gibfahn@nodejs-github-bot