Maestro replay: optional target wait is a hard-coded 7 s (Maestro skips after ~3 s); make it configurable
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- android, ios, typescript
- Ambito
- cli, testing-qa
Direzione di ricerca
Start in replay-maestro-backend.js, where optionalTargetLookupTimeoutMs is hard-coded to 7000 ms, and trace where the runFlow when condition wait reads the same value. Then find where the replay and test CLI flags are parsed so a new option, such as --optional-timeout, can be passed through. Done when the timeout can be set from the flag or a config key, the default stays unchanged or is deliberately changed, and a test shows an optional missing target is skipped after the configured delay.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
In replay --maestro, a missing optional: true target waits optionalTargetLookupTimeoutMs = 7000 ms before the step is skipped (replay-maestro-backend.js). runFlow when conditions use the same value. It is hard-coded, with no flag, config key or environment variable.
Maestro CLI skips the same missing optional target after about 3 s. On a long flow with many optional steps this costs more than the engine saves.
Measured on an Android emulator, with the same app and backend:
| agent-device | Maestro CLI | |
|---|---|---|
launch + 3 missing tapOn … optional: true |
24.8 s | 19.7 s (incl. ~10 s JVM start) |
| 88-step tour, 58 optional steps | 225 s | 185 s |
| same tour with the optional wait at 3000 ms | 131 s | 185 s |
Ask
Make the optional lookup (and the runFlow condition wait) configurable, for example --optional-timeout <ms> on replay/test or a config key, and consider defaulting it closer to Maestro's.
Environment
agent-device 0.21.36, Android emulator API 36 and iOS simulator 26.5.
- Lingua principale
- TypeScript
- Stelle
- 5.3k
- Fork
- 377
- Merge medio
- 13h 49m
- PR unite (30g)
- 650
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstack/agent-device
-
bug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
callstack/agent-device#4212 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
iOS alert wait: the last poll can get ~30 ms and turns "no alert" into a failed readForse già presa @pcbeingused333 l’ha presa 4 giorni fa. Apertabug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
callstack/agent-device#4018 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
callstack/agent-device#1869 ·
I maintainer di solito rispondono entro 1 giorno
-
iOS 27: HealthKit's authorization sheet reads as one node, so label and ref presses can't reach itAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
callstack/agent-device#4226 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 70/100
callstack/agent-device#4216 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di callstack/agent-device
Issue simili
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timingApertae2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
devswha/herdr-web-ui#2884 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
b:minor bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
software-mansion/argent#1771 ·
I maintainer di solito rispondono entro 1 giorno
-
Resources: New palettes of XiamenForse già presa @rmt-svc l’ha presa oggi. Apertaresources
Difficoltà 1/5 1-3 ore Idoneità per principianti 74/100
railmapgen/rmg-palette#2491 ·
I maintainer di solito rispondono entro 4 giorni