-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Step Functions: Improve Logging and Error Detection for Unsupported Service Integrations #12223
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
Step Functions: Improve Logging and Error Detection for Unsupported Service Integrations #12223
Conversation
Currently, only patch changes are allowed on master. Your PR labels (semver: minor) indicate that it cannot be merged into the master at this time. |
LocalStack Community integration with Pro 2 files ±0 2 suites ±0 1h 51m 52s ⏱️ -29s Results for commit 40b0b19. ± Comparison against base commit b4acd16. This pull request removes 3 and adds 5 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
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 👍 This looks great, Marco! One or two small grammar suggestions for comments but feel free to ignore.
def from_state_props(self, state_props: StateProps) -> None: | ||
super().from_state_props(state_props=state_props) | ||
def _validate_service_integration_is_supported(self): | ||
# As no aws-sdk support catalog is available, let invalid aws-sdk integration to fail at runtime. |
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.
nit: spelling
# As no aws-sdk support catalog is available, let invalid aws-sdk integration to fail at runtime. | |
# As no aws-sdk support catalog is available, allow invalid aws-sdk integration to fail at runtime. |
@@ -25,6 +25,10 @@ class StateTaskServiceUnsupported(StateTaskServiceCallback): | |||
def __init__(self): | |||
super().__init__(supported_integration_patterns=_SUPPORTED_INTEGRATION_PATTERNS) | |||
|
|||
def _validate_service_integration_is_supported(self): | |||
# Attempts to execute any derivation logging this incident on creation. |
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.
nit: grammar
# Attempts to execute any derivation logging this incident on creation. | |
# Attempts to execute any derivation; logging this incident on creation. |
Motivation
Currently, the Step Functions V2 interpreter does not check nor log unsupported API actions for supported optimized service integrations at creation time, leading to a lack of visibility for users (#12210). Additionally, when a boto schema for the request and/or return type is unavailable, the normalization logic proceeds without logging the issue, leading to misleading error messages for unsupported api actions (#12210). Similarly, unsupported service tasks are only checked at runtime, which delays error detection.
Changes