Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add regression coverage for None-returning orchestrations

Đang mở Phù hợp với người mới
#617 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
testing

Hướng nghiên cứu

Bắt đầu với regression test hiện có test_call_activity_with_none_return và kiểm tra TaskOrchestrationExecutor.parse_history_event, đặc biệt là nhánh SUB_ORCHESTRATION_INSTANCE_COMPLETED. Thêm coverage tập trung cho một sub-orchestrator với Result=None và một generator cấp cao nhất không có giá trị trả về tường minh. Hoàn thành có nghĩa là replay hoàn tất thành công, tạo ra None khi thích hợp và không cố gắng giải tuần tự JSON với None.

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

Mô tả

Enhancement fixed-in-v2 P3

💡 Feature description

Add explicit regression tests for all supported None-return paths in orchestration replay:

  • A sub-orchestrator whose completion event has Result=None.
  • A top-level generator orchestrator that completes without an explicit return value.

Activity completion with Result=None is already covered by test_call_activity_with_none_return. The additional tests should verify that replay completes successfully, produces the expected None task value where applicable, and does not call JSON deserialization with None.

💭 Describe alternatives you've considered

Relying on the shared guard in TaskOrchestrationExecutor.parse_history_event and the existing activity test leaves the separate SUB_ORCHESTRATION_INSTANCE_COMPLETED branch without direct regression coverage. A top-level no-return test would also preserve the behavior that originally made issue #260 difficult to diagnose.

Additional context

Issue #260 reported the original failure. The root cause was isolated in #454 and fixed by #466, released in azure-functions-durable 1.2.9. Current code handles both task and sub-orchestration completion events with null results, but only the activity path has a focused regression test.

Ngôn ngữ chính
Python
Star
157
Fork
70
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/azure-functions-durable-python

Tất cả issue của Azure/azure-functions-durable-python

Issue tương tự

Thêm issue về Python

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.