Pretty often when we run a build we get the following exception in our UI tests:
Waited for the root of the view hierarchy to have window focus and not request layout for 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus.
We only have a few basic UI tests at the moment (one textview and imageview, checking if they’re visible) so I don’t expect this to have to do with the tests themselves.
Android & Docker, on Ubuntu 16.04
AVD Manager / Wait for Android Emulator / Gradle UI test
Last one fails, but could be because of an issue in one of the other ones.
- 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) : YES
Does a rebuild without caches help? (You can remove the
Cache:Pushsteps temporarily to not to use the cache, or you can delete all the caches on the
Settingstab of the app. : YES
- Does the issue happen sporadically, or every time? : Sporadically
- Does upgrading the build Step to the latest version help? : NO
- When did the issue start? : Has been going on since we began to use Bitrise (around 2 weeks now)
Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.
No. Ran the build locally and the UI tests consistently pass.
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 )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: Redirecting… .