Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide debug option for the appium container #167

Closed
vdelendik opened this issue May 5, 2023 · 3 comments · Fixed by #340
Closed

provide debug option for the appium container #167

vdelendik opened this issue May 5, 2023 · 3 comments · Fixed by #340
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@vdelendik
Copy link
Contributor

for details visit: zebrunner/mcloud-device#135

@vdelendik vdelendik added the enhancement New feature or request label May 5, 2023
@vdelendik vdelendik added this to the 1.4.12 milestone May 5, 2023
@vdelendik vdelendik modified the milestones: 1.4.12, 2.1 Jul 18, 2023
@azarouski azarouski linked a pull request Feb 23, 2024 that will close this issue
@azarouski azarouski self-assigned this Feb 23, 2024
@azarouski
Copy link
Contributor

To check this enhancement you need to change Dockerfile variables before build:

ENV DEBUG=true
ENV DEBUG_TIMEOUT=3600
ENV VERBOSE=true

or run an already built container with --env args:

docker run --env DEBUG=true --env VERBOSE=true ... IMAGE [COMMAND] [ARG...]

after that you need to broke some code to provoke container to exit (in usual situation) and check that container has not exited. Also you need to check logs for verbose output.

@dhreben
Copy link
Contributor

dhreben commented Mar 1, 2024

Reopened

(base) build@mcloud:~/tools/mcloud-agent$ docker run --env DEBUG=true --env VERBOSE=true public.ecr.aws/zebrunner/appium:2.0.12-beta7
/opt/entrypoint/entrypoint.sh: line 3: /opt/debug.sh: No such file or directory
WARN Appium Appium encountered 2 warnings while validating drivers found in manifest /usr/lib/node_modules/appium/node_modules/.cache/appium/extensions.yaml
WARN Appium Driver "uiautomator2" has 1 potential problem: 
WARN Appium  - Driver "uiautomator2" (package `appium-uiautomator2-driver`) may be incompatible with the current version of Appium (v2.2.2) due to its peer dependency on older Appium v^2.4.1. Please ask the developer of `appium-uiautomator2-driver` to update the peer dependency on Appium to v2.2.2.
- Listing available plugins
✔ Listing available plugins
- images [not installed]
- execute-driver [not installed]
- relaxed-caps [not installed]
- universal-xml [not installed]
03-01 14:36:34.333  77  77 I adb   : auth.cpp:416 adb_auth_init...
03-01 14:36:34.333  77  77 I adb   : auth.cpp:220 User key '/root/.android/adbkey' does not exist...
03-01 14:36:34.333  77  77 I adb   : auth.cpp:64 generate_key(/root/.android/adbkey)...
03-01 14:36:34.403  77  77 I adb   : auth.cpp:152 loaded new key from '/root/.android/adbkey' with fingerprint DFACEEE0F9D0653C6F7F101B0810B7F103FFB01DB675152463DF113973AC9085
03-01 14:36:34.403  77  77 I adb   : auth.cpp:391 adb_auth_inotify_init...
error: no devices/emulators found
Not documented device state: ''. One more attempt in 5 seconds.
Restarting...

@dhreben dhreben reopened this Mar 1, 2024
@dhreben
Copy link
Contributor

dhreben commented Mar 1, 2024

Tested on public.ecr.aws/zebrunner/appium:2.0.12-beta8

Verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants