LLMQ: Handle empty contribution batches - #1929
Conversation
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
User descriptionHandle contribution batches that become empty after filtering, and complete empty BLS verification requests immediately. This prevents DKG phase processing from waiting indefinitely and adds focused regression coverage. CodeAnt-AI DescriptionPrevent empty DKG contribution batches from getting stuck What Changed
Impact
💡 Usage GuideChecking Your Pull RequestEvery time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later. Talking to CodeAnt AIGot a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask: This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code. ExamplePreserve Org Learnings with CodeAntYou can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input: This helps CodeAnt AI learn and adapt to your team's coding style and standards. ExampleRetrigger reviewAsk CodeAnt AI to review the PR again, by typing: Check Your Repository HealthTo analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. Summary by CodeRabbit
WalkthroughThe change adds early returns for empty contribution verification inputs in the BLS worker and DKGS session. A BLS test verifies that empty aggregated and non-aggregated inputs invoke the callback with an empty result. ChangesEmpty contribution verification handling
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Empty contribution batches now complete without stalling DKG processing, while non-empty verification behavior remains unchanged. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the intended fix, its effect on DKG processing, and the added regression coverage. It does not use the template headings, but it provides the required intention and code-change information.
✨ 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 |
CodeAnt Nitpicks1 code suggestion1. When
|
reubenyap
left a comment
There was a problem hiding this comment.
I reviewed both synchronous and asynchronous empty-input behavior and traced the DKG path where every queued contributor becomes invalid before verification. The member-index, verification-vector, and secret-share collections are built in lockstep; the new guard safely drains the moved queue and avoids constructing the verifier with zero inputs. The focused tests and full CI matrix are green; I found no actionable defect.
Handle contribution batches that become empty after filtering, and complete empty BLS verification requests immediately. This prevents DKG phase processing from waiting indefinitely and adds focused regression coverage.
Upstream: Dash PR #7486.