FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stream: update iterable streams to use budget backpressure by jasnell · Pull Request #64464 · nodejs/node · GitHub

/ node Public

stream: update iterable streams to use budget backpressure - #64464

Closed
jasnell wants to merge 3 commits into
nodejs:mainfrom
jasnell:jasnell/iter-streams-backpressure-new
Closed

stream: update iterable streams to use budget backpressure#64464
jasnell wants to merge 3 commits into
nodejs:mainfrom
jasnell:jasnell/iter-streams-backpressure-new

Conversation

jasnell commented Jul 13, 2026

Copy link
Copy Markdown
Member

WinterTC55/iter-streams#23 updated the backpressure model in the iterable streams specification to use a byte-budget model. This PR updates the implementation to match.

Signed-off-by: James M Snell jasnell@gmail.com
Assisted-by: Opencode/Opus

jasnell requested review from mcollina and trivikr July 13, 2026 00:27
jasnell added stream Issues and PRs related to the stream subsystem. experimental Issues and PRs related to experimental features. labels Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic
  • @nodejs/streams

nodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Jul 13, 2026

codecov Bot commented Jul 13, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.54054% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.12%. Comparing base (efc0a14) to head (da87db0).
⚠️ Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/streams/iter/share.js 77.04% 14 Missing ⚠️
lib/internal/streams/iter/broadcast.js 93.33% 3 Missing ⚠️
lib/internal/streams/iter/classic.js 66.66% 1 Missing and 1 partial ⚠️
lib/internal/streams/iter/push.js 96.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64464      +/-   ##
==========================================
+ Coverage   90.11%   90.12%   +0.01%     
==========================================
  Files         741      741              
  Lines      242196   242159      -37     
  Branches    45606    45611       +5     
==========================================
- Hits       218246   218237       -9     
  Misses      15438    15438              
+ Partials     8512     8484      -28     
Files with missing lines Coverage Δ
lib/internal/quic/quic.js 100.00% <100.00%> (ø)
lib/internal/quic/state.js 100.00% <100.00%> (ø)
lib/internal/streams/iter/duplex.js 96.35% <100.00%> (ø)
lib/internal/streams/iter/pull.js 84.12% <100.00%> (+0.25%) ⬆️
lib/internal/streams/iter/utils.js 98.22% <100.00%> (-0.06%) ⬇️
lib/internal/streams/iter/classic.js 89.31% <66.66%> (-0.02%) ⬇️
lib/internal/streams/iter/push.js 90.92% <96.66%> (-0.26%) ⬇️
lib/internal/streams/iter/broadcast.js 86.24% <93.33%> (+0.24%) ⬆️
lib/internal/streams/iter/share.js 85.31% <77.04%> (+0.31%) ⬆️

... and 35 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.

Comment thread doc/api/stream_iter.md Outdated
Comment thread lib/internal/streams/iter/broadcast.js Outdated
Comment thread lib/internal/streams/iter/push.js Outdated
Comment thread lib/internal/streams/iter/utils.js Outdated
jasnell force-pushed the jasnell/iter-streams-backpressure-new branch from 939e46e to 9ae61ff Compare July 20, 2026 22:31
jasnell requested a review from pimterry July 20, 2026 22:34

This comment was marked as outdated.

jasnell force-pushed the jasnell/iter-streams-backpressure-new branch from 9ae61ff to c55171f Compare July 20, 2026 22:48

This comment was marked as outdated.

This comment was marked as outdated.

jasnell force-pushed the jasnell/iter-streams-backpressure-new branch from c55171f to efe85ee Compare July 21, 2026 13:31

This comment was marked as low quality.

jasnell force-pushed the jasnell/iter-streams-backpressure-new branch from efe85ee to 5f41022 Compare July 21, 2026 23:58

This comment was marked as outdated.

This comment was marked as outdated.

trivikr 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

This comment was marked as outdated.

This comment was marked as outdated.

Updates the implementation to use the updated backpressure
model that landed here: WinterTC55/iter-streams#23

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus
jasnell added 2 commits July 22, 2026 10:42
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus
jasnell force-pushed the jasnell/iter-streams-backpressure-new branch from f059d7e to da87db0 Compare July 22, 2026 17:43

This comment was marked as outdated.

nodejs-github-bot commented Jul 23, 2026
edited by jasnell
Loading

Copy link
Copy Markdown
Collaborator

Ethan-Arrowood 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'm still getting familiar with the iter-streams proposal and quic implementation. LGTM.

trivikr commented Jul 23, 2026

Copy link
Copy Markdown
Member

From CI and approvals perspective, this PR is ready to merge unless author needs review from all requested reviewers.

The latest https://ci.nodejs.org/job/node-test-commit-osx/71672/ is successful, and GitHub UI is showing the old one for some reason.

This comment was marked as duplicate.

jasnell added a commit that referenced this pull request Jul 23, 2026
Updates the implementation to use the updated backpressure
model that landed here: WinterTC55/iter-streams#23

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus
PR-URL: #64464
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
jasnell added a commit that referenced this pull request Jul 23, 2026
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus
PR-URL: #64464
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
jasnell added a commit that referenced this pull request Jul 23, 2026
PR-URL: #64464
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>

jasnell commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

Landed in 82c823e...3437feb

jasnell closed this Jul 23, 2026
aduh95 pushed a commit that referenced this pull request Jul 30, 2026
Updates the implementation to use the updated backpressure
model that landed here: WinterTC55/iter-streams#23

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus
PR-URL: #64464
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
aduh95 pushed a commit that referenced this pull request Jul 30, 2026
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus
PR-URL: #64464
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
aduh95 pushed a commit that referenced this pull request Jul 30, 2026
PR-URL: #64464
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
aduh95 pushed a commit that referenced this pull request Aug 6, 2026
Updates the implementation to use the updated backpressure
model that landed here: WinterTC55/iter-streams#23

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus
PR-URL: #64464
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
aduh95 pushed a commit that referenced this pull request Aug 6, 2026
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus
PR-URL: #64464
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
aduh95 pushed a commit that referenced this pull request Aug 6, 2026
PR-URL: #64464
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

experimental Issues and PRs related to experimental features. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL