fix(tests): skip .worktrees in testconventions scan - #1087
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe test-convention scan now skips ChangesTest-convention scan
CI registry updates
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Suggested reviewers: Merge Risk: 🔵 Low · up to This change only affects CI and a test helper. The PostgreSQL service images in CI now come from a cache that does not guarantee images stay available, so test jobs could fail to start if a tag is evicted. Production behavior is unaffected, and the risk is small and easy to revert, but adding an upstream fallback would make CI more reliable. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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. A rabbit checks the worktree trail, Comment |
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
a82e2bb to
f116bec
Compare
|
Note Unit test generation is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Generating unit tests... This may take up to 20 minutes. |
|
🤖 Coding Agent task started for unit test generation. |
I actually did not trigger this; I clicked the "Trigger Review" button. Interesting. |
What
Adds
.worktreesto theskippedDirsmap ininternal/testconventions/assertions_test.go.Why
TestNoHandRolledAssertionswalks the repository tree and lints test style. It descends into.worktrees/, which the project gitignores (/.worktrees/in.gitignore) for local git worktrees. Any active worktree whose branch violates the convention fails the test — even on a clean checkout ofmain..claudeis already skipped for the same reason ("local agent worktrees, gitignored")..worktreeswas missing from the list.Verification
go test ./internal/testconventions/fails before this change when a non-conformant worktree exists locally and passes after. No production code touched.Summary by CodeRabbit