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

stdio: lazy read ReadStream #36823

Closed
wants to merge 2 commits into from
Closed

Conversation

ronag
Copy link
Member

@ronag ronag commented Jan 6, 2021

All stdio ReadStream's use manual start to avoid
consuming data for example when a process
execs/spawns.

Using stream._construct would cause the Readable
to incorrectly greedily start reading.

Refs: #36251

@ronag ronag added the stream Issues and PRs related to the stream subsystem. label Jan 6, 2021
@ronag
Copy link
Member Author

ronag commented Jan 6, 2021

This supersedes #36277

@ronag ronag requested review from mcollina and lpinca January 6, 2021 22:24
@ronag
Copy link
Member Author

ronag commented Jan 6, 2021

@mmomtchev

All stdio ReadStream's use manual start to avoid
consuming data for example when a process
execs/spawns.

Using stream._construct would cause the Readable
to incorrectly greedily start reading.

Refs: nodejs#36251
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

@ronag ronag added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Jan 6, 2021
@ronag
Copy link
Member Author

ronag commented Jan 6, 2021

@nodejs/streams

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

@ronag ronag added the v15.x label Jan 6, 2021
@ronag ronag requested a review from jasnell January 6, 2021 23:21
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

@addaleax addaleax removed the v15.x label Jan 8, 2021
@addaleax
Copy link
Member

addaleax commented Jan 8, 2021

This is not a PR targeting v15.x, so I've removed the label.

@ronag ronag requested a review from addaleax January 9, 2021 17:06
@ronag
Copy link
Member Author

ronag commented Jan 9, 2021

@vweevers

@ronag ronag added review wanted PRs that need reviews. and removed review wanted PRs that need reviews. labels Jan 10, 2021
@ronag ronag added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 10, 2021
@github-actions github-actions bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Jan 10, 2021
@github-actions
Copy link
Contributor

Commit Queue failed
- Loading data for nodejs/node/pull/36823
✔  Done loading data for nodejs/node/pull/36823
----------------------------------- PR info ------------------------------------
Title      stdio: lazy read ReadStream (#36823)
Author     Robert Nagy  (@ronag)
Branch     ronag:stdin-lazy -> nodejs:master
Labels     author ready, stream
Commits    2
 - stdio: lazy read ReadStream
 - fixup: use needReadable
Committers 1
 - Robert Nagy 
PR-URL: https://github.com/nodejs/node/pull/36823
Refs: https://github.com/nodejs/node/issues/36251
Reviewed-By: Matteo Collina 
Reviewed-By: Benjamin Gruenbaum 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/36823
Refs: https://github.com/nodejs/node/issues/36251
Reviewed-By: Matteo Collina 
Reviewed-By: Benjamin Gruenbaum 
--------------------------------------------------------------------------------
   ✔  Last GitHub Actions successful
   ℹ  Last Full PR CI on 2021-01-06T23:06:21Z: https://ci.nodejs.org/job/node-test-pull-request/35342/
- Querying data for job/node-test-pull-request/35342/
✔  Build data downloaded
- Querying failures of job/node-test-commit/43421/
✔  Data downloaded
   ✖  6 failure(s) on the last Jenkins CI run
   ℹ  This PR was created on Wed, 06 Jan 2021 22:24:11 GMT
   ✔  Approvals: 2
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/36823#pullrequestreview-563341020
   ✔  - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/36823#pullrequestreview-564867931
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/475761868

@nodejs-github-bot
Copy link
Collaborator

ronag pushed a commit that referenced this pull request Jan 10, 2021
Using stream._construct would cause the Readable
to incorrectly greedily start reading.

Fixes: #36251

PR-URL: #36823
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@ronag
Copy link
Member Author

ronag commented Jan 10, 2021

Landed in 053abac

@ronag ronag closed this Jan 10, 2021
danielleadams pushed a commit that referenced this pull request Jan 12, 2021
Using stream._construct would cause the Readable
to incorrectly greedily start reading.

Fixes: #36251

PR-URL: #36823
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@danielleadams danielleadams mentioned this pull request Jan 12, 2021
@targos targos removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants