fix: dedupe builtin harness flag aliases#2071
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR introduces a normalization pipeline for builtin harness flag configuration that canonicalizes underscore-separated keys to kebab-case while preserving reserved keys, integrates this normalization into spec-level and runtime-level config merging, and updates tests to verify alias deduplication and override behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 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 docstrings
🧪 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. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
Summary
--skip-git-repo-checkflags when the same option is provided with mixed snake_case and kebab-case keysRoot Cause
Built-in harness providers normalize option keys from snake_case to kebab-case only when building CLI args. That let equivalent keys like
skip_git_repo_checkandskip-git-repo-checkcoexist in merged config maps and produce duplicate CLI flags.Testing
make fmtgo test ./internal/core ./internal/core/spec ./internal/runtime/builtin/harness -count=1Summary by CodeRabbit
Bug Fixes
Tests