-
Notifications
You must be signed in to change notification settings - Fork 196
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
Implement and test retry classifier sorting #3392
Conversation
test retry classifier sorting
I also fixed a few random things that IntelliJ didn't like. |
rust-runtime/aws-smithy-runtime-api/src/client/retries/classifiers.rs
Outdated
Show resolved
Hide resolved
@@ -133,3 +134,141 @@ async fn test_retry_classifier_customization_for_operation() { | |||
// ensure our custom retry classifier was called at least once. | |||
assert_ne!(customization_test_classifier.counter(), 0); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we're going to put this in S3 (does it actually need to be?) then we should probably test actual S3 things if possible.
fix Tracked<T> Ord and Eq implementations
hide sorting in runtime component build method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM—I think we need to consider the changelog message a bit though
rust-runtime/aws-smithy-runtime-api/src/client/retries/classifiers.rs
Outdated
Show resolved
Hide resolved
A new generated diff is ready to view.
A new doc preview is ready to view. |
rust-runtime/aws-smithy-runtime-api/src/client/retries/classifiers.rs
Outdated
Show resolved
Hide resolved
rust-runtime/aws-smithy-runtime-api/src/client/retries/classifiers.rs
Outdated
Show resolved
Hide resolved
…iers.rs Co-authored-by: John DiSanti <[email protected]>
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
Motivation and Context
#3322
Description
I gave classifiers priorities but never actually sorted them. This PR fixes that.
Testing
I wrote a test
Checklist
CHANGELOG.next.toml
if I made changes to the AWS SDK, generated SDK code, or SDK runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.