Page MenuHomePhabricator

[Dev] Android emulator is failing to boot again in CI
Closed, ResolvedPublic1 Estimated Story Points

Description

This looks like a new issue, not timeouts resurfacing.

N.B. Looks like this first borked[1] during yesterday's Gerrit outage so maybe there's some bad state lurking somewhere or something.

[1] https://integration.wikimedia.org/ci/job/apps-android-wikipedia-periodic-test/1641/

Stack trace

13:22:17 [android] Starting Android emulator
13:22:17 $ /srv/jenkins-workspace/tools/android-sdk/tools/emulator -engine classic -ports 5732,5733 -report-console tcp:5830,max=60 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_240_WVGA_android-24_x86 -no-snapshot-load -no-snapshot-save -no-window -no-audio -no-boot-anim
13:22:17 WARNING: Force to use classic engine to support snapshot.
13:22:22 Snapshot storage already in use: /mnt/home/jenkins-deploy/.android/avd/hudson_en-US_240_WVGA_android-24_x86.avd/snapshots.imgemulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
13:22:22 emulator: WARNING: userdata image already in use, changes will not persist!
13:22:22 
13:22:22 Creating filesystem with parameters:
13:22:22     Size: 576716800
13:22:22     Block size: 4096
13:22:22     Blocks per group: 32768
13:22:22     Inodes per group: 7040
13:22:22     Inode size: 256
13:22:22     Journal blocks: 2200
13:22:22     Label: 
13:22:22     Blocks: 140800
13:22:22     Block groups: 5
13:22:22     Reserved block group size: 39
13:22:22 Created filesystem with 11/35200 inodes and 4536/140800 blocks
13:22:22 emulator: WARNING: cache image already in use, changes will not persist!
13:22:22 
13:22:22 Creating filesystem with parameters:
13:22:22     Size: 69206016
13:22:22     Block size: 4096
13:22:22     Blocks per group: 32768
13:22:22     Inodes per group: 4224
13:22:22     Inode size: 256
13:22:22     Journal blocks: 1024
13:22:22     Label: 
13:22:22     Blocks: 16896
13:22:22     Block groups: 1
13:22:22     Reserved block group size: 7
13:22:22 Created filesystem with 11/4224 inodes and 1302/16896 blocks
13:23:22 [android] Emulator did not appear to start; giving up
13:23:22 [android] Stopping Android emulator
13:23:22 $ /srv/jenkins-workspace/tools/android-sdk/platform-tools/adb kill-server
13:23:23 Archiving artifacts
13:23:28 Recording test results
13:23:28 ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
13:23:28 IRC notifier plugin: Sending notification to: #wikimedia-android-ci
13:23:30 Finished: NOT_BUILT

Event Timeline

Mholloway renamed this task from [Dev] Emulator is failing to boot again in CI to [Dev] Android emulator is failing to boot again in CI.Jun 1 2017, 3:05 PM
Mholloway triaged this task as Medium priority.

The emulator was not shut down when Gerrit went down, and the plugin was no longer able to start it again since it was already running. Killing the running emulator processes got it booting again.