fix(release): parse npm config output - #280
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe release finalizer now reads npm configuration as bounded raw UTF-8 instead of JSON. It validates registry and configuration paths, rejects malformed values, and preserves fail-closed behavior without mutations. Changesnpm configuration validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change makes the release finalizer correctly handle npm 11 configuration output while preserving strict registry and authentication safeguards; no actionable merge-blocking risk remains after normal checks and review. Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The changes address npm configuration parsing, registry pinning, fail-closed authentication checks, and regression coverage. They do not implement the linked issue's required dynamic package and version targeting for stable releases, so the release objective remains incomplete [ Resolution Implement dynamic derivation of reviewed package and version targets, then verify that protected-master, tag, GitHub Release, npm publication, and fail-closed safeguards remain enforced. Add or reference regression coverage for these requirements [
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
Linked issue
Closes #268
Type
Summary
npm config getoutput as bounded plain text instead of assuming--jsonreturns JSON.Failure evidence
Stable FINALIZE run 33446156507 stopped before publication with
effective npm registry returned malformed JSON. No stable npm package was published by that run.Test plan
Summary by CodeRabbit
Bug Fixes
Tests