feat(heatsoaking): improve heatsoaking helper macros with enhanced defaults and validation#129
Conversation
…efault values configurable - accommodates different workflow preferences
📝 WalkthroughWalkthroughThe heatsoaking configuration macro is enhanced with per-command DEFAULT source handling, parameter validation with bounds enforcement, and refined output formatting. Default quality and first-layer duration calculations are now conditional based on the source ('startup' or 'current'), with console feedback when duration limits are applied. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@configuration/macros/heatsoaking.cfg`:
- Around line 87-89: The user-facing message incorrectly states "720 minutes (6
hours)"; update the CONSOLE_ECHO MSG string to reflect the correct conversion
(720 minutes is 12 hours) where duration_mins is clamped, i.e., change the text
associated with the CONSOLE_ECHO MSG in the template that handles duration_mins
so it reads "720 minutes (12 hours)" or similar accurate wording.
- Around line 117-121: The HEATSOAK_SETTINGS macro documents and defines
variable_default_source but does not expose it through the HEATSOAK_SETTINGS
parsing, so users cannot set/reset default_source via that macro; update the
HEATSOAK_SETTINGS "vars" list to include "default_source" (matching the
variable_default_source name used in the file) and ensure any parsing/validation
logic that iterates over vars (the code that reads/sets values from
HEATSOAK_SETTINGS) accepts and applies "default_source" so the documented
DEFAULT parameter works as intended.
Summary by CodeRabbit
New Features
Improvements