aws / aws/aws-durable-execution-sdk-python

[Feature]: SAM CLI durable emulator integration tests are ported to this repository

Đang mở
#495 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement pkg:sdk pkg:testing
Ngôn ngữ chính
Python
Star
53
Fork
25
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
40

Mô tả

### What would you like?

Context: Changes to the `aws-durable-execution-sdk-python` and `aws-durable-execution-sdk-python-testing` can often break assertions in the SAM CLI integration tests:

1. https://github.com/aws/aws-sam-cli/pull/8906
2. https://github.com/aws/aws-sam-cli/actions/runs/28089573325/job/83163914199

At the time of writing these tests in SAM CLI, the intention was to test the emulator behaviour. Now that we automatically publish an emulator image for SAM CLI from this repository, I think we can loosen some of the tests on SAM CLI side. SAM CLI doesn't need to test the specifics of our SDK behaviour, only that durable functions can be run and that the execution history can be fetched in SAM CLI. The specific behaviour of the published emulator image in conjunction with the Python SDK (such as the presence of certain fields in the execution history) can be tested in this repository rather than in SAM CLI.

We want to have stronger ownership over our SAM CLI integration as well as reduce churn for SAM CLI owners.

### Possible Implementation

1. Check emulator image test coverage in current repository
2. Check emulator image test coverage in SAM CLI
3. Reason over tests we can keep in SAM and tests we can port (define how decoupled we want to be between the durable emulator image and SAM CLI, decide minimum functionality we want to test on SAM side)
4. Port over relevant tests to current repository that we are missing
5. Remove relevant tests from SAM CLI
### Is this a breaking change?

No

### Does this require an RFC?

No

### Additional Context

This is really similar to https://github.com/aws/aws-durable-execution-sdk-python/issues/430. We could consider porting these tests and running them via the SAM CLI for this issue as well.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách so sánh độ bao phủ kiểm thử hình ảnh trình mô phỏng trong kho lưu trữ này với các kiểm thử tích hợp của SAM CLI, sử dụng pull request SAM CLI được liên kết và lần chạy workflow làm tài liệu tham chiếu. Xác định hành vi SAM CLI tối thiểu cần được giữ lại, chuyển phần độ bao phủ dành riêng cho trình mô phỏng còn thiếu vào đây và xác minh rằng có thể giảm các kiểm thử SAM CLI mà không làm mất độ bao phủ cho việc thực thi và lịch sử của durable functions.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli, testing
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.