net: fix onread with shared buffers #67710
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.55 · 3 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
hey @mcollina, my #67394 CI run hit this shared buffer case after #67542 landed. figured i'd send a small follow-up.
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>
</details>
Approved
Approved these changes.
Approved
Approved these changes.
jasnell
fatihguzeldev
#67542 added a
.detachedcheck after theonreadcallback. thegetter 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 thata TCP socket can keep reading into shared buffers from the factory.