automated testing for action invariants
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- rust
- Área
- distributed-systems
Línea de trabajo
Comienza revisando las APIs de action y undo-action existentes de Steno, ya que el issue no indica archivos ni tests específicos. Determina cómo podrían los consumidores informar de un estado externo equivalente e inyectar errores reintentables. Se considerará terminado cuando haya cobertura automatizada para actions repetidas, undo-actions repetidas, el comportamiento de action después de undo-action y fallos inyectados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Steno expects action implementations to meet a few invariants (these come from distributed sagas in general):
- actions are idempotent
- undo actions are idempotent
- "undo" should be commutative with the action. That is, if an undo action is executed followed by a re-execution of the action itself, the net result should be as though the undo action ran last.
- what others?
We cannot test that actions are correct or even that they always obey these invariants. But we could empirically test a lot of different cases, like:
- after an action runs to completion, run it again. It should succeed again and the resulting external state should be equivalent. (Steno can't know the second part but the consumer can help here.)
- after an undo action runs to completion, run it again. It should succeed again and the external state should be equivalent.
- run the action again after the undo action completes. It should succeed again and the external state should be equivalent.
If we could inject a retryable error into either the action or undo action, then we could also test that they can fail (multiple times in a row), then remove the injected error, and then run it again and have them succeed.
All of this requires that the consumer be able to tell us whether the external states of the world are equivalent (or, maybe equivalently, whether they've changed).
- Lenguaje dominante
- Rust
- Estrellas
- 174
- Forks
- 15
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 8
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de oxidecomputer/steno
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
oxidecomputer/steno#164 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
oxidecomputer/steno#492 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
oxidecomputer/steno#390 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
oxidecomputer/steno#302 · 3 comentarios ·
-
Dependency DashboardAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 20/100
oxidecomputer/steno#173 · 1 comentario ·
Todos los issues de oxidecomputer/steno
Issues similares
-
[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copiedAbiertounconfirmed possible issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jerney-nexus/epikrise#364 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Yeachan-Heo/gajae-code#8058 ·
Los mantenedores suelen responder en 1 día
-
bug daemon
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día