Skip to content

stdio: lazy read ReadStream - #36823

Closed
ronag wants to merge 2 commits into
nodejs:masterfrom
nxtedition:stdin-lazy
Closed

stdio: lazy read ReadStream#36823
ronag wants to merge 2 commits into
nodejs:masterfrom
nxtedition:stdin-lazy

Conversation

@ronag

@ronagronag commented Jan 6, 2021

Copy link
Copy Markdown
Member

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

@ronagronag added the stream Issues and PRs related to the stream subsystem. label Jan 6, 2021
@ronag

ronag commented Jan 6, 2021

Copy link
Copy Markdown
MemberAuthor

This supersedes #36277

@ronag
ronag requested review from lpinca and mcollinaJanuary 6, 2021 22:24
@ronag

ronag commented Jan 6, 2021

Copy link
Copy Markdown
MemberAuthor

@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

@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

@ronagronag 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

ronag commented Jan 6, 2021

Copy link
Copy Markdown
MemberAuthor

@nodejs/streams

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

Copy link
Copy Markdown
Collaborator

@ronagronag added the v15.x label Jan 6, 2021
@ronag
ronag requested a review from jasnellJanuary 6, 2021 23:21

@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

@addaleaxaddaleax removed the v15.x label Jan 8, 2021
@addaleax

Copy link
Copy Markdown
Member

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

@ronag
ronag requested a review from addaleaxJanuary 9, 2021 17:06
@ronag

ronag commented Jan 9, 2021

Copy link
Copy Markdown
MemberAuthor

@vweevers

@ronagronag added review wanted PRs that need reviews. and removed review wanted PRs that need reviews. labels Jan 10, 2021
@ronagronag added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 10, 2021
@github-actionsgithub-actionsBot 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
Copy Markdown
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
Copy Markdown
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 <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@ronag

Copy link
Copy Markdown
MemberAuthor

Landed in 053abac

@ronagronag 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 <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@danielleadamsdanielleadams mentioned this pull request Jan 12, 2021
@targostargos removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Sep 5, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.streamIssues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@ronag@nodejs-github-bot@addaleax@mcollina@benjamingr@targos@mmomtchev