agent-device test --maestro does not run through the agent-device proxy

Abierto
#1,458 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
53/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
mobile, testing

Línea de trabajo

Start by tracing the proxy paths for agent-device test --maestro and replay --maestro in the simlock codebase; the issue does not name files or tests. Compare how replay uploads flow files and runs on a leased device with how test creates its child session. Done means remote test uploads the flow and its subflows and runs on the session's leased device, or leases one itself.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug:blocked upstream

Summary

agent-device test --maestro <flow> does not run through simlock's agent-device proxy from a remote client. open, install, snapshot, screenshot, and replay --maestro work through the same proxy.

Versions

  • simlock 0.6.0: gateway, plus one worker with capabilities.agent-device.enabled
  • agent-device 0.21.36 on the client and on the worker
  • Client and worker are two different Macs

Steps

export AGENT_DEVICE_DAEMON_AUTH_TOKEN=<agent token> AGENT_DEVICE_SESSION=e2e
agent-device connect proxy --daemon-base-url "$SIMLOCK_URL/v1/agent-device"
agent-device open --platform ios
agent-device install <app id> ./App.app
agent-device test ./flows/first-launch.yaml --maestro --platform ios

Result

  1. The worker reads the flow from the client's local path and fails with ENOENT. replay --maestro in the same session uploads the flow and its runFlow subflows.
  2. With the flow copied to the same path on the worker, the child session of test fails because the device is busy: the open session holds it.
  3. Without an open session, test fails with "run open first".

Expected

test --maestro uploads the flow files like replay does and runs them on the session's leased device, or leases one itself.

Impact

We run Maestro flows on simulators with test (reporters, retries, JUnit). On leased phones we can only use replay per flow, so phone e2e runs are off for now.

Lenguaje dominante
TypeScript
Estrellas
705
Forks
40
Merge medio
12 h 9 min
PR fusionados (30 d)
376

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de callstackincubator/simlock

Todos los issues de callstackincubator/simlock

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.