test: cover OTel replay and user callback contexts - #758
Open
zhongkechen wants to merge 16 commits into
Open
zhongkechen wants to merge 16 commits into
zhongkechen wants to merge 16 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
Comment on lines
+90
to
+91
| @durable_execution(plugins=[otel_plugin()]) | ||
| def handler(event: dict[str, Any], context: DurableContext) -> str: |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment has been minimized.
This comment has been minimized.
|
|
||
|
|
||
| @durable_execution(plugins=[otel_plugin()]) | ||
| def handler(event: dict[str, Any], context: DurableContext) -> str: |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
added 2 commits
October 3, 2026 02:58
This comment has been minimized.
This comment has been minimized.
added 2 commits
October 3, 2026 03:09
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Codex AI reviewNo actionable findings. Residual risk is limited to cloud-only conformance behavior, which was not executed during this read-only review. Reviewed commit |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Python handlers and SAM mappings for OTel cases 21–24: completed-step replay, active context in user functions and callbacks, and invocation retry status. Ordinary user spans inherit their active parent; handlers never attach replacement context or copy execution identity into probe spans.
Shared requirements: aws/aws-durable-execution-conformance-tests#131, pinned to
98b802cdb172614f98e217f7464784d47b9bb484in the workflow and both test-ref defaults. This PR targets main and includes focused handler-context #756 and status-mapping #752. Merge those runtime prerequisites and the shared requirements first. Python #737 and its factory migration are excluded.The handlers exercise public APIs across initial execution, wait/resume, failures, parallel/map branches, polling, callback submitters, retry helpers and virtual contexts. Tests verify canonical trace/parent IDs, exact probe counts, completed-body suppression and caller-context restoration. The shared coverage matrix documents initialization, policy, serialization and application-created thread boundaries that lack an active SDK-operation-span contract.
Validation:
dd69e05728c60647aae76202321f5d34b605c00epasses all applicable workflows and has no unresolved AI findings.The failed-plus-uncovered conformance gate remains enabled. No IAM or workflow trust changes are included.