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

Skip to content

remove s3 legacy code and usage #9461

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 4 commits into from
Oct 25, 2023
Merged

remove s3 legacy code and usage #9461

merged 4 commits into from
Oct 25, 2023

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Oct 24, 2023

Motivation

Following the deprecation for the S3 legacy provider, we can now remove it to allow the legacy edge proxy code to be removed as well.

Changes

Removed all S3 legacy code and its usage, especially in conditional around tests.
I believe we're going to gain quite a lot of coverage once again 😄

@bentsku bentsku added the semver: major Breaking changes which can be included in a major release only label Oct 24, 2023
@bentsku bentsku self-assigned this Oct 24, 2023
@bentsku bentsku added the aws:s3 Amazon Simple Storage Service label Oct 24, 2023
@github-actions
Copy link

github-actions bot commented Oct 24, 2023

LocalStack Community integration with Pro

       2 files  ±0         2 suites  ±0   1h 13m 52s ⏱️ -49s
2 268 tests ±0  1 691 ✔️ ±0  577 💤 ±0  0 ±0 
2 269 runs  ±0  1 691 ✔️ ±0  578 💤 ±0  0 ±0 

Results for commit 45b2c26. ± Comparison against base commit c24bf15.

♻️ This comment has been updated with latest results.

@bentsku bentsku marked this pull request as ready for review October 24, 2023 21:38
Comment on lines 366 to 370


# test_multipart_and_list_parts
# test_put_object_checksum
#
Copy link
Contributor Author

Choose a reason for hiding this comment

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

comment: will remove, leftover from tests

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.

I only found a small code change which doesn't seem related (but also doesn't seem to be harmful?). Everything else is looking great! Nice to see thousands of lines being deleted!
The coverage will go up by more than 1%! 🚀

However, I am just a bit concerned about the number of changed files. A lot are just removals, but specifically the removal of the LEGACY_S3_PROVIDER causes a lot of changes in other files which could become problematic with rebases in the next few weeks. But I guess we'll see how the rebasing works... 😛

@bentsku
Copy link
Contributor Author

bentsku commented Oct 25, 2023

@alexrashed I think you're right, I was thinking about this as well.
How would you feel about removing all the conditional around LEGACY_S3_PROVIDER in tests in master first? That would reduce the numbers of files by a good amount, and we don't run the tests suite with it anymore so the tests would just break when ran against it, which is no big deal.

@alexrashed
Copy link
Member

I think the tests themselves are not really the problem, but the actual service implementations and utils code which uses the LEGACY_S3_PROVIDER variable. A potential way around this would be to just set it to False (instead of reading the env var) and basically leaving everything else. This would essentially deactivate the whole feature, with a single line of code.
Then we could remove it silently in the background in upcoming changes (after the release branch has been merged into master). However, I think it's nice to have this together in a single PR, and collect the dopamine of the removals.
So let's move forward with the changes as they are in here 🚀 🧹

@bentsku
Copy link
Contributor Author

bentsku commented Oct 25, 2023

I see. Yes, deleting the entry in the providers.py and setting it to False would have made the same, but the cleaning would feel different! If it becomes too difficult to rebase until the release, we can always revert and keep it for after the release like you explained. I'll remove the leftovers comments and merge then.

@bentsku bentsku merged commit 060a5d7 into release/v3.0 Oct 25, 2023
@bentsku bentsku deleted the remove-s3-legacy branch October 25, 2023 09:19
alexrashed pushed a commit that referenced this pull request Oct 25, 2023
@alexrashed alexrashed mentioned this pull request Oct 25, 2023
20 tasks
localstack-bot pushed a commit that referenced this pull request Oct 26, 2023
localstack-bot pushed a commit that referenced this pull request Oct 27, 2023
alexrashed pushed a commit that referenced this pull request Oct 28, 2023
localstack-bot pushed a commit that referenced this pull request Oct 31, 2023
alexrashed pushed a commit that referenced this pull request Oct 31, 2023
alexrashed pushed a commit that referenced this pull request Nov 1, 2023
alexrashed pushed a commit that referenced this pull request Nov 1, 2023
alexrashed pushed a commit that referenced this pull request Nov 1, 2023
alexrashed pushed a commit that referenced this pull request Nov 1, 2023
alexrashed pushed a commit that referenced this pull request Nov 2, 2023
alexrashed pushed a commit that referenced this pull request Nov 2, 2023
alexrashed pushed a commit that referenced this pull request Nov 2, 2023
alexrashed pushed a commit that referenced this pull request Nov 2, 2023
bentsku added a commit that referenced this pull request Nov 2, 2023
localstack-bot pushed a commit that referenced this pull request Nov 3, 2023
bentsku added a commit that referenced this pull request Nov 3, 2023
alexrashed pushed a commit that referenced this pull request Nov 3, 2023
alexrashed pushed a commit that referenced this pull request Nov 4, 2023
localstack-bot pushed a commit that referenced this pull request Nov 7, 2023
alexrashed pushed a commit that referenced this pull request Nov 7, 2023
alexrashed pushed a commit that referenced this pull request Nov 7, 2023
localstack-bot pushed a commit that referenced this pull request Nov 9, 2023
alexrashed pushed a commit that referenced this pull request Nov 9, 2023
alexrashed pushed a commit that referenced this pull request Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:s3 Amazon Simple Storage Service semver: major Breaking changes which can be included in a major release only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants