fix: Fixed travis windows failures related to the FakeStdin used in the unit tests#1403
Conversation
1 similar comment
I don't think that we should care about Node.js 6 with |
Rob--W
left a comment
There was a problem hiding this comment.
First two commits look fine; please consider the comment about npm audit that I added above.
be57c2a to
2effc87
Compare
2effc87 to
7a67354
Compare
|
I just updated this PR with the following changes:
and I have also filed #1404, to remove the currently ignored advisories in a follow up. |
This PR applies some changes needed to fix the windows-only failures on travis CI jobs which are triggered by the FakeStdin class used in some of the unit tests.
This travis ci windows-only issue started to trigger failures in most of the recently created pull requests, e.g. https://travis-ci.org/mozilla/web-ext/jobs/459221488#L713
By fixing the above (new issue) we can also fix #1386 (which is another test that uses the FakeStdin class and it has been disabled because it was consistently failing on the travis windows workers).
Quite unfortunately, while testing this PR travis has started to fail consistently (on any platform this time) because
nsp checkwasn't able to reach "api.nodesecurity.io" anymore (e.g. see https://travis-ci.org/rpl/web-ext/jobs/467447950#L2162), and so I had to look into fixing also #1390 as part of this PR (so that I could double-check that the unit tests were now able to pass on all the configured travis workers).The commit that fixed #1390, replaces nsp check with a small nodejs script which run
npm audit --json(using npx to run the last available version of npm also on node 6), identifies the advisories to ignore based on the .nsprc file (as it was supported by nsp) and then make the job to fail if there are any advisories that are not explicitly listed in the nsprc's exceptions.Fixes #1386
Fixes #1390