GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Revert "fs: deprecate fs.read's string interface" by MylesBorins · Pull Request #5163 · nodejs/node

Conversation

@MylesBorins

@MylesBorins MylesBorins commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

This reverts commit 1124de2
which landed in #4525

This commit has broken both npm + node-gyp

How did it break npm?

Deprecating fs.read's string interface includes internal/util
Currently npm's dep tree includes an old version of graceful-fs
that is monkey patching fs. As such everything explodes when
trying to require internal/util

#5102 is waiting for review
but has not landed. We should revert ASAP to fix master while
we decide what to do.

/cc @nodejs/collaborators @rvagg @jasnell

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@MylesBorins MylesBorins added fs Issues and PRs related to file-system APIs and the fs module. npm Issues and PRs related to the npm client dependency or the npm registry. labels Feb 9, 2016
Myles Borins
Revert "fs: deprecate fs.read's string interface"
3e32ff5
This reverts commit 1124de2
which landed in nodejs#4525

This commit has broken both npm + node-gyp

How did it break npm?

Deprecating fs.read's string interface includes `internal/util`
Currently npm's dep tree includes an old version of graceful-fs
that is monkey patching fs. As such everything explodes when
trying to require `internal/util`

nodejs#5102 is waiting for review
but has not landed. We should revert ASAP to fix master while
we decide what to do.
@MylesBorins
MylesBorins force-pushed the revert-1124de2 branch from 5ce2552 to 3e32ff5 Compare February 9, 2016 18:14
@Fishrock123

Fishrock123 commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

-1, the other patch LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MylesBorins

MylesBorins commented Feb 9, 2016

Copy link
Copy Markdown
Contributor Author

@Fishrock123 I'm more than happy to close this if the other patch lands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Myles Borins
test: add test-npm-install to parallel tests suite
7453d72
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.
@MylesBorins

MylesBorins commented Feb 9, 2016

Copy link
Copy Markdown
Contributor Author

I've gone ahead and cherry-picked my npm test from #5166 into this PR.

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

I think it makes sense to land this test to ensure that
a) the fix is working
b) we do not re create the regression this reversion is meant to fix

If this lands I'll close #5166

edit: i've gone ahead and closed #5166 in lieu of this PR, I'll reopen it if this does not land.

edit: CI is completely green!!!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell added the ctc-agenda label Feb 9, 2016
This was referenced Feb 9, 2016
fs: add a temporary fix for re-evaluation support #5102
Closed
test: add test-npm-install to parallel tests suite #5166
Closed
@vkurchatkin

vkurchatkin commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

LGTM. We should remember this as one more example of irresponsible package authors preventing core evolution

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR

ChALkeR commented Feb 9, 2016

Copy link
Copy Markdown
Member

I'm -1 on reverting that change.

We should not keep fs in that state forever, if people are re-evaluating it — it's a problem in the user code, not in Node.js. This has been previosly discussed already, and other core modules are not re-evaluatable (pretty much everything that uses internals). Why should fs be special? Also note that graceful-fs was fixed long ago, all what users have to do is to upgrade their deps.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MylesBorins

MylesBorins commented Feb 9, 2016

Copy link
Copy Markdown
Contributor Author

I think this could be an interested case study for @nodejs/ctc to come up with some process around.

While I agree that we cannot be held responsible for things being broken in user land I very strongly believe it is our responsibility to keep master working. If a commit that handles a deprecation is breaking master, a broken npm / gyp is a broken master imho, that commit should be reverted until it no longer does so.

These issues are tangential. Anything breaking master that cannot be quickly resolved should be reverted, no matter what the commit is. We are now at over 100 hours that master has been broken, which does not seem very reasonable to me.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@trevnorris

trevnorris commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

I don't appreciate the fact that we'd have to revert this change either, but until we have a working solution not being able to build native modules with node-gyp on master is development life a pain. Unless another fix can be landed soon, it should be reverted. Once another fix has landed, then this can be applied again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR

ChALkeR commented Feb 9, 2016

Copy link
Copy Markdown
Member

@trevnorris Agreed on that. If the reverting is temporary until the better fix is found (hopefully soon), and the original commit will get back in before 6.0 comes out, I'm fine with reverting.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg

rvagg commented Feb 9, 2016

Copy link
Copy Markdown
Member

lgtm as a temporary measure with the expectation that the commit in question will be back on master as soon as we have npm sorted out.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg rvagg mentioned this pull request Feb 10, 2016
Node.js Foundation Core Technical Committee (CTC) Meeting 2016-02-10 #5176
Closed
@MylesBorins

MylesBorins commented Feb 11, 2016

Copy link
Copy Markdown
Contributor Author

Closing as the CTC has opted for landing #5102

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MylesBorins MylesBorins closed this Feb 11, 2016
@Fishrock123 Fishrock123 removed the ctc-agenda label Mar 2, 2016
@MylesBorins
MylesBorins deleted the revert-1124de2 branch April 16, 2016 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

fs Issues and PRs related to file-system APIs and the fs module. npm Issues and PRs related to the npm client dependency or the npm registry.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@MylesBorins @Fishrock123 @vkurchatkin @ChALkeR @trevnorris @rvagg @jasnell
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.