fix(delivery): improve Telegram failure diagnostics - #88
Conversation
|
Warning Review limit reached
Next review available in: 35 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
✨ 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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #88 +/- ##
=======================================
Coverage 99.79% 99.79%
=======================================
Files 45 45
Lines 8810 8908 +98
Branches 526 538 +12
=======================================
+ Hits 8792 8890 +98
Misses 13 13
Partials 5 5 ☔ View full report in Codecov by Harness. |
PR Summary by QodoFix Telegram delivery diagnostics and suppress redundant ops alerts
AI Description
Diagram
High-Level Assessment
Files changed (10)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
39 rules 1.
|
Summary
Root cause
A Telegram rejection produced generic HTTP logging and then attempted to send the task-failure alert through the same unavailable Telegram destination. Operators could see a 400 response but not a safe actionable reason such as
chat-not-found, and the redundant alert attempt added noise.Behavior
Known Telegram descriptions,
parameters.migrate_to_chat_id, and HTTP statuses map to safe kebab-case reasons. Channel-level failures such aschat-not-found,bot-token-rejected, andinsufficient-rightssuppress only the redundant alert when operations delivery is the same object. Transient or message-specific errors still attempt the alert. Telegram reference data is validated when a Telegram publisher is constructed, so non-Telegram runs do not depend on it.Privacy
Normal logs continue to omit message bodies, credentials, Chat IDs, URLs, and raw Telegram error descriptions. Unknown responses fall back to
api-error.Review fixes
Validation
867 passed99.85%(master:99.85%)99.54%(master:99.52%)prek run --all-files0 issues0 bugs, prior finding resolvedThe GitHub CodeRabbit status is rate limited; no online review ran for that status.