Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27841] test: handle when android emulator restarts itself mid-suite

GitHub Issuen/a
TypeStory
PriorityLow
StatusClosed
ResolutionDone
Resolution Date2020-04-14T19:47:29.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2020-04-13T14:48:15.000+0000
Updated2020-04-17T15:53:59.000+0000

Description

Sometimes the android emulator will automatically update one of the google play services modules (typically maps) and will spit out something like this in the logs:
[ERROR] FusedLocationProvider: (main) [30620,30621] Google Play Services connection suspended!
[INFO]  ChimeraModuleLdr: Module config changed, forcing restart due to module com.google.android.gms.maps_dynamite
[INFO]  Process: Sending signal. PID: 19111 SIG: 9
We should detect this in our test suite handling code and either immediately fail or restart/retry. Otherwise the test suite effectively hangs until Jenkins kills it via the timeout.

Comments

  1. Christopher Williams 2020-04-14

    Pushed change to test suite to sniff for the log string indicating this occurred and have it exit with failure immediately. I don't think we can properly wipe test results and restart the app...
  2. Samir Mohammed 2020-04-17

    Closing ticket, as suite passed all tests in Jenkins.

JSON Source