Unverified Commit dc54d24a authored by AWS SDK Rust Bot's avatar AWS SDK Rust Bot Committed by GitHub
Browse files

Merge smithy-rs-release-1.x.y into main (#4158)

parents 5c7b50dd 7a096914
Loading
Loading
Loading
Loading

.changelog/1747837382.md

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
---
applies_to:
- aws-sdk-rust
- client
authors:
- aajtodd
references:
- aws-sdk-rust#1272
breaking: false
new_feature: false
bug_fix: true
---
Fix h2 GoAway errors not being retried by hyper legacy client
+6 −0
Original line number Diff line number Diff line
<!-- Do not manually edit this file. Use the `changelogger` tool. -->
June 3rd, 2025
==============
**New this release:**
- :bug: (client, [aws-sdk-rust#1272](https://github.com/awslabs/aws-sdk-rust/issues/1272)) Fix h2 GoAway errors not being retried by hyper legacy client


May 19th, 2025
==============
**New this release:**
+20 −62
Original line number Diff line number Diff line
@@ -5,62 +5,6 @@
{
  "smithy-rs": [],
  "aws-sdk-rust": [
    {
      "message": "Replace the `once_cell` crate with the `std` counterpart in AWS runtime crates.\n",
      "meta": {
        "bug": false,
        "breaking": false,
        "tada": false
      },
      "author": "FalkWoldmann",
      "references": [
        "smithy-rs#4050"
      ],
      "since-commit": "f0c92d92b680771787af8ab60995d0e1fae02611",
      "age": 5
    },
    {
      "message": "Fix an issue where a custom `Content-Encoding` header was incorrectly overwritten by the `aws-chunked` header value.\n",
      "meta": {
        "bug": true,
        "breaking": false,
        "tada": false
      },
      "author": "ysaito1001",
      "references": [
        "aws-sdk-rust#1281"
      ],
      "since-commit": "f0c92d92b680771787af8ab60995d0e1fae02611",
      "age": 5
    },
    {
      "message": "Add support for the account-based endpoints in AWS SDKs. For more details, please refer to the [AWS SDKs and Tools Reference Guide on Account-Based Endpoints](https://docs.aws.amazon.com/sdkref/latest/guide/feature-account-endpoints.html).\n",
      "meta": {
        "bug": false,
        "breaking": false,
        "tada": true
      },
      "author": "ysaito1001",
      "references": [
        "smithy-rs#3776"
      ],
      "since-commit": "f0c92d92b680771787af8ab60995d0e1fae02611",
      "age": 5
    },
    {
      "message": "Fix service specific endpoint url keys\n",
      "meta": {
        "bug": true,
        "breaking": false,
        "tada": false
      },
      "author": "aajtodd",
      "references": [
        "aws-sdk-rust#1252"
      ],
      "since-commit": "f0c92d92b680771787af8ab60995d0e1fae02611",
      "age": 5
    },
    {
      "message": "Fix a bug where fields that were initially annotated with the `required` trait and later updated to use the `addedDefault` trait were not serialized when their values matched the default, even when the values were explicitly set. With this fix, fields with `addedDefault` are now always serialized.\n",
      "meta": {
@@ -73,7 +17,7 @@
        "smithy-rs#4117"
      ],
      "since-commit": "84f5464aacf3544f706d75af0aaddfea42c20e9f",
      "age": 3
      "age": 4
    },
    {
      "message": "Promote `aws-smithy-mocks-experimental` to `aws-smithy-mocks`. This crate is now a recommended tool for testing\ngenerated SDK clients. This release includes several fixes as well as a new sequence builder API that can be\nused to test more complex scenarios such as retries.\n\n```rust\nuse aws_sdk_s3::operation::get_object::GetObjectOutput;\nuse aws_sdk_s3::config::retry::RetryConfig;\nuse aws_smithy_types::byte_stream::ByteStream;\nuse aws_smithy_mocks::{mock, mock_client, RuleMode};\n\n#[tokio::test]\nasync fn test_retry_behavior() {\n    // Create a rule that returns 503 twice, then succeeds\n    let retry_rule = mock!(aws_sdk_s3::Client::get_object)\n        .sequence()\n        .http_status(503, None)\n        .times(2)                                            // Return 503 HTTP status twice\n        .output(|| GetObjectOutput::builder()                // Finally return a successful output\n            .body(ByteStream::from_static(b\"success\"))\n            .build())\n        .build();\n\n    // Create a mocked client with the rule\n    let s3 = mock_client!(\n        aws_sdk_s3,\n        RuleMode::Sequential,\n        [&retry_rule],\n        |client_builder| {\n            client_builder.retry_config(RetryConfig::standard().with_max_attempts(3))\n        }\n    );\n\n    // This should succeed after two retries\n    let result = s3\n        .get_object()\n        .bucket(\"test-bucket\")\n        .key(\"test-key\")\n        .send()\n        .await\n        .expect(\"success after retries\");\n\n    // Verify the response\n    let data = result.body.collect().await.expect(\"successful read\").to_vec();\n    assert_eq!(data, b\"success\");\n\n    // Verify all responses were used\n    assert_eq!(retry_rule.num_calls(), 3);\n}\n```\n",
@@ -88,7 +32,7 @@
        "smithy-rs#3926"
      ],
      "since-commit": "84f5464aacf3544f706d75af0aaddfea42c20e9f",
      "age": 3
      "age": 4
    },
    {
      "message": "Update MSRV to 1.82.0\n",
@@ -102,7 +46,7 @@
        "smithy-rs#4120"
      ],
      "since-commit": "84f5464aacf3544f706d75af0aaddfea42c20e9f",
      "age": 3
      "age": 4
    },
    {
      "message": "Replace once_cell with std equivalents\n",
@@ -116,7 +60,7 @@
        "smithy-rs#4105"
      ],
      "since-commit": "f3aebe7b53d7e1be4bd922e13d459f8ef72104fa",
      "age": 2
      "age": 3
    },
    {
      "message": "Removing the `optimize_crc32_auto` feature flag from the `crc-fast` dependency of the `aws-smithy-checksums` crate since it was causing build issues for some customers.\n",
@@ -130,7 +74,7 @@
        "aws-sdk-rust#1291"
      ],
      "since-commit": "4e4a0ee2d663a1212927a8a70ca97eac567d54b6",
      "age": 1
      "age": 2
    },
    {
      "message": "fix simple rules behavior with `RuleMode::MatchAny`\n",
@@ -144,7 +88,7 @@
        "smithy-rs#4135"
      ],
      "since-commit": "4e4a0ee2d663a1212927a8a70ca97eac567d54b6",
      "age": 1
      "age": 2
    },
    {
      "message": "Introduce a new `repeatedly()` function to `aws-smithy-mocks` sequence builder to build mock rules that behave as an\ninfinite sequence.\n\n```rust\nlet rule = mock!(aws_sdk_s3::Client::get_object)\n    .sequence()\n    .http_status(503, None)\n    .times(2)        // repeat the last output twice before moving onto the next response in the sequence\n    .output(|| GetObjectOutput::builder()\n        .body(ByteStream::from_static(b\"success\"))\n        .build()\n    )\n    .repeatedly()    // repeat the last output forever\n    .build();\n```\n",
@@ -158,6 +102,20 @@
        "smithy-rs#4135"
      ],
      "since-commit": "4e4a0ee2d663a1212927a8a70ca97eac567d54b6",
      "age": 2
    },
    {
      "message": "Fix h2 GoAway errors not being retried by hyper legacy client\n",
      "meta": {
        "bug": true,
        "breaking": false,
        "tada": false
      },
      "author": "aajtodd",
      "references": [
        "aws-sdk-rust#1272"
      ],
      "since-commit": "7d64b2f9e8fc89159d7fb1ff1309d6d6b8b53189",
      "age": 1
    }
  ],