feat: enhance error handling for upload retries with new status parsing - #465
feat: enhance error handling for upload retries with new status parsing#465egalvis27 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe upload error handler now extracts supported HTTP statuses from upload error messages. Tests cover classification, retry decisions, successful retries, and abort handling. ChangesUpload error classification
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Merge Risk: ⚪ Minimal · up to This change improves retry handling so that server-side upload failures reported only through error message text (not an explicit status code) are now correctly retried instead of being treated as permanent failures, which should reduce cases where temporary files are prematurely deleted after transient server errors. The change is small, covered by new tests, and the parsing logic was verified to safely reject unrelated numeric patterns and to be unreachable by malformed inputs in production. No blocking risk was found. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
src/backend/common/rate-limit/transient-error-handler.test.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. src/backend/common/rate-limit/transient-error-handler.tsESLint skipped: the matched ESLint configuration already failed (missing-dependency). 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 |
What is Changed / Added
5xxupload errors are now identified as retryable instead of being treated as unknown errors.Why
Some upload server errors were returned without an HTTP status property, causing them to be classified as non-retryable. This could delete the staged local file even when the failure was temporary.
Summary by CodeRabbit