Repository navigation
fix(ci): repair npm 12 packaging and advisor gate - #11804
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe pull request updates the review workflow runtime and adds shared helpers for parsing, batching, and packing npm archives. End-to-end installation tests use local archive URLs, support multiple npm metadata formats, and use Changesnpm archive installation
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The updated fixture can complete its initial install without the optional SDK archive, then materializes the archives before the installation path that needs them. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 9b3c37e in the TypeScript / code-coverage/cliThe overall line coverage in commit 9b3c37e in the Show a line coverage summary of the most impacted files.
Updated |
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
Outcome
OpenShell SDK E2E fixture packaging now works with npm 11 and npm 12 output formats without losing duplicate package names. The Advisor blocker gate now uses the repository-reviewed Node and npm identities.
Reason
npm 12 returns keyed metadata for multi-package
npm pack --jsoncalls and can collapse duplicate package names. Separately, the Advisor blocker job used a Node 22 range and omitted the reviewed npm setup required by the repository invariant.Changes
Verification
openshell-sdk-installE2E support suite with npm 11.19.0 — 17 tests passed.openshell-sdk-installE2E support suite with npm 12.0.2 — 17 tests passed.npm run test:changed— passed.node_modules/.bin/vitest run --project integration test/repository/github-actions-node-npm-invariant.test.ts test/automation/pull-requests/pr-workflow-contract.test.ts test/automation/pull-requests/pr-review-advisor-blocker-gate.test.ts— 87 tests passed.git diff --check origin/main...HEADand manual diff inspection — passed; the diff contains no secrets, API keys, or credentials.Review notes
.github/workflows/pr-review-advisor.yamlis a contributor-sensitive path. An agent self-review compared NVIDIA/NemoClaw commit9b3c37e78be60d6792fdaec6ca2cce956063ef5ewith canonical basebe46805b51b0d626466538e9f8fe56c8ad157549. The review confirmed that workflow permissions and trusted checkout boundaries are unchanged, the existing setup-node identity remains pinned, and the added reviewed-npm action uses the repository pin. No independent pre-publication review was observed; this draft awaits review.Signed-off-by: Kao Félix [email protected]
Summary by CodeRabbit
Tests
Chores