CircleCI-Public / android-orb

An orb for working with Android on CircleCI
https://circleci.com/developer/orbs/orb/circleci/android
MIT License
41 stars 25 forks source link

Cannot run Android tests #20

Closed skychiarottoa closed 2 years ago

skychiarottoa commented 3 years ago

Hi we are running android tests (UI test) succesfully using circle ci with a Medium machine. We try to use your orb in order to clean up the .circleci/config.yml file but we get the following error: image

New config.yml file: image

thanks for your help

lokst commented 3 years ago

@skychiarottoa Glad to hear that you were able to run the UI tests successfully initially. It seems to me there may be some differences between your original config without the orb and the current config with the orb, that might be causing the difference in build result. Would you like to share a link to the last successful build before using the orb, so that we can try to spot what the differences are?

skychiarottoa commented 3 years ago

Hi, thanks for your reply, I have attached the config file without orb. Just a note: we are using a mac os machine config_without_orb.yml.txt

lokst commented 3 years ago

@skychiarottoa Thanks for the config. Here are some thoughts after reviewing it: 1) Regarding the error when using the orb, do you consistently get it if you retry the build many times? 2) Could you try using the additional-emulator-args parameter and specifying -skin 384x780 as I see that that parameter is present in the config that doesn't use the orb 3) Could you try specifying post-emulator-wait-steps and running adb shell input keyevent 82 and adb shell settings put secure long_press_timeout 1500 in the steps? (As I see that those commands are run in the config that doesn't use the orb)

skychiarottoa commented 3 years ago

Yes I always get that error, I couldn't run any tests after several trials. Today I'm going to try your suggestions

skychiarottoa commented 3 years ago

It seems to work but it is slower. Maybe it is due to the "underlying" machine since I get the following error: Too long with no output (exceeded 50m0s): context deadline exceeded

lokst commented 3 years ago

@skychiarottoa I think it might be hard to troubleshoot this without the links to the last working build and the failed build. Would you like to provide the build links here or alternatively open a support ticket at https://support.circleci.com/hc/en-us/requests/new ?

FelicianoTech commented 2 years ago

Closing this due to a lack of response. We have v2 of this orb coming out this week. If the problem persist with v2, please let us know and we can re-open this Issue.