Conversation
Test Results (amd64) - Integration, Bootstrap 5 files 5 suites 2h 2m 31s ⏱️ For more details on these failures, see this check. Results for commit 507be02. ♻️ This comment has been updated with latest results. |
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 1h 32m 54s ⏱️ - 27m 44s For more details on these failures, see this check. Results for commit 507be02. ± Comparison against base commit 8554f9a. This pull request removes 1470 and adds 119 tests. Note that renamed tests count towards both.This pull request removes 117 skipped tests and adds 17 skipped tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
joe4dev
left a comment
There was a problem hiding this comment.
Thank you for the clear refactorings 🚀
| raise ResourceNotFoundException( | ||
| "The resource you requested does not exist.", Type="User" | ||
| ) | ||
| # the actual deletion of the ESM is happening synchronously, but we delete the Tags instantly |
There was a problem hiding this comment.
docs nit: I guess this comments intents to say "asynchronously" (instead of synchronously)
❓ Can we clarify in the comment whether that's a convenience behavior (i.e., TODO as intentional parity gap) or matches AWS parity?
There was a problem hiding this comment.
Done, good catch! I've looked at it and it seems the answer is... "it depends" 😅 the behavior I added is similar to get_event_source_mapping, it will start raising ResourceNotFound right after the call to delete_event_source_mapping, but AWS can take some time before starting to raise it.
I've improved the comment to say the tagging deletion behavior is aligned with get_event_source_mapping, and to add more testing around that. Seems like a hard thing to test because it can be almost instant, so not sure we want to capture this kind of behavior (async deletion) in the CRUD layer.
|
Merging, test failure is unrelated (snapshot failure from lambda env vars): https://github.com/localstack/localstack/runs/63995024560 ( |
Motivation
This PR refactors Tagging in Lambda to support its integration with RGTA.
The only functional difference is that we are now properly cleaning up the tags when deleting a resource, where before they would stay in the store.
Changes
Tests
Related