| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
CI: https://ci.nodejs.org/job/node-test-pull-request/1613/ |
Sorry, something went wrong.
There was a problem hiding this comment.
Nit: capitalization and (more importantly) punctuation in comments. I tried reading the first two lines four or five times before I figured out that each line is its own sentence.
Sorry, something went wrong.
|
It seems like whatever I had working locally is not working atm... digging in |
Sorry, something went wrong.
There was a problem hiding this comment.
Probably no need to capture stdout and stderr if nothing will be done with them.
Sorry, something went wrong.
|
If it passes again when npm is fixed on master, LGTM with comments. |
Sorry, something went wrong.
|
@Trott updated which fixes all your nits |
Sorry, something went wrong.
There was a problem hiding this comment.
mebbe this would be more stable https://github.com/nodejs/node/blob/master/deps/npm/package.json#L31
Sorry, something went wrong.
There was a problem hiding this comment.
@maxogden can you elaborate?
Sorry, something went wrong.
There was a problem hiding this comment.
less likely to break if npm changes their entry point. prob doesnt matter though :)
Sorry, something went wrong.
There was a problem hiding this comment.
Ah, I see what you mean.
I'd prefer to not start grabbing package.json and resolving the path from there... lots of extra logic.
If npm changes their entry point this test will break when they send in a PR... it will be a pretty easy fix
Sorry, something went wrong.
|
closing in favor of #5163 will reopen if that does not land |
Sorry, something went wrong.
Sorry, something went wrong.
|
This test doesn't strike me as a very good idea for two reasons:
|
Sorry, something went wrong.
|
Marking as don't land in v4 until we're certain this is going to work out. |
Sorry, something went wrong.
|
LGTM if CI is happy. The last CI run failed because a slave went offline. New run here: https://ci.nodejs.org/job/node-test-pull-request/1817/ |
Sorry, something went wrong.
Currently we are not testing that `npm install` works. This is a very naive / basic test that shells out to `npm install` in an empty `tempDir`. While this test will not be able to check that `npm install` is 100% working, it should catch certain edge cases that break it.
|
CI is all green. I attempted to look for network traffic but with wireshark, but I'm not familiar enough with it to really get a clear reading, too much noise. I was talking to @zkat last night who implied there should be no network traffic. Maybe @iarna or @othiym23 can chime in |
Sorry, something went wrong.
|
npm definitely doesn't do anything on the network with an empty package.json. Even with dependencies, it'll only touch the network if your deps require it (eg, registry, remote tarball, remote git repo). |
Sorry, something went wrong.
|
I'm not seeing any -1's and I'm seeing 3 LGTM's I'll land this at some point on Monday if no one else has objections |
Sorry, something went wrong.
|
Following @iarna comment, would it be a good idea to add a local path as a dependency? Something like this: "test-module": "file:///path/to/test-module" If I understand it correctly, it would not trigger any network operation. |
Sorry, something went wrong.
|
@santigimeno you'd probably want a relative path, but yeah, that'd exercise a bit more. But I'd be -1 on holding back this PR any further. Seems like that'd make a fine new PR though. (And for the record, I'm LGTM on this as is.) |
Sorry, something went wrong.
|
Ok, I can to that when this PR is merged. Thanks |
Sorry, something went wrong.
Currently we are not testing that `npm install` works. This is a very naive / basic test that shells out to `npm install` in an empty `tempDir`. While this test will not be able to check that `npm install` is 100% working, it should catch certain edge cases that break it. PR-URL: nodejs#5166 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
Currently we are not testing that `npm install` works. This is a very naive / basic test that shells out to `npm install` in an empty `tempDir`. While this test will not be able to check that `npm install` is 100% working, it should catch certain edge cases that break it. PR-URL: #5166 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
Currently we are not testing that `npm install` works. This is a very naive / basic test that shells out to `npm install` in an empty `tempDir`. While this test will not be able to check that `npm install` is 100% working, it should catch certain edge cases that break it. PR-URL: #5166 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
|
@jasnell are you open to moving to lts watch? |
Sorry, something went wrong.
|
I haven't been following how well this has been working since it landed. I assume no issues? |
Sorry, something went wrong.
|
moving to lts-watch as there have been no issues |
Sorry, something went wrong.
Currently we are not testing that `npm install` works. This is a very naive / basic test that shells out to `npm install` in an empty `tempDir`. While this test will not be able to check that `npm install` is 100% working, it should catch certain edge cases that break it. PR-URL: #5166 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
Currently we are not testing that `npm install` works. This is a very naive / basic test that shells out to `npm install` in an empty `tempDir`. While this test will not be able to check that `npm install` is 100% working, it should catch certain edge cases that break it. PR-URL: #5166 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
| Back | FazBrowse Home | New Git URL |
Currently we are not testing that npm install works.
This is a very naive / basic test that shells out to npm install
in an empty tempDir. While this test will not be able to check
that npm install is 100% working, it should catch certain edge
cases that break it.
This is currently blocked from being tested until #4525 lands
/cc @nodejs/npm @nodejs/testing