test: cover remaining upstream error statuses#4
Conversation
Change-Id: Ie9fda8c8a5b853d006959e98c2e787df74da4df2
Reviewer's GuideAdds parametrized regression tests to ensure specific upstream Google-side error statuses (UNAUTHENTICATED and RESOURCE_EXHAUSTED) are correctly parsed as upstream errors, set the appropriate subtype, and preserve the message text. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Review limit reached
More reviews will be available in 6 minutes and 53 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
There was a problem hiding this comment.
Pull request overview
Adds regression coverage for upstream klog status handling in the agy adapter tests, ensuring additional Google-side error statuses are detected instead of being silently ignored.
Changes:
- Adds parametrized coverage for
UNAUTHENTICATED (code 401)andRESOURCE_EXHAUSTED (code 429). - Verifies emitted upstream error subtypes, retained message text, and
had_upstream_errorstate.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Validation
Summary by Sourcery
Tests:
Summary by cubic
Added regression tests to ensure the klog parser treats Google-side UNAUTHENTICATED (401) and RESOURCE_EXHAUSTED (429) lines as upstream errors, setting had_upstream_error and emitting the correct upstream_* subtypes. Also verifies captureless upstream patterns fall back to full-match parsing.
Written for commit 218ba1b. Summary will update on new commits. Review in cubic