-
Notifications
You must be signed in to change notification settings - Fork 30k
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
stream: fix finished w/ 'close' before 'finish' #31534
Conversation
46fab48
to
20c9ac6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm hoping this does not cause problems such as #29699. Which was on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but if there is a risk this could break things, we should do some additional verification before landing and/or possibly consider semver-major
Defensive CITGM CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2246/ (queued) |
@jasnell's comment raised my concern as well, I've made this check a little less strict. PTAL |
f916506
to
b517e78
Compare
This comment has been minimized.
This comment has been minimized.
b517e78
to
7a59f50
Compare
7a59f50
to
7a68bbd
Compare
Emitting 'close' before 'finish' on a Writable should result in a premature close error.
rebased to fix conflict |
7a68bbd
to
1e9ab30
Compare
@Trott: That rebase failure is new to me:
|
I would recommend this is semver-major as well to ensure no breakage in ecosystem. These kind of changes seem to be a bit sensitive. |
01fc4c6
to
6282580
Compare
For the record this was fixed in nodejs/build#2153. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
CI passes |
Emitting 'close' before 'finish' on a Writable should result in a premature close error. PR-URL: #31534 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Landed in 234de6f |
Emitting 'close' before 'finish' on a Writable should result in a premature close error. PR-URL: #31534 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
@ronag should we land this on 12.x? It lands cleanly, just want to make sure if we need to backport a bunch of streams stuff it isn't partially done |
My recommendation is not to land this on 12.x. It's not semver major but it slightly changes the behavior. |
Emitting 'close' before 'finish' on a Writable should result in a premature close error.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes