Skip to content
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

DO NOT MERGE: Flex Checksums #3924

Draft
wants to merge 56 commits into
base: main
Choose a base branch
from
Draft

Conversation

landonxjames
Copy link
Contributor

Motivation and Context

Currently just making this PR so I can test the canary against the feature branch

Description

Testing

Checklist

  • For changes to the smithy-rs codegen or runtime crates, I have created a changelog entry Markdown file in the .changelog directory, specifying "client," "server," or both in the applies_to key.
  • For changes to the AWS SDK, generated SDK code, or SDK runtime crates, I have created a changelog entry Markdown file in the .changelog directory, specifying "aws-sdk-rust" in the applies_to key.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

It sets default values for the ChecksumAlgorithm field (although that
doesn't actually seem to be reflected in the code at the moment)
Value is not yet added to ConfigBag
Still need to implement tests from SEP
Note: it doesn't actually work because sigv4 is benig added as a dev dep
but is required by one of the inlineable interceptors as a runtime dep
so that still needs to be fixed.
Update codegen to point to new checksum config
To traverse the model via a knowledge index
Update PutBucketLifecycleConfiguration test it now checks the Crc32
checksum header instead of Md5
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link

github-actions bot commented Dec 2, 2024

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link

github-actions bot commented Dec 2, 2024

A new generated diff is ready to view.

A new doc preview is ready to view.

Velfi and others added 2 commits December 2, 2024 14:52
…tion` methods. (#3918)

This PR lays the groundwork for defining operation-specific
`CustomizableOperation` methods.

## Codegen Example

If we were to define pre-signable ops this way, code like the following
would be emitted for each op that supported presigning.

```rust
impl<E, B> CustomizableOperation<crate::operation::put_object::PutObject, E, B> {
    /// Sends the request and returns the response.
    #[allow(unused_mut)]
    pub async fn presigned(
        mut self,
        presigning_config: crate::presigning::PresigningConfig,
    ) -> ::std::result::Result<crate::presigning::PresignedRequest, crate::error::SdkError<E>>
    where
        E: std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
        B: crate::client::customize::internal::CustomizablePresigned<E>,
    {
        self.execute(move |sender, conf| sender.presign(conf, presigning_config)).await
    }
}
```

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
The crc64fast-nvme crate uses some 64 bit intrinsics that do not exist
on 32 bit x86

Exclude another test from x86
@landonxjames landonxjames force-pushed the feature/flexible-checksums branch from 09aeece to 9ebc992 Compare December 2, 2024 22:52
Copy link

github-actions bot commented Dec 2, 2024

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link

github-actions bot commented Dec 3, 2024

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link

github-actions bot commented Dec 5, 2024

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link

github-actions bot commented Dec 9, 2024

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@landonxjames landonxjames force-pushed the feature/flexible-checksums branch from 3d61e10 to 7fdf1e3 Compare December 11, 2024 04:46
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Update HttpChecksumTest to have presigning types
@landonxjames landonxjames force-pushed the feature/flexible-checksums branch from 7fdf1e3 to 9d4d89c Compare December 11, 2024 22:26
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants