chore: add track-and-prune for generated files to avoid unnecessary rewrites#4150
chore: add track-and-prune for generated files to avoid unnecessary rewrites#4150framitdavid wants to merge 2 commits intomainfrom
Conversation
📝 WalkthroughWalkthroughThe codegen script now includes post-generation cleanup logic that scans Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 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. Comment |
olemartinorg
left a comment
There was a problem hiding this comment.
Nifty! 🥳 This hopefully solves all the remaining issues we've had with sporadic code generation problems. 🤞
|


Description
A simpler "delete all
*.generated.*before gen runs" would also work, but:saveTsFile, every file gets re-linted and re-written every run.find -deleteisn't cross-platform (no PowerShell).Track-and-prune only touches files that are actually orphaned, so the happy path stays free.
Related Issue(s)
Verification/QA
kind/*andbackport*label to this PR for proper release notes groupingSummary by CodeRabbit