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

Add failing pumpify test #17

Merged
merged 3 commits into from
May 4, 2018
Merged

Add failing pumpify test #17

merged 3 commits into from
May 4, 2018

Conversation

phated
Copy link
Contributor

@phated phated commented Jan 10, 2018

Hey @mafintosh, I just ran into this issue within the published release of gulp 4. It seems that using pumpify with end-of-stream swallows any errors that happen in the middle of the pumpify stream and instead emit a "premature close" error.

I've created a simplified reproduction case in the tests but I'm not too sure which module needs the fix or what to actually fix. Thoughts?

cc @erikkemperman

@mafintosh
Copy link
Owner

Thanks. That does indeed seem wrong. Will take a look today

@mafintosh
Copy link
Owner

This was a pumpify bug. Fixed it there and added a test. Can you verify it works for you now if you reinstall all the deps?

@phated
Copy link
Contributor Author

phated commented Jan 10, 2018

@mafintosh awesome! I thought that might be the case. It seems like problem still exists. I've bumped the pumpify version in the devDeps to show in this reduced case.

@phated
Copy link
Contributor Author

phated commented Jan 10, 2018

It seems that using 3 through() streams for the pipeline works but having a Writable at the end causes the failure. I'll push a succeeding and a failing test.

@phated
Copy link
Contributor Author

phated commented Jan 11, 2018

Hey @mafintosh - anything else I can help with here?

@phated
Copy link
Contributor Author

phated commented Feb 15, 2018

Friendly ping

@mafintosh mafintosh merged commit 52106b0 into mafintosh:master May 4, 2018
@mafintosh
Copy link
Owner

@phated turns out this was an issue in pumpify, fixing it there.

mafintosh added a commit to mafintosh/pumpify that referenced this pull request May 4, 2018
@mafintosh
Copy link
Owner

@phated should be fixed now! for good hopefully :) i ended up moving the tests to pumpify as it was an issue there.

@phated
Copy link
Contributor Author

phated commented May 4, 2018

Awesome! Thanks @mafintosh 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants