-
- Downloads
Fix various small issues with the orchestrator (#2736)
## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here --> This change fixes many of the smaller issues I ran into during the implementation of standard retries for the orchestrator. Merges from `main` were getting difficult with my [other PR](https://github.com/awslabs/smithy-rs/pull/2725) so I'm breaking things up. ## Description <!--- Describe your changes in detail --> - when orchestrator attempt timeout occurs, error is now set in context - update test connection to allow defining connection events with optional latency simulation update orchestrator attempt loop to track iteration count - set request attempts from the attempt loop - add comment explaining "rewind" step of making request attempts add `doesnt_matter` method to `TypeErasedBox`, useful when testing update tests to use the new `TypeErasedBox::doesnt_matter` method - add more doc comments - add `set_subsec_nanos` method to `DateTime`. - I added this to make it easier to string-format a datetime that didn't include the nanos. - fix Invocation ID interceptor not inserting the expected header update input type for `OperationError::other` to be more user-friendly - add `test-util` feature to `aws-smithy-runtime-api` - add `test-util` feature to `aws-runtime` - fix presigining inlineable to pull in tower dep during codegen ## Testing <!--- Please describe in detail how you tested your changes --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> tests have been updated where necessary ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Showing
- aws/rust-runtime/aws-runtime/Cargo.toml 5 additions, 2 deletionsaws/rust-runtime/aws-runtime/Cargo.toml
- aws/rust-runtime/aws-runtime/src/invocation_id.rs 127 additions, 45 deletionsaws/rust-runtime/aws-runtime/src/invocation_id.rs
- aws/rust-runtime/aws-runtime/src/recursion_detection.rs 2 additions, 2 deletionsaws/rust-runtime/aws-runtime/src/recursion_detection.rs
- aws/rust-runtime/aws-runtime/src/request_info.rs 18 additions, 11 deletionsaws/rust-runtime/aws-runtime/src/request_info.rs
- aws/rust-runtime/aws-runtime/src/user_agent.rs 2 additions, 2 deletionsaws/rust-runtime/aws-runtime/src/user_agent.rs
- aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/AwsCustomizableOperationDecorator.kt 1 addition, 1 deletion...mazon/smithy/rustsdk/AwsCustomizableOperationDecorator.kt
- aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/AwsRuntimeType.kt 7 additions, 2 deletions...n/kotlin/software/amazon/smithy/rustsdk/AwsRuntimeType.kt
- aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/InvocationIdDecorator.kt 13 additions, 8 deletions...n/software/amazon/smithy/rustsdk/InvocationIdDecorator.kt
- aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/RetryInformationHeaderDecorator.kt 0 additions, 5 deletions.../amazon/smithy/rustsdk/RetryInformationHeaderDecorator.kt
- aws/sdk/integration-tests/transcribestreaming/Cargo.toml 1 addition, 0 deletionsaws/sdk/integration-tests/transcribestreaming/Cargo.toml
- aws/sra-test/integration-tests/aws-sdk-s3/tests/request_information_headers.rs 1 addition, 0 deletions...ion-tests/aws-sdk-s3/tests/request_information_headers.rs
- aws/sra-test/integration-tests/aws-sdk-s3/tests/sra_test.rs 1 addition, 3 deletionsaws/sra-test/integration-tests/aws-sdk-s3/tests/sra_test.rs
- codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/ServiceRuntimePluginGenerator.kt 1 addition, 1 deletion...client/smithy/generators/ServiceRuntimePluginGenerator.kt
- codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/client/CustomizableOperationGenerator.kt 2 additions, 2 deletions...mithy/generators/client/CustomizableOperationGenerator.kt
- codegen-core/common-test-models/pokemon.smithy 1 addition, 1 deletioncodegen-core/common-test-models/pokemon.smithy
- codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ValidateUnsupportedConstraints.kt 1 addition, 1 deletion...t/codegen/server/smithy/ValidateUnsupportedConstraints.kt
- codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ValidateUnsupportedConstraintsAreNotUsedTest.kt 1 addition, 1 deletion...er/smithy/ValidateUnsupportedConstraintsAreNotUsedTest.kt
- rust-runtime/aws-smithy-runtime-api/src/client.rs 3 additions, 0 deletionsrust-runtime/aws-smithy-runtime-api/src/client.rs
- rust-runtime/aws-smithy-runtime-api/src/client/interceptors.rs 4 additions, 0 deletions...runtime/aws-smithy-runtime-api/src/client/interceptors.rs
- rust-runtime/aws-smithy-runtime-api/src/client/interceptors/context.rs 74 additions, 20 deletions...aws-smithy-runtime-api/src/client/interceptors/context.rs
Loading
Please register or sign in to comment