Closed vdelendik closed 2 years ago
on device connect when udev launch add)
we forcibly remove any existing containers and start from scratch.
so to test we have to disable containers removal on disconnect updating /usr/local/bin/zebrunner-farm
- commenting/disabling action remove:
remove)
echo "down ${ID_SERIAL_SHORT}"
;;
disconnect device -> existing session in stf crashed but device potentially still among Available -> in mcloud-grid appium still registered -> two device containers are up&running (in unhealthy state after 30-60s)
double check device containers creation date
try to execute any automated test vs disconnected devices
-> nothing is started, request should be displayed in mcloud/grid/console
queue. if nothing connected for 240s then test should fail
connect device -> old containers MUST be recreated and started
use device in stf and via automation to double check
verified with @dhreben. both iOS and Android handled correctly for test automation. as about manual usage still iOS is shown as available in STF but it suppose to be fixed in https://github.com/zebrunner/stf/issues/411
as usb connect incrementы symlink constantly we can't reuse old container as linked device is not accessible. In v2.2 we are going to define better strategy on exit. It means that containers in Exited state might be on server which can't be reused at all. so every start operation should forcibly recreate container