fix(runtime): restore Node-API host build after Buffer refactor - #9282
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe change qualifies the Buffer ownership predicate in ChangesBuffer validation
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This restores the feature-gated Node-API host build without changing the checked-in ABI inventory; native addons can link and authenticate as intended. No actionable merge-blocking risk remains beyond normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Linked Issues checkExplanation The PR addresses issue Full details: Docstring CoverageExplanation Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Merged, and thank you — this is fallout from PRs I merged (#9205 and #9213, the Buffer branding split), so the break is on me. Reproduced both directions rather than taking the description: The one-line qualification is right and matches what line 136 in the same file already does, so the file is now internally consistent rather than half-migrated. Why I missed it, since that is the useful part. That is the third distinct hole I have found in my own validation today, and they are all the same shape — a green that covers one job, one profile, or one feature set, read as if it covered CI:
A |
Summary
Restore the feature-gated Node-API host build after the Buffer branding refactor so allowlisted native addons link the complete host ABI and load their authenticated sidecars.
Changes
is_node_bufferhelper fromcrate::bufferinnapi_get_buffer_info.Related issue
Fixes #9266
Test plan
cargo build --release -p perry-runtime-static -p perry-stdlib-static --no-default-features --features perry-runtime/full,perry-stdlib/async-runtime,perry-runtime/node-api-host,perry-runtime/global-math,perry-runtime/global-webcrypto,perry-runtime/alloc-mimalloc,perry-runtime/keepalive-anchorsRUST_TEST_THREADS=1 cargo test -p perry-runtime --features node-api-host node_api_host::(17 passed)RUST_TEST_THREADS=1 cargo test -p perry --test node_api_host_e2e real_node_api_addon_resolves_from_host_and_authenticates_sidecar -- --exact --nocaptureRUST_TEST_THREADS=1 cargo test -p perry --test node_api_host_e2e published_napi_rs_addon_runs_sync_and_async_work -- --exact --nocapturecargo fmt --all -- --checkChecklist
feat:/fix:/docs:/chore:prefix convention used in the logSummary by CodeRabbit