Validate batch distribution sizes#260
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdded input validation to prevent infinite loops and silent failures in batch distribution utilities. A new ChangesInput validation for batch distribution
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add 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 |
Summary
config.maxRecipientsPerBatchbefore preparing equal or weighted batch distributionscreateBatchesdirectly so zero, negative, and fractional sizes cannot hang or silently no-opCloses #257
Validation
git diff --no-index --checkfor modified and new filespnpmis not installed; the patch was prepared from the GitHub API copy of the target files.Contact / payment
Summary by CodeRabbit
Bug Fixes
Tests