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

buffer: fix deprecation warning emit #20163

Closed
wants to merge 1 commit into from

Conversation

apapirovski
Copy link
Member

@apapirovski apapirovski commented Apr 20, 2018

Due to npm using workers on Windows which inititate processes for code within node_modules, the current way of testing is a little too strict to catch all occurrences.

I understand that the previous implementation was there for a reason but as far as I can tell it's also likely to get a lot of other false positives than just the npm install issue — such as running code in node_modules/.bin/.

Fixes: #20160
Refs: https://github.com/npm/npm/blob/8452a9d9b231bc6c95745bb49a4b838ce11d3b9c/lib/install/action/extract.js#L22-L34

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Due to npm using workers on Windows which inititate processes
for code within node_modules, the current way of testing is a
little too strict to catch all occurrences.
@apapirovski apapirovski added buffer Issues and PRs related to the buffer subsystem. fast-track PRs that do not need to wait for 48 hours to land. labels Apr 20, 2018
@apapirovski apapirovski added this to the 10.0.0 milestone Apr 20, 2018
@nodejs-github-bot nodejs-github-bot added the util Issues and PRs related to the built-in util module. label Apr 20, 2018
@apapirovski
Copy link
Member Author

apapirovski commented Apr 20, 2018

CI: https://ci.nodejs.org/job/node-test-pull-request/14396/

(You can also 👍 for fast-track.)

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

Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

LGTM for lack of a better idea

(/cc @mafintosh)

@apapirovski
Copy link
Member Author

If possible I would like to get some fast-track approvals so @jasnell can get this in his RC build today. Currently we only have 1. Thanks everyone!

@addaleax addaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 20, 2018
Copy link
Member

@joyeecheung joyeecheung left a comment

Choose a reason for hiding this comment

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

+1 to fast-track

@mcollina
Copy link
Member

+1 to fast-track if it wasn’t clear.

apapirovski added a commit that referenced this pull request Apr 20, 2018
Due to npm using workers on Windows which inititate processes
for code within node_modules, the current way of testing is a
little too strict to catch all occurrences.

PR-URL: #20163
Fixes: #20160
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
@apapirovski
Copy link
Member Author

Landed in d718d53. Thanks everyone!

@apapirovski apapirovski deleted the fix-buffer-warning branch April 20, 2018 15:23
@apapirovski
Copy link
Member Author

@jasnell this needs to be pulled into 10.0.0 today. Thanks!

@jasnell
Copy link
Member

jasnell commented Apr 20, 2018

Can you please make sure it's added to the 10.0.0 milestone? I can't do so myself at the moment.

@apapirovski
Copy link
Member Author

@jasnell Yep, it's on there. Along with the other regression fix.

jasnell pushed a commit that referenced this pull request Apr 20, 2018
Due to npm using workers on Windows which inititate processes
for code within node_modules, the current way of testing is a
little too strict to catch all occurrences.

PR-URL: #20163
Fixes: #20160
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. buffer Issues and PRs related to the buffer subsystem. fast-track PRs that do not need to wait for 48 hours to land. util Issues and PRs related to the built-in util module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v10.0.0-rc.0 + npm emitting Buffer deprecation warnings
8 participants