test: cover immutable ArrayBuffer known issues #66350
All Vouch review confidence checks passed
Residual risk 0.11 = Change Risk (0.61) × (1 − Review Confidence (0.82)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.61 · 896 lines diff across 13 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.74 · 5 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.400
Real PR Conversation Timeline
17 items
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 90.92%. Comparing base (
3641c36) to head (bb73a20).:warning: Report is 208 commits behind head on main.
<details><summary>Additional details and impacted files</summary>
@@ Coverage Diff @@
## main #66350 +/- ##
==========================================
+ Coverage 90.36% 90.92% +0.56%
==========================================
Files 792 793 +1
Lines 275386 283479 +8093
Branches 52770 60259 +7489
==========================================
+ Hits 248859 257760 +8901
+ Misses 16936 16315 -621
+ Partials 9591 9404 -187
see 119 files with indirect coverage changes
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>
</details>
Approved
Approved these changes.
LGTM, but we should try and fix these rather than marking them as known issues. I'll work on fs.
nit
if (err?.name !== 'TypeError') throw err;
it would be interesting to have a comment explaining why an optional
TypeError is fine here, shouldn't we add assert.throws when applicable in mutate instead?Why not known_issues?
new TextEncoder().encodeInto(input, destination);
or
assert.throws(() => new TextEncoder().encodeInto(input, destination), {
name: 'TypeError',
});
I think I'd rather have WET code in this file
await read(buffer);
or
await assert.rejects(read(buffer), { name: 'TypeError' });
Why do we use that on top of the // Flags comment on top? Also, why that timeout?
bytesRead = await read(store, fd, target);
Same here, we should assert, not optionally catch
Approved
Approved these changes.
@panva I think the CI failures are coming from the fact that I backported a V8 ArrayBuffer fix that resolves a few of the known issues :-)
@panva I think the CI failures are coming from the fact that I backported a V8 ArrayBuffer fix that resolves a few of the known issues :-)
Why are we backporting things for a flagged V8 feature?
avivkeller
panva
Cover native writes, immutable source copies, and view serialization across the affected API families. Exercise the Node-API detach abort using the existing typed-array addon and mark it as an expected failure.
Refs: https://github.com/nodejs/node/issues/66346