Skip to content

stream: preserve push signal abort reason - #64798

Open
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:stream-iter-push-abort-signal-reason
Open

stream: preserve push signal abort reason#64798
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:stream-iter-push-abort-signal-reason

Conversation

@trivikr

@trivikr trivikr commented Jul 28, 2026

Copy link
Copy Markdown
Member

Fixes: #64797

The push stream's stream-wide abort handler only forwarded the signal's
reason when it was an Error. Valid non-Error reasons, such as strings and
numbers, were replaced with a new AbortError.

Pass signal.reason directly to writer.fail() so the writer fails with the
original reason.


Assisted-by: codex:gpt-5.6-sol

Pass the stream-wide signal reason directly to writer.fail() so valid
non-Error abort reasons are not replaced with an AbortError.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: codex:gpt-5.6-sol
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem. labels Jul 28, 2026
@trivikr trivikr added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Jul 28, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 28, 2026
@nodejs-github-bot

This comment was marked as outdated.

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.12%. Comparing base (6a3d80f) to head (a00e58b).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64798      +/-   ##
==========================================
- Coverage   90.16%   90.12%   -0.04%     
==========================================
  Files         744      744              
  Lines      242518   242516       -2     
  Branches    45705    45695      -10     
==========================================
- Hits       218670   218574      -96     
- Misses      15357    15443      +86     
- Partials     8491     8499       +8     
Files with missing lines Coverage Δ
lib/internal/streams/iter/push.js 91.03% <100.00%> (+0.10%) ⬆️

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

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

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

stream/iter: push() replaces non-Error signal abort reasons

3 participants