Android driver timeout when running on GitHub Actions
See original GitHub issueI’ve tried to add Maestro to my project with this PR and after running the tests on GitHub Actions, I received the following error:
java.util.concurrent.TimeoutException: Maestro Android driver did not start up in time
at maestro.drivers.AndroidDriver.awaitLaunch(AndroidDriver.kt:104)
at maestro.drivers.AndroidDriver.open(AndroidDriver.kt:78)
at maestro.Maestro$Companion.android(Maestro.kt:305)
at maestro.Maestro$Companion.android$default(Maestro.kt:303)
at maestro.cli.util.MaestroFactory.createAndroid(MaestroFactory.kt:54)
at maestro.cli.util.MaestroFactory.createMaestro(MaestroFactory.kt:35)
at maestro.cli.command.TestCommand.call(TestCommand.kt:58)
at maestro.cli.command.TestCommand.call(TestCommand.kt:30)
at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
at picocli.CommandLine.access$1200(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2[159](https://github.com/AdamMc331/TOA/runs/8240575616?check_suite_focus=true#step:5:163))
at picocli.CommandLine.execute(CommandLine.java:2058)
at maestro.cli.AppKt.main(App.kt:74)
Additional notes:
Here is my action workflow setup:
- name: Run Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: |
maestro --platform android test maestro_tests/login.yaml
maestro --platform android test maestro_tests/create_task.yaml
maestro --platform android test maestro_tests/mark_task_as_done.yaml
maestro --platform android test maestro_tests/undo_mark_task_as_done.yaml
The maestro commands should run as soon as the emulator is up and running. I noticed that my APK was not yet installed, so I am trying this again with that step first, but I don’t think they’re related, as I would have expected some package not found error & not a driver timeout.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Starting up the emulator takes too long (even on macOs VMs)
I've implemented an action for my repo using your emulator android to run a Flutter drive test. When executing the step were the...
Read more >Timeout is out befor the istallation of the APK #11917 - GitHub
The problem I try to install my APK that take 3 min in istallation with the commande line "c:\sdk\platform-tools\adb.exe -P 5037 -s 36759a2b ......
Read more >'de.rm.app.android.debug' is still running after 500ms timeout ...
I have under Android API 33 sometimes the issue that on driver. ... error: 'de.rm.app.android.debug' is still running after 500ms timeout.
Read more >try to increase the 20000ms adb execution timeout ... - GitHub
Whenever I run my basic code to install the apk and run it , apk gets installed but it fails with adb execution...
Read more >Increasing timeout for slow booting device #14453 - GitHub
Create a new device and try to start it with appium. The device need to have never been runned ( or run with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for reporting @AdamMc331, this adds more urgency for us to add support for screenshots and screen recordings to make it more clear what is going on whenever a test fails
@AdamMc331 heads up that Maestro now supports screenshots: https://maestro.mobile.dev/reference/take-screenshot
Please let me know if you have more context on the issue and I will investigate