GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — stream: second batch of stream/iter fixes by jasnell · Pull Request #65658 · nodejs/node

Conversation

@jasnell

@jasnell jasnell commented Aug 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Builds off #65652 .. will remain draft util that batch lands and this can be rebased... The first 10 commits are from the other PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jasnell
jasnell requested a review from trivikr August 30, 2026 04:36
@nodejs-github-bot

nodejs-github-bot commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic
  • @nodejs/streams
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added lib / src Issues and PRs involving general changes in the lib/ or src/ directories. needs-ci PRs that need a full CI run. labels Aug 30, 2026
@codecov

codecov Bot commented Aug 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.26719% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.99%. Comparing base (d927160) to head (9fcfe31).
⚠️ Report is 49 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/streams/iter/pull.js 87.17% 9 Missing and 1 partial ⚠️
lib/internal/streams/iter/push.js 86.95% 5 Missing and 1 partial ⚠️
lib/internal/streams/iter/from.js 84.61% 2 Missing ⚠️
lib/internal/fs/promises.js 94.11% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main   #65658    +/-   ##
========================================
  Coverage   89.98%   89.99%            
========================================
  Files         757      758     +1     
  Lines      257634   257773   +139     
  Branches    48857    48821    -36     
========================================
+ Hits       231844   231978   +134     
+ Misses      16897    16886    -11     
- Partials     8893     8909    +16     
Files with missing lines Coverage Δ
lib/internal/quic/quic.js 100.00% <100.00%> (ø)
lib/internal/streams/iter/broadcast.js 89.49% <100.00%> (+0.93%) ⬆️
lib/internal/streams/iter/classic.js 89.22% <100.00%> (-0.07%) ⬇️
lib/internal/streams/iter/consumers.js 96.94% <100.00%> (+0.17%) ⬆️
lib/internal/streams/iter/duplex.js 97.22% <100.00%> (-0.17%) ⬇️
lib/internal/streams/iter/share.js 87.45% <100.00%> (+0.07%) ⬆️
lib/internal/streams/iter/utils.js 98.44% <100.00%> (-0.67%) ⬇️
lib/internal/streams/iter/webidl.js 100.00% <100.00%> (ø)
lib/internal/fs/promises.js 92.24% <94.11%> (-0.06%) ⬇️
lib/internal/streams/iter/from.js 88.83% <84.61%> (+0.49%) ⬆️
... and 2 more

... and 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bjohansebas
bjohansebas approved these changes Aug 30, 2026
View reviewed changes
@trivikr
trivikr marked this pull request as draft August 30, 2026 21:57
@jasnell
jasnell force-pushed the jasnell/stream-iter-fixes-2 branch 4 times, most recently from 0ce2d79 to ae3ddda Compare August 31, 2026 23:13
jasnell added 12 commits September 2, 2026 13:16
@jasnell
stream: canWrite and ondrain now reflect physical capacity
9b34191
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: ensure factory signals remain active through closing
9f50e02
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: ensure async dispoal after endSync awaits for drain
14ba0d5
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: ensure pre-existing writes drain before EOF and end() waits
8f679be
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: pre-aborted pipeTo now applies dest failure handling
dc18150
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: make pipeTo source normalization independent of Writer
2a39d91
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: make consumer signals on longer alter source precedence
2488293
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: apply source normalization once at call time
997df07
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: ensure from() observes returned rejecting promise correctly
4d02084
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: fix nested async flushing with infinite sources
091e3a1
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: ensure that stateful transforms preserve this
3c3b4bb
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
stream: use webidl validation semantics for args
9fcfe31
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
@jasnell
jasnell force-pushed the jasnell/stream-iter-fixes-2 branch from ae3ddda to 9fcfe31 Compare September 2, 2026 13:16
@jasnell
jasnell marked this pull request as ready for review September 2, 2026 13:16
@jasnell

jasnell commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

@trivikr ... this one is ready to review now! I've got a whole stack of additional fixes beyond this set also, just fyi

trivikr reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
@nodejs-github-bot

nodejs-github-bot commented Sep 2, 2026 •
edited by jasnell
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/76912/ 💚

Update: CI job actually was successful but encountered an error on cleanup, for some reason:

04:09:36 quiet period for node-test-commit is 0 seconds.Finished Build : [#91668](https://ci.nodejs.org/job/node-test-commit/91668//) of Job : [node-test-commit](https://ci.nodejs.org/job/node-test-commit/) with status : [SUCCESS](https://ci.nodejs.org/job/node-test-commit/91668//console) at 04:09:36
04:09:36 Starting to gather test results!
04:09:36 FATAL: Channel "hudson.remoting.Channel@6e0b4b29:JNLP4-connect connection from 67.158.54.159/67.158.54.159:35050": Remote call on JNLP4-connect connection from 67.158.54.159/67.158.54.159:35050 failed. The channel is closing down or has closed down

Given how terribly backed up CI has been here recently, I'm going to avoid unnecessarily running it Yet Again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

trivikr
trivikr approved these changes Sep 3, 2026
View reviewed changes
@trivikr trivikr added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 3, 2026
aduh95 pushed a commit that referenced this pull request Sep 7, 2026
@jasnell @aduh95
stream: pre-aborted pipeTo now applies dest failure handling
0b859b1
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 7, 2026
@jasnell @aduh95
stream: make pipeTo source normalization independent of Writer
04406b8
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 7, 2026
@jasnell @aduh95
stream: make consumer signals on longer alter source precedence
6e1e4cc
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 7, 2026
@jasnell @aduh95
stream: apply source normalization once at call time
d8f6dd6
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 7, 2026
@jasnell @aduh95
stream: ensure from() observes returned rejecting promise correctly
52b7199
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 7, 2026
@jasnell @aduh95
stream: fix nested async flushing with infinite sources
3816b8f
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 7, 2026
@jasnell @aduh95
stream: ensure that stateful transforms preserve this
c6979b4
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 7, 2026
@jasnell @aduh95
stream: use webidl validation semantics for args
2f5a60f
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: canWrite and ondrain now reflect physical capacity
2dc09ca
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: ensure factory signals remain active through closing
042b951
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: ensure async dispoal after endSync awaits for drain
7567734
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: ensure pre-existing writes drain before EOF and end() waits
7308492
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: pre-aborted pipeTo now applies dest failure handling
037c07a
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: make pipeTo source normalization independent of Writer
56bdd76
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: make consumer signals on longer alter source precedence
edb83cb
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: apply source normalization once at call time
cafdee6
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: ensure from() observes returned rejecting promise correctly
3ad1338
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: fix nested async flushing with infinite sources
2322099
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: ensure that stateful transforms preserve this
649a4ab
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 15, 2026
@jasnell @aduh95
stream: use webidl validation semantics for args
76538d5
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 19, 2026
@jasnell @aduh95
stream: ensure factory signals remain active through closing
2b31b0d
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 19, 2026
@jasnell @aduh95
stream: ensure async dispoal after endSync awaits for drain
05d1166
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 19, 2026
@jasnell @aduh95
stream: pre-aborted pipeTo now applies dest failure handling
fa50684
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 19, 2026
@jasnell @aduh95
stream: make pipeTo source normalization independent of Writer
43c8dcc
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 19, 2026
@jasnell @aduh95
stream: apply source normalization once at call time
cfd2191
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 19, 2026
@jasnell @aduh95
stream: ensure from() observes returned rejecting promise correctly
8c84ed6
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 19, 2026
@jasnell @aduh95
stream: fix nested async flushing with infinite sources
9b215f2
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 19, 2026
@jasnell @aduh95
stream: ensure that stateful transforms preserve this
e45e535
Signed-off-by: James M Snell <[email protected]>
Assisted-by: Opencode
PR-URL: #65658
Reviewed-By: Trivikram Kamat <[email protected]>
@github-actions github-actions Bot mentioned this pull request Oct 11, 2026
2026-10-14, Version 24.22.0 'Krypton' (LTS) #66667
Merged
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
2026-11-30, Version 24.23.0 'Krypton' (LTS) #67663
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@trivikr trivikr trivikr approved these changes
@mcollina mcollina Awaiting requested review from mcollina
@Ethan-Arrowood Ethan-Arrowood Awaiting requested review from Ethan-Arrowood
+1 more reviewer
@bjohansebas bjohansebas bjohansebas approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. lib / src Issues and PRs involving general changes in the lib/ or src/ directories. needs-ci PRs that need a full CI run.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@jasnell @nodejs-github-bot @trivikr @bjohansebas
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.