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

stream: fix Readable stream state properties #34886

Closed
wants to merge 2 commits into from

Conversation

lundibundi
Copy link
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

@lundibundi lundibundi added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@nodejs-github-bot nodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Aug 23, 2020
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@nodejs-github-bot
Copy link
Collaborator

lib/_stream_readable.js Show resolved Hide resolved
Copy link
Member

@ronag ronag left a comment

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
Copy link
Member

lpinca commented Aug 23, 2020

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
Copy link
Member

ronag commented Aug 23, 2020

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
Member

lpinca commented Aug 23, 2020

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

@lpinca
Copy link
Member

lpinca commented Aug 23, 2020

The change on #31144 was unintentional and broken anyway.

@lundibundi
Copy link
Member Author

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
Member

ronag commented Aug 23, 2020

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
Member Author

@ronag oh, that makes sense 😄

Looks like they have been accidentally moved in
nodejs#31144.
@lundibundi lundibundi added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@nodejs-github-bot
Copy link
Collaborator

@ronag
Copy link
Member

ronag commented Aug 23, 2020

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

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

@lundibundi
Copy link
Member Author

@ronag yep, #34594

lib/_stream_readable.js Outdated Show resolved Hide resolved
@lundibundi lundibundi added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 23, 2020
@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@antsmartian antsmartian left a comment

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 :/

@mcollina mcollina added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 24, 2020
@github-actions github-actions bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 24, 2020
@github-actions
Copy link
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-actions github-actions bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Aug 24, 2020
@lundibundi lundibundi removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Aug 25, 2020
@lundibundi lundibundi added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 1, 2020
@github-actions github-actions bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 1, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2020

Landed in e2ffa45

@github-actions github-actions bot closed this Sep 1, 2020
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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Zeyu Yang <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Ricky Zhou <[email protected]>
@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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Zeyu Yang <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Ricky Zhou <[email protected]>
@richardlau richardlau 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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Zeyu Yang <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Ricky Zhou <[email protected]>
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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Zeyu Yang <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Ricky Zhou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants