Conversation
When running with --toys N, can pick a specific toy to run over with --pickToy i, where i = 1..N. Allows used to pick out a toy previously generated with -M GenerateOnly. Also means global observables are correctly picked up too.
📝 WalkthroughWalkthroughAdds a toy-picking feature: a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/Combine.cc`:
- Around line 1031-1032: The formatting around the conditional using pickToy_
and iToy is failing the clang-format check; run git-clang-format HEAD~ to
auto-fix formatting or manually reformat the statement in Combine.cc so it
matches project clang-format rules (e.g., spacing around parentheses and
operators) for the expression "if ((pickToy_ != 0) && (iToy != pickToy_))
continue;" ensuring no logic changes to pickToy_ and iToy handling.
🧹 Nitpick comments (1)
bin/combine.cpp (1)
209-215: Consider warning when--pickToyis used without--toys.The validation correctly rejects out-of-range values when
runToys > 0. However, if a user specifies--pickToy 5without--toys(i.e.,runToys == 0), no error or warning is issued, and the option is silently ignored. This could lead to user confusion.Consider adding a warning:
💡 Suggested enhancement
if (runToys > 0 ){ if ( ( !vm["pickToy"].defaulted() ) && ( pickToy > runToys || pickToy <= 0) ){ std::cerr << "ERROR - set pickToy to values 1 to (N toys) cannot use pickToy=" << pickToy << std::endl; assert(0); } + } else if ( !vm["pickToy"].defaulted() && pickToy != 0 ) { + std::cerr << "WARNING - --pickToy is ignored when not using --toys" << std::endl; } combiner.setPickToy(pickToy);
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (78.57%) is below the target coverage (98.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1200 +/- ##
==========================================
+ Coverage 20.69% 20.71% +0.01%
==========================================
Files 195 195
Lines 26156 26166 +10
Branches 3923 3924 +1
==========================================
+ Hits 5413 5420 +7
- Misses 20743 20746 +3
🚀 New features to boost your workflow:
|
|
Looks good, not sure why lint is suddenly complaining about everything not related to this PR. |
ran git-clang-format HEAD~ as suggested by coderabbitai
When running with
--toys N, can pick a specific toy to run over with--pickToy i, where i = 1..N. Allows used to pick out a toy previously generated with-M GenerateOnly.Also means global observables are correctly picked up too.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.