test: fix zipinfo non-ascii check in test-zlib-zip-interop #66978
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 178 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
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.310
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #66978"
general
weight: 0.35
vedchaudhari
Fixes: https://github.com/nodejs/node/issues/66975
Problem
In
test/parallel/test-zlib-zip-interop.js,zipinfoUnicodeis evaluated as/UNICODE_SUPPORT/.test(unzip -v). However, stock Info-ZIP builds (common on Linux distros such as NixOS, Arch Linux, Alpine, and Debian) still sanitize non-ASCII bytes to'?'infnfilter()unless patched with wide-character/UTF-8 printing support (e.g.USE_NATSPECoralt-iconv-utf8-print).On these systems,
zipinfooutputsunicode-??.txt(orunicode-??????.txt) instead ofunicode-名前.txt, which causes the assertion:to fail.
Solution
When checking
zipinfooutput:zipinfolisted the entry with'?'placeholders.The actual UTF-8 decoding and round-trip extraction continue to be verified by
bsdtardirectly afterwards.Verification
node tools/eslint/node_modules/eslint/bin/eslint.js test/parallel/test-zlib-zip-interop.js(clean, 0 warnings/errors).zipinfoexecution on Linux (NixOS) where stock Info-ZIP printsunicode-??.txt(clean pass).