-
Notifications
You must be signed in to change notification settings - Fork 145
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
Add test cases for RemoteConnector retry behavior #3504
base: main
Are you sure you want to change the base?
Conversation
Refactored product code to make testing easier. Build up these tests to confirm behavoir when getting a non-throttled response that was reported by a CX. Signed-off-by: Peter Nied <[email protected]>
Could you please take updates from main to pass the integ tests. Thanks. |
Signed-off-by: Peter Nied <[email protected]>
Thanks @dhrubo-os merged from main. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3504 +/- ##
============================================
+ Coverage 80.25% 80.30% +0.05%
- Complexity 6906 6911 +5
============================================
Files 610 610
Lines 30077 30094 +17
Branches 3368 3368
============================================
+ Hits 24137 24166 +29
+ Misses 4487 4478 -9
+ Partials 1453 1450 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @peternied, just curious, can you please share more context on why this is being done? I see that you mention |
@pyek-bot Sure - I can provide a little more context. Below is a redacted version of their configuration, they setup the client_config policy to retry indefinitely with exponential backoff. However, they never saw any failed requests retried. Probing in the code base to be sure why this was the case - this looks to be by design. I noticed a lack of test coverage and figured it would be good to area to augment. Especially if someone is interested in changing the behavior so retries occur on a broader set of failed responses. Redacted configuration
|
Description
Add test cases for RemoteConnector retry behavior
Refactored product code to make testing easier. Build up these tests to confirm behavior when getting a non-throttled response that was reported by a customer.
Check List
New functionality has been documented.API changes companion pull request created.--signoff
.Public documentation issue/PR created.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.