Repository navigation
fix(ci): disable background git maintenance in release self-test fixtures - #312
Conversation
…ures The GoReleaser Config job failed on three dev pushes (33906222319, 33923463009, 33935370776) with rm: cannot remove '.git/objects': Directory not empty. The self-test's EXIT trap removes its throwaway repos while git's detached auto-maintenance is still writing under .git. Fixtures now set gc.auto 0 and maintenance.auto false before the first commit.
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed via deep-review workflow and Codex; findings fixed pre-merge. LGTM.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
The GoReleaser Config job failed on three of the last six dev pushes (33906222319, 33923463009, 33935370776), every time at the end of
package-release-config-self-test-test.sh:The self-test builds throwaway git repos with
git init,add,commit, then its EXIT trap doesrm -rfon them. Git's auto maintenance forks a detached process on commit, and it can still be writing under.git/objectswhen the trap runs. Fixtures now setgc.auto 0andmaintenance.auto falsebefore the first commit, so nothing outlives the script.Verified: both release self-tests pass locally, shellcheck and qlty clean, full pre-push hook green.
🔧 Changed
gc.auto 0andmaintenance.auto falseinnew_fixture.🐛 Fixed
.git/objectsduring fixture cleanup.Validation:
shellcheck,qlty, and the full pre-push hook passed.