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

Aperta
#492 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
174
Fork
15
Merge medio
1g 23h
PR unite (30g)
8

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oxidecomputer/steno

Tutte le issue di oxidecomputer/steno

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.