-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Remove legacy Lambda ESM v1 feature #11733
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
Conversation
Currently, only minor and patch changes are allowed on master. Your PR labels (semver: major) indicate that it cannot be merged into the master at this time. |
S3 Image Test Results (AMD64 / ARM64) 2 files 2 suites 3m 34s ⏱️ Results for commit ede91bb. ♻️ This comment has been updated with latest results. |
2fe8fd5
to
7974616
Compare
7974616
to
9301dba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Mostly nits and questions. Anything suggested can easily be done in a follow-up or ignored.
localstack-core/localstack/services/lambda_/event_source_mapping/pollers/kinesis_poller.py
Show resolved
Hide resolved
localstack-core/localstack/services/lambda_/event_source_mapping/pollers/sqs_poller.py
Show resolved
Hide resolved
localstack-core/localstack/services/lambda_/event_source_mapping/pollers/sqs_poller.py
Show resolved
Hide resolved
tests/aws/services/lambda_/event_source_mapping/test_lambda_integration_dynamodbstreams.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice removal!
9301dba
to
ede91bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Depends on CI step removal #11779
Motivation
The new Lambda Event Source Mapping (ESM) implementation v2 has been the default implementation since 3.8.0 and we announced the removal of ESM v1 with the next major release in the release notes.
Changes
LAMBDA_EVENT_SOURCE_MAPPING
and all dependenciesLAMBDA_EVENT_SOURCE_MAPPING
to deprecationsLAMBDA_EVENT_SOURCE_MAPPING
localstack-core/localstack/services/lambda_/event_source_listeners
from localstack.services.lambda_.event_source_listeners.utils import message_attributes_to_lower
from localstack.services.lambda_.event_source_listeners.utils import ( has_data_filter_criteria_parsed,)
LAMBDA_SQS_EVENT_SOURCE_MAPPING_INTERVAL_SEC
(we should have deprecated it earlier, but it's undocumented)Testing
Mostly regression test suite.
Could check deprecation warnings manually.
TODO
What's left to do:
Discussion
tests/aws/services/events/test_events_patterns.py
(summary of different implementations in Add event matching test suite #10599)