Skip to content

stream: fix Readable stream state properties - #34886

Closed
lundibundi wants to merge 2 commits into
nodejs:masterfrom
lundibundi:fix-stream-getter-props
Closed

stream: fix Readable stream state properties#34886
lundibundi wants to merge 2 commits into
nodejs:masterfrom
lundibundi:fix-stream-getter-props

Conversation

@lundibundi

Copy link
Copy Markdown
Member

Looks like they have been accidentally moved in
#31144. This also adds the proxy
properties to Readable since they have been present all this time
and removing them would be breaking.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

/cc @nodejs/streams @antsmartian

@lundibundilundibundi added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@nodejs-github-botnodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Aug 23, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment threadlib/_stream_readable.js

@ronagronag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The properties are already defined below? Also would need tests.

EDIT: Something is weird here. I think you should remove the properties from Readable and like you do add them to ReadableState instead. Looks like a mistake in #31144.

@lpinca

lpinca commented Aug 23, 2020

Copy link
Copy Markdown
Member

The properties are already defined below? Also would need tests.

One definition is on Readable, the other is on ReadableState. It looks like no reviewer noticed this in #31144 :/

@ronag

ronag commented Aug 23, 2020

Copy link
Copy Markdown
Member

One definition is on Readable

I think it was moved to Readable by mistake and should have been on ReadableState. Any chance we could remove it from Readable?

@lpinca

Copy link
Copy Markdown
Member

I'm 👍 on keeping these only on ReadableState as it originally was before #31144.

@lpinca

Copy link
Copy Markdown
Member

The change on #31144 was unintentional and broken anyway.

@lundibundi

Copy link
Copy Markdown
MemberAuthor

I'm good with keeping them on state only but since they were present (though broken) on Readable I thought it'd be better to leave them on Readable as well.

Though I've used .paused to remove the readable state usage in http #34888, can we replace it with something else?

@ronag

Copy link
Copy Markdown
Member

Though I've used .paused to remove the readable state usage in http #34888, can we replace it with something else?

isPaused()?

@lundibundi

Copy link
Copy Markdown
MemberAuthor

@ronag oh, that makes sense 😄

Looks like they have been accidentally moved in
nodejs#31144.
@lundibundi
lundibundiforce-pushed the fix-stream-getter-props branch from caeb4e8 to 9cc6c1fCompareAugust 23, 2020 10:30
@lundibundilundibundi added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ronag

Copy link
Copy Markdown
Member

What's request-ci label? Is there some bot that looks at that and starts ci automatically?

@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@lundibundi

Copy link
Copy Markdown
MemberAuthor

@ronag yep, #34594

Comment threadlib/_stream_readable.js Outdated
@lundibundilundibundi added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@mcollinamcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@antsmartianantsmartian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I missed it somehow :/

@mcollinamcollina added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 24, 2020
@github-actionsgithub-actionsBot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 24, 2020
@github-actions

Copy link
Copy Markdown
Contributor
Commit Queue failed
- Loading data for nodejs/node/pull/34886
✔ Done loading data for nodejs/node/pull/34886
----------------------------------- PR info ------------------------------------
Title stream: fix Readable stream state properties (#34886)
⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch lundibundi:fix-stream-getter-props -> nodejs:master
Labels stream
Commits 2
- stream: fix Readable stream state properties
- fixup! stream: fix Readable stream state properties
Committers 1
- Denys Otrishko PR-URL: https://github.com/nodejs/node/pull/34886
Reviewed-By: Robert Nagy Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina Reviewed-By: Zeyu Yang Reviewed-By: Anto Aravinth ------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/34886
Reviewed-By: Robert Nagy Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina Reviewed-By: Zeyu Yang Reviewed-By: Anto Aravinth --------------------------------------------------------------------------------
ℹ Last Full PR CI on 2020-08-23T10:56:51Z: https://ci.nodejs.org/job/node-test-pull-request/32901/
- Querying data of job/node-test-pull-request/32901/
✔ Build data downloaded
ℹ This PR was created on Sun, 23 Aug 2020 09:24:58 GMT
✔ Approvals: 5
✔ - Robert Nagy (@ronag): https://github.com/nodejs/node/pull/34886#pullrequestreview-472999909
✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/34886#pullrequestreview-472996953
✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/34886#pullrequestreview-473001353
✔ - Zeyu Yang (@himself65): https://github.com/nodejs/node/pull/34886#pullrequestreview-473012786
✔ - Anto Aravinth (@antsmartian): https://github.com/nodejs/node/pull/34886#pullrequestreview-473059639
✖ This PR needs to wait 27 more hours to land
--------------------------------------------------------------------------------
✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu

@github-actionsgithub-actionsBot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Aug 24, 2020
@lundibundilundibundi removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Aug 25, 2020
@lundibundilundibundi added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 1, 2020
@github-actionsgithub-actionsBot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 1, 2020
@github-actions

Copy link
Copy Markdown
Contributor

Landed in e2ffa45

nodejs-github-bot pushed a commit that referenced this pull request Sep 1, 2020
Looks like they have been accidentally moved in
#31144.
PR-URL: #34886
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
@lundibundi
lundibundi deleted the fix-stream-getter-props branch September 1, 2020 20:43
richardlau pushed a commit that referenced this pull request Sep 2, 2020
Looks like they have been accidentally moved in
#31144.
PR-URL: #34886
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
@richardlaurichardlau mentioned this pull request Sep 2, 2020
4 tasks
richardlau pushed a commit that referenced this pull request Sep 3, 2020
Looks like they have been accidentally moved in
#31144.
PR-URL: #34886
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
joesepi pushed a commit to joesepi/node that referenced this pull request Jan 8, 2021
Looks like they have been accidentally moved in
nodejs#31144.
PR-URL: nodejs#34886
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

streamIssues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@lundibundi@nodejs-github-bot@lpinca@ronag@mcollina@antsmartian@himself65@rickyes