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

Skip to content

move aws-specific patches into localstack.aws.patches #10958

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
Jun 5, 2024

Conversation

thrau
Copy link
Member

@thrau thrau commented Jun 4, 2024

Motivation

As part of the effort to reduce coupling of runtime and AWS code #10946, I'm moving some patches that are specific to moto AWS into their own package, and applying them using a hook rather than statically in the infra code. This will also help in #10942.

I left some parts of the patch_moto_request_handling because I'd like to separately investigate whether we can simplify or remove it.

Changes

  • patch_instance_tracker_meta is now applied using a hook
  • patching the moto config to set load_aws_managed_policies is now done in its own patch

@thrau thrau requested a review from dominikschubert June 4, 2024 18:27
@thrau thrau added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Jun 4, 2024
@thrau thrau force-pushed the move-moto-patches branch from 34bb454 to 1b15e68 Compare June 4, 2024 18:30
Copy link

github-actions bot commented Jun 4, 2024

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   3m 10s ⏱️
401 tests 351 ✅  50 💤 0 ❌
802 runs  702 ✅ 100 💤 0 ❌

Results for commit 1b15e68.

Copy link

github-actions bot commented Jun 4, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 38m 35s ⏱️ - 1m 14s
3 007 tests ±0  2 684 ✅ ±0  323 💤 ±0  0 ❌ ±0 
3 009 runs  ±0  2 684 ✅ ±0  325 💤 ±0  0 ❌ ±0 

Results for commit 1b15e68. ± Comparison against base commit fc00ea8.

Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

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

LGTM! 🧹

Comment on lines +45 to +46
# TODO: this could be improved by introducing a hook specifically for applying global patches that is run
# before any other code is imported.
Copy link
Member

Choose a reason for hiding this comment

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

good idea, that would make it a lot more explicit

@thrau thrau merged commit e70eae4 into master Jun 5, 2024
37 checks passed
@thrau thrau deleted the move-moto-patches branch June 5, 2024 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants