-
Notifications
You must be signed in to change notification settings - Fork 33
Improve Content Helper error handling #3477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (6)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the 📝 Walkthrough""" WalkthroughThe changes update the error handling logic in the content helper module by modifying the error code enum, adjusting how error codes are typed, and redefining the retry logic for fetch operations. The associated test suite is refactored for improved coverage and maintainability, consolidating repetitive tests and adding explicit checks for unknown error codes. Changes
Suggested labels
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
…ror-handling" (16719c6)
Description
Until now, all Content Helper errors occurring while we were fetching data were considered soft errors, meaning that we would retry fetching the data. The
noRetryFetchErrorsconstant was used to specify which errors weren't retryable (our so-called hard errors).With this PR we're inverting our approach. All errors are considered hard errors (stopping execution by not retrying), unless they are of known error code and exist in our
softErrorsconstant.Motivation and context
How has this been tested?
ContentHelperErrorclass.Summary by CodeRabbit