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

deps: remove unnecessary files #5212

Closed
wants to merge 1 commit into from

Conversation

mscdex
Copy link
Contributor

@mscdex mscdex commented Feb 13, 2016

This commit removes some unnecessary files introduced in 76cb81b whose filenames are also not valid on Windows, causing problems when checking out the repository on that platform.

Fixes #5094

@mscdex mscdex added the npm Issues and PRs related to the npm client dependency or the npm registry. label Feb 13, 2016
@MylesBorins
Copy link
Contributor

@mscdex have you confirmed that npm ls is still running clean?

I'm not sure our exact policy on this but I personally would prefer to see changes to the dep tree of npm come in as a patch from an npm contrib

/cc @nodejs/npm @jasnell

@MylesBorins
Copy link
Contributor

@mscdex is there a test we could write that could check the npm tree for file lengths?

@mscdex
Copy link
Contributor Author

mscdex commented Feb 13, 2016

@thealphanerd As far as I can tell, these files got added during the merge process, they were not part of the original npm 3.6.0 PR.

@MylesBorins
Copy link
Contributor

super odd

This should be fixed by #5211 then.

@mscdex
Copy link
Contributor Author

mscdex commented Feb 13, 2016

I don't think the problem in this case is filename length, but the characters in the name (e.g. :).

@MylesBorins
Copy link
Contributor

Ahhhhh... I've been dealing with filename length fun all day so I was seeing what I wanted to see. Both seem like reasonable tests to add though 😄

@mscdex
Copy link
Contributor Author

mscdex commented Feb 13, 2016

Also I'm not sure that merging newer versions of npm would actually remove these existing problematic files.

@MylesBorins
Copy link
Contributor

@mscdex is this something that we could test for in the future?

@mscdex
Copy link
Contributor Author

mscdex commented Feb 13, 2016

Short of having a pre-commit hook or something, I'm not sure what could have stopped this particular case since the files seemingly did not come from the original npm PR.

@MylesBorins
Copy link
Contributor

we would have caught it before shipping though

@jasnell
Copy link
Member

jasnell commented Feb 13, 2016

This is extremely odd indeed. PR LGTM

@thefourtheye
Copy link
Contributor

Can we check if npm tests are passing with this change?

@mscdex
Copy link
Contributor Author

mscdex commented Feb 13, 2016

@thefourtheye Is there a way to do that via CI or ?

@thefourtheye
Copy link
Contributor

In CI we don't run that. We need to manually run the tests with make test-npm. cc @nodejs/testing @thealphanerd

@MylesBorins
Copy link
Contributor

for landing npm I usually do a local test + citgm.

citgm: https://ci.nodejs.org/job/thealphanerd-smoker/72/

@tflanagan
Copy link
Contributor

Oh this issue has been a nightmare for me, and I have no idea how to clean it up. If this PR doesn't land, or this issue isn't fixed via npm, is there a resource, or does anyone have steps, on cleaning this up?

It oddly is only affecting my windows machine.

@iarna
Copy link
Member

iarna commented Feb 16, 2016

This is extra weird because npm PRs are produced by removing deps/npm and then extracting a specially prepared version of the distribution tarball (we remove the symlinked bins from npms deps) and then adding that back.

I would expect any of the npm updates to have fixed this...

@mscdex mscdex force-pushed the remove-unnecessary-files branch from 89af018 to ee3b1e7 Compare February 16, 2016 17:54
@mscdex
Copy link
Contributor Author

mscdex commented Feb 16, 2016

citgm again after rebasing: https://ci.nodejs.org/job/thealphanerd-smoker/80/

The stylus and eslint failures are unrelated and will be fixed soon by a different PR. The lodash failure seems to be an upstream problem?

This commit removes some unnecessary files introduced in 76cb81b
whose filenames are also not valid on Windows, causing problems when
checking out the repository on that platform.

Fixes: nodejs#5094
@mscdex mscdex force-pushed the remove-unnecessary-files branch from ee3b1e7 to cfbbb83 Compare February 17, 2016 19:27
@mscdex
Copy link
Contributor Author

mscdex commented Feb 17, 2016

citgm yet again after pushing the fix for the stylus and eslint errors: https://ci.nodejs.org/job/thealphanerd-smoker/81/

It looks like the only failure (for lodash) is unrelated and is something wrong with its npm scripts. I've also ran make test-npm locally and the only problems I can see from that is tests that fail because they're checking stderr output and the new re-evaluation warning is being printed there.

@thealphanerd @thefourtheye LGTY?

rvagg pushed a commit that referenced this pull request Feb 23, 2016
This commit removes some unnecessary files introduced in 76cb81b
whose filenames are also not valid on Windows, causing problems when
checking out the repository on that platform.

Fixes: #5094
PR-URL: #5212
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
@rvagg
Copy link
Member

rvagg commented Feb 23, 2016

lgtm

I've landed this on v5.x as 18c94e5 but suggest we don't land it on master and wait for the npm update instead. Testing suggests that the problem only impacts on people using the source, either from git or the full source tarball. While that's inconvenient for Windows users doing dev off master, unless the npm update is delayed by too much I think it'd probably be cleaner to hold off. npm@3 update is @ #5369

Unless anyone's super put out by the breakage? From what I understand it's just a warning when using git so it's the source tarballs that are causing real grief.

@MylesBorins
Copy link
Contributor

closing as this is no longer relevant

@MylesBorins MylesBorins closed this Mar 7, 2016
@mscdex mscdex deleted the remove-unnecessary-files branch March 7, 2016 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Issues 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.

7 participants