want a test utility to inject an arbitrary async closure between saga nodes

Đang mở
#492 0 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust

Hướng nghiên cứu

Start by reading the existing saga_inject_error, saga_inject_error_undo, and saga_inject_repeat utilities and how saga nodes execute. Design a way for the SEC to run an arbitrary async closure before or after a selected node, then add regression tests that interleave external state changes and verify saga behavior under races.

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

Mô tả

Presently, steno provides the SecClient::saga_inject_error, SecClient::saga_inject_error_undo, and SecClient::saga_inject_repeat functions for injecting errors into a saga's execution or repeating the execution of its actions. These are very useful for testing the unwinding and idempotency properties of a saga. However, there isn't currently a way to interleave arbitrary code with the saga's execution. I imagine it could be very useful to have a way to provide an arbitrary Fn() -> impl Future and have the SEC run it before or after a particular saga node. This could be used to test the saga's behavior when something external to the saga (say, another saga, or another process) mutates state that the saga interacts with in a particular way. This could be used for regression testing for issues that occur when a saga races with some other process that touches the same state it interacts with.

Ngôn ngữ chính
Rust
Star
174
Fork
15
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
8

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 oxidecomputer/steno

Tất cả issue của oxidecomputer/steno

Issue tương tự

Thêm issue về Rust

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.