← Back to Pull requests

net: fix onread with shared buffers #67710

Open
fatihguzeldev opened this pull request with 41 lines diff across 2 files
View on GitHub
fatihguzeldev fatihguzeldev commented on Nov 22, 2026 20:50 UTC
Author

#67542 added a .detached check after the onread callback. the
getter throws when the buffer is backed by a SharedArrayBuffer.
this showed up in #67394's CI.

only call the getter on an ArrayBuffer. the new test checks that
a TCP socket can keep reading into shared buffers from the factory.

Diff: 41 lines (+37 / -4) across 2 files Reviewer: jasnell Review duration: 14096m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.27) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.27 · 41 lines diff across 2 files
0.27
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.55 · 3 substantive comment(s)
0.55
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
72%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.224
Real PR Conversation Timeline
6 items
fatihguzeldev fatihguzeldev commented on Nov 22, 2026 20:50 UTC
Author

hey @mcollina, my #67394 CI run hit this shared buffer case after #67542 landed. figured i'd send a small follow-up.

codecov[bot] codecov[bot] commented on Nov 22, 2026 22:27 UTC
Bot

Codecov Report


:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 90.54%. Comparing base (97d5d90) to head (1a711b5).
:warning: Report is 55 commits behind head on main.

<details><summary>Additional details and impacted files</summary>

@@            Coverage Diff             @@
##             main   #67710      +/-   ##
==========================================
- Coverage   90.55%   90.54%   -0.01%     
==========================================
  Files         801      801              
  Lines      284111   284116       +5     
  Branches    54879    54876       -3     
==========================================
- Hits       257279   257265      -14     
- Misses      17006    17010       +4     
- Partials     9826     9841      +15     

| Files with missing lines | Coverage Δ | |
|---|---|---|
| lib/internal/stream\_base\_commons.js | 96.06% <100.00%> (+0.03%) | :arrow_up: |

... and 30 files with indirect coverage changes
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    jasnell jasnell approved these changes on Nov 22, 2026 23:53 UTC
    Approved Reviewer

    Approved these changes.

    Ethan-Arrowood Ethan-Arrowood approved these changes on Nov 24, 2026 19:33 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    fatihguzeldev fatihguzeldev
    Labels
    risk: low confidence: 72.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 26.8% (LOW) · Higher = larger blast radius
    26.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 72.1% · Lower = rushed or shallow review
    72.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 7.5% · Safe to merge
    7.5%
    Repository