Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 1 remains after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe upload handler now closes temporary files through an idempotent helper on error paths and removes temporary files during cleanup. Linux tests repeat oversized PUT requests and check for descriptor or temporary-file leaks. ChangesTemporary upload cleanup
Merge Risk: ⚪ Minimal · up to Oversized uploads now close and remove temporary files on error paths while preserving existing error responses and atomic publication behavior. No current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Fixes #9.
Ensure temporary clip upload files are closed on every handler path, including
http.MaxBytesError. The close helper is idempotent and the cleanup defer removes any uncommitted temporary path.Validation
go test ./...go test -race ./...go vet ./...git diff --checkAdded a Linux regression test that sends repeated oversized uploads and verifies there are no open or stale
mole-clip-put-*files afterward.