Installing apk never finishes, making detox android e2e tests time out

Bitrise Build Issue Report template

Description of the issue

I’m trying to run Detox e2e tests on android in bitrise. I have the same tests working in travis and locally. For iOS, it works fine locally, on travis, and on bitrise. Everything with creating the emulator, starting it, building the android app and instrumentation seems to work. Then when it’s installing the apk to the emulator it just never proceeds and triggers the timeout instead.

Environment:

Where did the issue happen?

Android Ubuntu 16.04, system-images;android-28;google_apis;x86

Fails on the “Detox - Run E2E Tests” script step, android workflow

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • Does the issue happen sporadically, or every time? : Every time
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : Since starting to evaluate bitrise and if it can handle android e2e or not

Local reproduction

_Can it be reproduced on your own Mac/PC: no

Local reproduction: Linux / Android (docker based) stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( Bitrise CLI )? unable to test, not enough space on disk

Build log

https://app.bitrise.io/build/42e2db33ffa6485c
Also opened an issue in the Detox repo: Timeout starts counting before apk and instrumentation has been installed · Issue #1194 · wix/Detox · GitHub

Hello there,

Could you please enable support user on the settings tab of the app so I could check out your configs, and try to come up with a possible solution?

Hello! I’ve enabled Bitrise Support user for the app now.
Managed to get x86 android working on mac now at least: https://app.bitrise.io/build/c31c1a40907cd137
Using system-images;android-28;google_apis;x86
Latest android emulator canary using emulator-headless -no-accel
Using default “Hybrid (Xamarin, Ionic, …) on macOS, includes Visual Studio for Mac, Stable channel”

1 Like

But, another run seems to be stuck at the same place now: https://app.bitrise.io/build/63f2d0c56557bba1

Hello there,

Sorry for the late response :cry:is this issue still occurring?

also could you try running them in the background and pipe the logs into a file? :thinking: maybe that would solve this issue for you, something like detox test args &> logs.log &
I’m not saying that this is good, but worth a try :sweat_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.