zebrunner / mcloud-device

Android, Appium and STF provider in Docker.
9 stars 8 forks source link

introduce smart appium state verification to be able to exit with 0 from mcloud-device too #189

Open vdelendik opened 4 months ago

vdelendik commented 4 months ago

one of the use-case when appium is exited but we continue to restart mcloud-device... https://github.com/zebrunner/appium/issues/317#issuecomment-1969098221

  1. if appium as a host not resolved then we must recreate (not even restart mcloud-device)
  2. if appium is not accessible, earlier it was part of the healthcheck but seems not very useful we killed node and initiated restart https://github.com/zebrunner/mcloud-device/blob/b9f592166234a90815a803f9e1bca3e1b9e76614/files/healthcheck#L16

I'd say we should wait any timeout 30-60s (actual value TBD) and decide what to do next.

I believe we can start with integrating the appium status verification on the startup as of now.

vdelendik commented 4 months ago

also let's try to identify appium startup phase to increase waiter or ignore such state until we have understanding of the result...