Repository navigation
Conversation
… first CodeRabbit on #1901: if building the upload request throws synchronously (e.g. a malformed -Dmicrobot.apiUrl) the drained batch was lost; requeue it before rethrowing. Close the HTTP response before running the rejection callback so a throwing callback cannot leak it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKz6YjDRJdva762xPzTaia
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review. WalkthroughThe change closes the HTTP response after saving its success status and code, then checks the status and handles unsuccessful responses. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The updated paths close HTTP responses before rejection handling and preserve telemetry errors after synchronous submission failures. No specific merge blocker was identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |
Summary
Two minor fixes from CodeRabbit's review of the 2.6.30 release PR (#1901):
submitErrorsthrows while building the request (for example, a malformed-Dmicrobot.apiUrl), the drained batch was lost. It is now re-queued before the exception is rethrown.MicrobotApi.submitErrorscloses the HTTP response before running the rejection callback, so a callback that throws cannot leak the response.Neither case occurs with the default configuration.
Test plan
ScriptErrorReporterTest11/11, including the newrequeuesBatchWhenSubmitThrows🤖 Generated with Claude Code