Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add new s3 ASF provider #6829

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

Merged
merged 1 commit into from
Sep 6, 2022
Merged

add new s3 ASF provider #6829

merged 1 commit into from
Sep 6, 2022

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Sep 6, 2022

This PR is part of #6827 and is the basis for migrating s3 to ASF.
It creates the new s3 ASF provider marked as asf as well as the scaffolded s3 API. It sets the current s3 provider as default.

This should make no changes to the current implementation, and can only be used with PROVIDER_OVERRIDE_S3=asf (not stable at all for now!)

This is @steffyP works and I'm just making the PR 🎉

@bentsku bentsku requested a review from alexrashed September 6, 2022 15:01
@bentsku bentsku requested a review from thrau as a code owner September 6, 2022 15:01
@bentsku bentsku temporarily deployed to localstack-ext-tests September 6, 2022 15:02 Inactive
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀 Just a small hint that the params for the decorator aren't even necessary.
Considering the immense size of S3, it is definitely the best approach to integrate with the mainline as often as possible and just enabling the feature flag in a long-living PR to get continuous test feedback. 🥳

@@ -258,7 +258,7 @@ def route53resolver():
)


@aws_provider()
@aws_provider(api="s3", name="default")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The params for the decorator here actually aren't necessary, since the default for api is the function's name (s3) and the default for name is default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It makes a lot of sense. I will update once the tests run, there should not be any issue but I'd rather be certain 😅

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.5%) to 88.96% when pulling f7ec74a on s3-asf-provider into 27a4795 on master.

@github-actions
Copy link

github-actions bot commented Sep 6, 2022

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 12m 39s ⏱️ - 3m 27s
1 256 tests ±0  1 215 ✔️ +1  41 💤  - 1  0 ±0 
1 681 runs  ±0  1 609 ✔️ +1  72 💤  - 1  0 ±0 

Results for commit f7ec74a. ± Comparison against base commit 27a4795.

@bentsku bentsku merged commit c7e3574 into master Sep 6, 2022
@bentsku bentsku deleted the s3-asf-provider branch September 6, 2022 16:40
@bentsku
Copy link
Contributor Author

bentsku commented Sep 6, 2022

Oops, forgot to fix your comment @alexrashed, I had committed the changes and waited for the tests to succeed before pushing, but with the coverage failure, I forgot. I will correct this in the next PR that we need to do for s3. Sorry again 😕

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.

3 participants