With Items Causing Workflow Tests to Fail When Items are an Empty List
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python, yaml
- Área
- devops, testing-qa
Línea de trabajo
Start with the example_workflow.yaml and workflow_test.yaml scenarios in the issue, then run the workflow test using an empty with-items list. Trace the failing list handling that produces "list assignment index out of range"; done means the test completes successfully with the expected task sequence, empty route, and succeeded workflow status.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Let's say that you have a workflow:
example_workflow.yaml
version: 1.0
tasks:
start:
action: core.noop
next:
- when: <% succeeded() %>
do:
- with_items_task_example
with_items_task_example: # This shouldn't run
action: core.echo
with:
items: <% [] %>
input:
message: <% item() %>
You can try to write the following workflow test:
workflow_test.yaml
---
workflow: "example_workflow.yaml"
expected_routes: [[]]
inputs: {}
expected_task_sequence:
- start
- with_items_task_example
mock_action_executions: []
expected_workflow_status: succeeded
If we were to test this using the orquesta test, this would fail due to the items from the with items call within the with_items_task_example task. The error would be - ERROR - list assignment index out of range.
I am guessing that orquesta when running the test doesn't properly handle the list. Where as if you were to run this in st2 it would run without a hitch.
- Lenguaje dominante
- Python
- Estrellas
- 111
- Forks
- 45
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 StackStorm/orquesta
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
StackStorm/orquesta#275 ·
-
Update version of this `pypi`Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
StackStorm/orquesta#274 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
StackStorm/orquesta#272 ·
-
Vague errorAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
StackStorm/orquesta#265 · 1 comentario ·
-
task with join: all starts without waiting for all the previous task completed when there is a loopAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
StackStorm/orquesta#263 ·
Todos los issues de StackStorm/orquesta
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
SR_SECURITY_DESCRIPTOR.fromString drops the SACL when no DACL is presentPosiblemente ocupada @paul7436 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
equinor/fmu-sumo-uploader#302 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
modelscope/evalscope#1821 ·
Los mantenedores suelen responder en 1 día
-
Sanity on ansible-core devel fails: ignore-2.23.txt references the removed import-3.9 testPosiblemente ocupada @yurnov la tomó hoy. Abiertoneeds_triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
ansible-collections/kubernetes.core#1275 ·
Los mantenedores suelen responder en 1 día