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

Aperta
#1,458 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
53/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
mobile, testing

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
TypeScript
Stelle
705
Fork
40
Merge medio
12h 9m
PR unite (30g)
376

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 callstackincubator/simlock

Tutte le issue di callstackincubator/simlock

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.