-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: make sure _destroy is called on the tail #53213
Conversation
Review requested:
|
Do you think you could make a test? |
I will have a look as soon as I have time |
Good find and fix! |
Co-authored-by: Robert Nagy <ronagy@icloud.com>
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
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.
Can you avoid the use of timeouts in the test? They are usually pretty brittle to maintain.
Do you mean avoiding using |
@mcollina I had a deeper look, I think I understood what you mean, the issue here is that I have removed the timeouts as they are not needed. Although a quick question - does |
Yes, it's more predictable. |
since the test has changed, shall we kick start another CI? 👀 |
Commit Queue failed- Loading data for nodejs/node/pull/53213 ✔ Done loading data for nodejs/node/pull/53213 ----------------------------------- PR info ------------------------------------ Title stream: make sure _destroy is called on the tail (#53213) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch jakecastelli:fix-51987 -> nodejs:main Labels author ready, needs-ci Commits 5 - stream: make sure _destroy is called - fixup! add test - Update lib/internal/streams/compose.js - fixup! use common.platformTimeout - fixup! remove slow process as its not needed Committers 2 - jakecastelli <959672929@qq.com> - GitHub PR-URL: https://github.com/nodejs/node/pull/53213 Fixes: https://github.com/nodejs/node/issues/51987 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/53213 Fixes: https://github.com/nodejs/node/issues/51987 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last approving review: ⚠ - fixup! use common.platformTimeout ⚠ - fixup! remove slow process as its not needed ℹ This PR was created on Thu, 30 May 2024 08:05:30 GMT ✔ Approvals: 3 ✔ - Robert Nagy (@ronag) (TSC): https://github.com/nodejs/node/pull/53213#pullrequestreview-2089357194 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/53213#pullrequestreview-2091025829 ✔ - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/53213#pullrequestreview-2094796152 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2024-06-08T15:47:51Z: https://ci.nodejs.org/job/node-test-pull-request/59699/ - Querying data for job/node-test-pull-request/59699/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/9449666312 |
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
Commit Queue failed- Loading data for nodejs/node/pull/53213 ✔ Done loading data for nodejs/node/pull/53213 ----------------------------------- PR info ------------------------------------ Title stream: make sure _destroy is called on the tail (#53213) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch jakecastelli:fix-51987 -> nodejs:main Labels author ready, needs-ci Commits 5 - stream: make sure _destroy is called - fixup! add test - Update lib/internal/streams/compose.js - fixup! use common.platformTimeout - fixup! remove slow process as its not needed Committers 2 - jakecastelli <959672929@qq.com> - GitHub PR-URL: https://github.com/nodejs/node/pull/53213 Fixes: https://github.com/nodejs/node/issues/51987 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/53213 Fixes: https://github.com/nodejs/node/issues/51987 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum -------------------------------------------------------------------------------- ℹ This PR was created on Thu, 30 May 2024 08:05:30 GMT ✔ Approvals: 3 ✔ - Robert Nagy (@ronag) (TSC): https://github.com/nodejs/node/pull/53213#pullrequestreview-2089357194 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/53213#pullrequestreview-2107988745 ✔ - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/53213#pullrequestreview-2094796152 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2024-06-10T13:56:39Z: https://ci.nodejs.org/job/node-test-pull-request/59699/ - Querying data for job/node-test-pull-request/59699/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 53213 From https://github.com/nodejs/node * branch refs/pull/53213/merge -> FETCH_HEAD ✔ Fetched commits as 2dea6a4520b8..d8a6156f7cb8 -------------------------------------------------------------------------------- [main 707c3ff394] stream: make sure _destroy is called Author: jakecastelli <959672929@qq.com> Date: Thu May 30 17:21:15 2024 +0930 1 file changed, 3 insertions(+), 3 deletions(-) [main 2dc4090f69] fixup! add test Author: jakecastelli <959672929@qq.com> Date: Thu May 30 22:54:57 2024 +0930 1 file changed, 49 insertions(+) [main 7866fd2a22] Update lib/internal/streams/compose.js Author: jakecastelli <38635403+jakecastelli@users.noreply.github.com> Date: Fri May 31 08:55:59 2024 +0930 1 file changed, 2 insertions(+), 1 deletion(-) [main 008624d2da] fixup! use common.platformTimeout Author: jakecastelli <959672929@qq.com> Date: Tue Jun 4 20:49:49 2024 +0930 1 file changed, 2 insertions(+), 2 deletions(-) [main 5e225afa4d] fixup! remove slow process as its not needed Author: jakecastelli <959672929@qq.com> Date: Tue Jun 4 23:44:27 2024 +0930 1 file changed, 13 insertions(+), 17 deletions(-) ✔ Patches applied There are 5 commits in the PR. Attempting autorebase. Rebasing (2/10)https://github.com/nodejs/node/actions/runs/9450518114 |
Landed in 8e6901a |
PR-URL: nodejs#53213 Fixes: nodejs#51987 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
PR-URL: nodejs#53213 Fixes: nodejs#51987 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Fixes: #51987 (attempt to).
Please let me know if I am on the right track as I could be missing some important stuff here. If the fix is on the right track I will add a test.
EDIT: I have added a test.