Skip to content

[Testing] Enhance get_assertable_operations method #456

Closed

Description

@dhegberg

Migration from aws/aws-durable-execution-sdk-python-testing#48


Context

Add logic to handle optional EXECUTION operation at end of execution

Technical Requirements

  • Add logic to handle optional EXECUTION operation at end of execution
  • Implement proper detection of final EXECUTION operations with large payloads
  • Add context-aware inclusion/exclusion of final EXECUTION operations
  • Ensure immutability of original execution state

Implementation Details

  • File: src/aws_durable_execution_sdk_python_testing/execution.py:111

Acceptance Criteria

  • Logic added to handle optional EXECUTION operation at end of execution
  • Proper detection implemented for final EXECUTION operations with large payloads
  • Context-aware inclusion/exclusion added for final EXECUTION operations
  • Immutability of original execution state ensured

Activity

  1. added
    pkg:testingPackage: aws-durable-execution-sdk-python-testing
    on Jun 10, 2026
  2. zhongkechen commented on Oct 15, 2026

    @zhongkechen
    Contributor

    Resolved on main by PR #637. get_assertable_operations() now filters every EXECUTION entry by type, including an optional trailing entry, rather than relying on its position. It takes an independent list snapshot under the state lock without modifying the execution state. Regression tests cover the trailing-EXECUTION case and snapshot independence. This completes the operation-filtering and state-preservation scope requested here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg:testingPackage: aws-durable-execution-sdk-python-testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions