test: stabilize packed CLI fixture lifecycle - #209
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 21 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe package contract suite adds asynchronous installed-binary execution with output capture, timeout escalation, and Windows process-tree cleanup. Tests now cover pending binaries, doctor flows, failed initialization, and automation against a fake remote streamable HTTP upstream. ChangesPackage Contract Tests
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/package-contract.test.ts`:
- Around line 416-423: Update the synchronous runInstalledBinary implementation
to call installedBinaryInvocation(binary, args) and use its returned command and
args instead of duplicating the Windows-specific cmd.exe wrapping and
buildWindowsCommand logic. Preserve the existing execution behavior on both
Windows and non-Windows platforms.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 341d99a4-c883-48cb-8dcf-cc06cab3404f
📒 Files selected for processing (1)
tests/package-contract.test.ts
Fixes #205
What changed
shell: false; Windows timeout cleanup now uses an absoluteSystem32\\taskkill.exe /T /Fprocess-tree teardown.TDD and validation
npm test: 114 passed files, 1 skipped; 1,320 passed tests, 23 skipped.npm run test:coverage: same test counts; existing thresholds passed (95.4% statements/lines, 91.97% branches, 98.38% functions).npm run test:core,npm run lint,npm run typecheck,npm run build,npm run smoke:cli,npm run check:pack, andnpm run test:packageall passed.npm run test:package: 5/5 serial passes, with no residual fake fixture process.No production timeout, test scope, coverage threshold, or process containment was weakened.
Summary by CodeRabbit