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

Skip to content

deactivate VirtualHostRewriter for s3 ASF #7065

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 6 commits into from
Nov 11, 2022
Merged

Conversation

steffyP
Copy link
Member

@steffyP steffyP commented Oct 21, 2022

This PR deactivates the VirtualHostRewriter if the ASF provider for S3 is activated.

S3 virtual host routes are registered on_infra_ready to ensure the hosts are resolved correctly, even if s3 is not yet loaded (this requirement was revealed by the terraform test suite).

@steffyP steffyP temporarily deployed to localstack-ext-tests October 21, 2022 15:46 Inactive
@github-actions
Copy link

github-actions bot commented Oct 21, 2022

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 21m 31s ⏱️ -28s
1 457 tests ±0  1 260 ✔️  - 1  197 💤 +1  0 ±0 
2 055 runs  ±0  1 626 ✔️  - 1  429 💤 +1  0 ±0 

Results for commit 6b9a98e. ± Comparison against base commit 6447320.

♻️ This comment has been updated with latest results.

@steffyP steffyP force-pushed the s3-legacy-host-rewriter branch from 9244134 to c1f66b1 Compare October 31, 2022 10:37
@steffyP steffyP temporarily deployed to localstack-ext-tests October 31, 2022 10:37 Inactive
@steffyP steffyP force-pushed the s3-legacy-host-rewriter branch from c1f66b1 to 880cecd Compare October 31, 2022 17:25
@steffyP steffyP temporarily deployed to localstack-ext-tests October 31, 2022 17:25 Inactive
@steffyP
Copy link
Member Author

steffyP commented Nov 2, 2022

Remaining test failures are flaky tests, addressed in #7070.
Rebasing with master now, and removing commits from branch s3-migration.

Edit: run tests once more with s3-migration due to a minor change, rebasing with master again.

@steffyP steffyP force-pushed the s3-legacy-host-rewriter branch from 880cecd to ed4608d Compare November 2, 2022 11:18
@steffyP steffyP temporarily deployed to localstack-ext-tests November 2, 2022 11:18 Inactive
@steffyP steffyP changed the title S3 legacy host rewriter deactivate VirtualHostRewriter for s3 ASF Nov 2, 2022
@steffyP steffyP marked this pull request as ready for review November 2, 2022 11:21
@steffyP steffyP force-pushed the s3-legacy-host-rewriter branch from ed4608d to a61dbdc Compare November 2, 2022 12:27
@steffyP steffyP temporarily deployed to localstack-ext-tests November 2, 2022 12:27 Inactive
@steffyP steffyP force-pushed the s3-legacy-host-rewriter branch from a61dbdc to fae1634 Compare November 2, 2022 13:52
@steffyP steffyP temporarily deployed to localstack-ext-tests November 2, 2022 13:52 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.

Nice! This PR removes code from the parser, which shouldn't have been there in the first place.
I think in the long run, this will become a pattern for more services (at this point it might make sense to introduce a specific lifecycle hook or something similar). 🚀

@steffyP steffyP temporarily deployed to localstack-ext-tests November 11, 2022 10:42 Inactive
@steffyP steffyP force-pushed the s3-legacy-host-rewriter branch from fcff535 to 6b9a98e Compare November 11, 2022 11:25
@steffyP steffyP temporarily deployed to localstack-ext-tests November 11, 2022 11:26 Inactive
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 79.846% when pulling 6b9a98e on s3-legacy-host-rewriter into 6447320 on master.

@steffyP steffyP merged commit eb67123 into master Nov 11, 2022
@steffyP steffyP deleted the s3-legacy-host-rewriter branch November 11, 2022 13:23
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