zebrunner / mcloud-agent

18 stars 11 forks source link

for unhealthy status call add extra information about container itself #306

Open vdelendik opened 5 months ago

vdelendik commented 5 months ago

below you can find how we display current state for unworkable device.

zebrunner-farm status G..UN
device-Amazon_FireTV_Stick_4k-G..UN
Appium: "unhealthy"; STF: "unhealthy"

docker ps -a | grep G..UN
e7ce228d0c71   public.ecr.aws/zebrunner/mcloud-device:2.6.4   "/bin/sh -c 'bash /o…"   4 minutes ago        Restarting (1) 47 seconds ago                                                           device-Amazon_FireTV_Stick_4k-G..UN
b27a5c3b6703   public.ecr.aws/zebrunner/uploader:3.4          "/entrypoint.sh"         4 minutes ago        Up 4 minutes                                                                            device-Amazon_FireTV_Stick_4k-G..UN-uploader
9ee83e47c1a6   public.ecr.aws/zebrunner/appium:2.0.14         "/opt/entrypoint/ent…"   4 minutes ago        Exited (0) 4 minutes ago                                                                device-Amazon_FireTV_Stick_4k-G..UN-appium

it would be great for each unhealthy state also provide state of the container, for example:

Appium: "unhealthy - Exited(0) 4 minutes ago"; STF: "unhealthy - Restarting (1) 47 seconds ago"
vdelendik commented 5 months ago

also for stopped device let's try to find out state because now we have:

Appium: UNKNOWN; STF: UNKNOWN