bazel-contrib / rules_jvm_external

Bazel rules to resolve, fetch and export Maven artifacts
Apache License 2.0
336 stars 256 forks source link

Breaks with Bazel HEAD #165

Closed laszlocsomor closed 5 years ago

laszlocsomor commented 5 years ago

CI link: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/1026#50cf7788-77e0-4c52-8baf-15f842d6d915

Source tree: https://github.com/bazelbuild/rules_jvm_external/commit/b89ee497d3fa56337141d12bba969910a5676996

Bazel version: built at https://github.com/bazelbuild/bazel/commit/12c7942f45185e15ac26c383644b5d63a3c25269

Test log:

exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //src/test:greeter_test
-----------------------------------------------------------------------------
+ '[' -z '' ']'
+ ANDROID_TESTBRIDGE_TEST_ONLY=
+ test_label=//src/test:greeter_test
+ test_entry_point=../android_test_support/instrumentation_test_runner
+ WORKSPACE_DIR=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__
+ adb=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../androidsdk/platform-tools/adb
+ aapt=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../androidsdk/aapt_binary
+ device_script=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../android_test_support/tools/android/emulated_devices/generic_phone/android_23_x86_qemu2
+ data_deps=
++ join_paths /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__ ,
++ local base_dir=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__
++ local sep=,
++ shift 2
++ local paths=
++ local result=
++ echo
+ data_deps=
+ device_broker_type=WRAPPED_EMULATOR
+ target_apk=src/main/greeter_app.apk
+ instrumentation_apk=src/test/greeter_test_app.apk
+ support_apks=
++ join_paths /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__ ,
++ local base_dir=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__
++ local sep=,
++ shift 2
++ local paths=
++ local result=
++ echo
+ support_apks=
+ apks_to_install=src/main/greeter_app.apk,src/test/greeter_test_app.apk
+ device_script_fixtures=()
+ declare -A device_script_fixtures
+ host_service_fixture=
+ host_service_fixture_services=
+ test_suite_property_name=bazel.test_suite
++ cat
+ bazel_only_argv=--install_test_services=true
++ cat
+++ printf %s,
+++ printf %s,
+ argv='--aapt=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../androidsdk/aapt_binary --adb=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../androidsdk/platform-tools/adb --device_broker_type=WRAPPED_EMULATOR --device_script=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../android_test_support/tools/android/emulated_devices/generic_phone/android_23_x86_qemu2 --data_deps= --test_label=//src/test:greeter_test --apks_to_install=src/main/greeter_app.apk,src/test/greeter_test_app.apk --fixture_scripts=, --hermetic_server_script= --hermetic_servers= --data_deps=, --test_filter= '
+ ../android_test_support/instrumentation_test_runner --wrapper_script_flag=--jvm_flag=-Dbazel.test_suite=com.google.android.apps.common.testing.suite.AndroidDeviceTestSuite '--wrapper_script_flag=--jvm_flag=-Dargv=--install_test_services=true --aapt=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../androidsdk/aapt_binary --adb=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../androidsdk/platform-tools/adb --device_broker_type=WRAPPED_EMULATOR --device_script=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../android_test_support/tools/android/emulated_devices/generic_phone/android_23_x86_qemu2 --data_deps= --test_label=//src/test:greeter_test --apks_to_install=src/main/greeter_app.apk,src/test/greeter_test_app.apk --fixture_scripts=, --hermetic_server_script= --hermetic_servers= --data_deps=, --test_filter= ' --aapt=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../androidsdk/aapt_binary --adb=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../androidsdk/platform-tools/adb --device_broker_type=WRAPPED_EMULATOR --device_script=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../android_test_support/tools/android/emulated_devices/generic_phone/android_23_x86_qemu2 --data_deps= --test_label=//src/test:greeter_test --apks_to_install=src/main/greeter_app.apk,src/test/greeter_test_app.apk --fixture_scripts=, --hermetic_server_script= --hermetic_servers= --data_deps=, --test_filter=
JUnit4 Test Runner
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/external/android_test_support/opensource/entry_point_deploy.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Jun 07, 2019 2:04:40 AM com.google.android.apps.common.testing.broker.WrappedEmulatedDeviceBroker runEmulatorLaunchScript
INFO: Running emulator launch script: [/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../android_test_support/tools/android/emulated_devices/generic_phone/android_23_x86_qemu2, --action=start, --adb_server_port=36811, --adb_port=34026, --emulator_port=52995, --logcat_path=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/testlogs/src/test/greeter_test/test.outputs/device_logcat/logcat16102378533488436489.txt, --apks=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/src/main/greeter_app.apk /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/src/test/greeter_test_app.apk /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/12405704071759822584/services/test_services.apk /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/12405704071759822584/runner/android_test_orchestrator/stubapp/stubapp.apk, --system_apks=, --subprocess_log_dir=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/testlogs/src/test/greeter_test/test.outputs/broker_logs/exec-1, --nolaunch_in_seperate_session, --start_vnc_on_port=0, --initial_locale=en-US, --initial_ime=com.android.inputmethod.latin/.LatinIME, --kvm_device=/dev/kvm, --grant_runtime_permissions=true, --logcat_filter='*:I', --enable_display, --nopreverify_apks, --noenable_console_auth, --enable_gps, --export_launch_metadata_path=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/emulator_meta14600193498143695207.pb, --net_type=fastnet, --long_press_timeout=5000]
Jun 07, 2019 2:04:54 AM com.google.android.apps.common.testing.suite.AndroidDeviceTestSuite$Builder build
WARNING: AndroidDeviceTestSuite Native suite creation failed!
.E
Time: 0.005
There was 1 failure:
1) initializationError(com.google.android.apps.common.testing.suite.AndroidDeviceTestSuite)
java.lang.IllegalStateException: Bad exit code: 1. Command: [/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../android_test_support/tools/android/emulated_devices/generic_phone/android_23_x86_qemu2, --action=start, --adb_server_port=36811, --adb_port=34026, --emulator_port=52995, --logcat_path=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/testlogs/src/test/greeter_test/test.outputs/device_logcat/logcat16102378533488436489.txt, --apks=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/src/main/greeter_app.apk /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/src/test/greeter_test_app.apk /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/12405704071759822584/services/test_services.apk /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/12405704071759822584/runner/android_test_orchestrator/stubapp/stubapp.apk, --system_apks=, --subprocess_log_dir=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/testlogs/src/test/greeter_test/test.outputs/broker_logs/exec-1, --nolaunch_in_seperate_session, --start_vnc_on_port=0, --initial_locale=en-US, --initial_ime=com.android.inputmethod.latin/.LatinIME, --kvm_device=/dev/kvm, --grant_runtime_permissions=true, --logcat_filter='*:I', --enable_display, --nopreverify_apks, --noenable_console_auth, --enable_gps, --export_launch_metadata_path=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/emulator_meta14600193498143695207.pb, --net_type=fastnet, --long_press_timeout=5000].
=====Error begin:
...
I0607 02:04:41.200695 140516606297920 emulated_device.py:568] Copying system image to /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/launcher_tmp12753000802223826896/tmpjFG2ZAandroid-emulator-launch/images/session/system.img
I0607 02:04:41.654309 140516606297920 emulated_device.py:3465] Running debugfs commands: ['unlink /vendor/lib/egl']
debugfs 1.44.1 (24-Mar-2018)
I0607 02:04:44.097393 140516606297920 emulated_device.py:717] Making sdcard on the fly due to a nonstandard size
I0607 02:04:44.734656 140516606297920 emulated_device.py:288] Emulator type: 2
I0607 02:04:44.765813 140516606297920 emulated_device.py:1790] Executing: ['/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/androidsdk/emulator/emulator', '-ports', '52995,34026', '-skin', u'480x800', '-timezone', 'America/Los_Angeles', '-cache', 'cache.img', '-memory', '2048', '-sdcard', 'sdcard.img', '-ramdisk', 'ramdisk.img', '-partition-size', '2047', '-no-snapshot-save', '-verbose', '-unix-pipe', 'sockets/qemu.mgmt', '-unix-pipe', 'sockets/device-forward-server', '-unix-pipe', 'sockets/tar-pull-server', '-unix-pipe', 'sockets/exec-server', '-unix-pipe', 'sockets/tar-push-server', '-unix-pipe', 'sockets/h2o', '-writable-system', '-show-kernel', '-engine', 'qemu2', '-kernel', 'kernel-ranchu', '-system', 'system.img', '-feature', 'AllowSnapshotMigration', '-feature', '-GLDMA', '-feature', '-OnDemandSnapshotLoad', '-data', 'userdata-qemu.img', '-gpu', 'swiftshader_indirect', '-no-audio', '-no-boot-anim', '-selinux', u'disabled', '-scale', '1.0', '-fixed-scale', '-netdelay', 'none', '-netspeed', 'full', '-avd', 'mobile_ninjas.adb.34026', '-qemu', u'-enable-kvm', '-L', '/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/launcher_tmp12753000802223826896/tmpjFG2ZAandroid-emulator-launch/bios', '-append', 'enable_test_harness=1']
I0607 02:04:44.768162 140516606297920 emulated_device.py:1824] Launching emulator in: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/launcher_tmp12753000802223826896/tmpjFG2ZAandroid-emulator-launch/images/session
I0607 02:04:44.768557 140516606297920 emulated_device.py:1830] Write emulator log to /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/testlogs/src/test/greeter_test/test.outputs/emulator_cO4CC9.log
I0607 02:04:44.769979 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 0 total attempts: 0
I0607 02:04:44.770735 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:45.772977 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 1 total attempts: 1
I0607 02:04:45.773252 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:46.774940 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 2 total attempts: 2
I0607 02:04:46.775212 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:47.776967 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 3 total attempts: 3
I0607 02:04:47.777350 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:48.779114 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 4 total attempts: 4
I0607 02:04:48.779392 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:49.781044 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 5 total attempts: 5
I0607 02:04:49.781318 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:50.782953 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 6 total attempts: 6
I0607 02:04:50.783231 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:51.784893 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 7 total attempts: 7
I0607 02:04:51.785182 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:52.786803 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 8 total attempts: 8
I0607 02:04:52.787070 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:53.788687 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 9 total attempts: 9
I0607 02:04:53.789071 140516606297920 emulated_device.py:3937] Checking if adb is listening.
I0607 02:04:54.790812 140516606297920 emulated_device.py:2401] system: False pm: False adb: False sdcard: False boot_complete: False launcher: False pipes: False current step attempts: 10 total attempts: 10
E0607 02:04:54.791110 140516606297920 emulated_device.py:3904] Emulator failed to launch: [Errno 10] No child processes
I0607 02:04:54.791465 140516606297920 emulated_device.py:3883] Emulator log below ==================================================
emulator: Android emulator version 29.0.9.0 (build_id 5537588) (CL:N/A)
emulator: Found AVD name 'mobile_ninjas.adb.34026'
emulator: Found AVD target architecture: x86
emulator: argv[0]: '/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/androidsdk/emulator/emulator'; program directory: '/opt/android-sdk-linux/emulator'
emulator:  Found directory: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/launcher_tmp12753000802223826896/tmpjFG2ZAandroid-emulator-launch/images/session

emulator: emuDirName: '/opt/android-sdk-linux/emulator'
emulator:  Found directory: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/launcher_tmp12753000802223826896/tmpjFG2ZAandroid-emulator-launch/images/session

emulator: Probing for /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/_tmp/4e4d30a0f396a30869334dc9e8417b33/launcher_tmp12753000802223826896/tmpjFG2ZAandroid-emulator-launch/images/session/kernel-ranchu-64: file missing
emulator: try dir /opt/android-sdk-linux/emulator
emulator: Trying emulator path '/opt/android-sdk-linux/emulator/qemu/linux-x86_64/qemu-system-i386'
emulator: Found target-specific 64-bit emulator binary: /opt/android-sdk-linux/emulator/qemu/linux-x86_64/qemu-system-i386
emulator: Adding library search path: '/opt/android-sdk-linux/emulator/lib64'
emulator: Adding library search path: '/opt/android-sdk-linux/emulator/lib64/gles_swiftshader'
emulator: Adding library search path: '/opt/android-sdk-linux/emulator/lib64/gles_angle'
emulator: Adding library search path: '/opt/android-sdk-linux/emulator/lib64/gles_angle9'
emulator: Adding library search path: '/opt/android-sdk-linux/emulator/lib64/gles_angle11'
emulator: Adding library search path: '/opt/android-sdk-linux/emulator/lib64/libstdc++'
emulator: Adding library search path for Qt: '/opt/android-sdk-linux/emulator/lib64/qt/lib'
emulator: Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/__main__/../androidsdk/emulator/lib64/qt/plugins
emulator: Setting Qt to use software OpenGL: QT_OPENGL=software
emulator: Overriding pre-existing bad Qt high dpi settings...
emulator: Running :/opt/android-sdk-linux/emulator/qemu/linux-x86_64/qemu-system-i386
emulator: qemu backend: argv[00] = "/opt/android-sdk-linux/emulator/qemu/linux-x86_64/qemu-system-i386"
emulator: qemu backend: argv[01] = "-ports"
emulator: qemu backend: argv[02] = "52995,34026"
emulator: qemu backend: argv[03] = "-skin"
emulator: qemu backend: argv[04] = "480x800"
emulator: qemu backend: argv[05] = "-timezone"
emulator: qemu backend: argv[06] = "America/Los_Angeles"
emulator: qemu backend: argv[07] = "-cache"
emulator: qemu backend: argv[08] = "cache.img"
emulator: qemu backend: argv[09] = "-memory"
emulator: qemu backend: argv[10] = "2048"
emulator: qemu backend: argv[11] = "-sdcard"
emulator: qemu backend: argv[12] = "sdcard.img"
emulator: qemu backend: argv[13] = "-ramdisk"
emulator: qemu backend: argv[14] = "ramdisk.img"
emulator: qemu backend: argv[15] = "-partition-size"
emulator: qemu backend: argv[16] = "2047"
emulator: qemu backend: argv[17] = "-no-snapshot-save"
emulator: qemu backend: argv[18] = "-verbose"
emulator: qemu backend: argv[19] = "-unix-pipe"
emulator: qemu backend: argv[20] = "sockets/qemu.mgmt"
emulator: qemu backend: argv[21] = "-unix-pipe"
emulator: qemu backend: argv[22] = "sockets/device-forward-server"
emulator: qemu backend: argv[23] = "-unix-pipe"
emulator: qemu backend: argv[24] = "sockets/tar-pulemulator: autoconfig: -skindir (null)
emulator: Target arch = 'x86'
emulator: Auto-config: -qemu -cpu qemu32
emulator: Auto-detect: Kernel image requires new device naming scheme.
emulator: Auto-detect: Kernel does not support YAFFS2 partitions.
emulator: Using initial system image: system.img
emulator: No vendor image
emulator: autoconfig: -initdata (null)
emulator: WARNING: SELinux 'disabled' is no longer supported starting with API level 23, switching to 'permissive'
emulator: Physical RAM size: 2048MB

emulator: VM heap size 256MB is above maximum supported 192MB, setting it to that value
emulator: WARNING: System image is writable
emulator: Found 1 DNS servers: 169.254.169.254
emulator: [FeatureControl] Feature 'AllowSnapshotMigration' (13) state set to enabled
emulator: [FeatureControl] Feature 'GLDMA' (30) state set to disabled
emulator: [FeatureControl] Feature 'OnDemandSnapshotLoad' (21) state set to disabled
emulator: found magic skin width=480 height=800 bpp=16

emulator: ERROR: no init encryptionkey.img
emulator: ERROR: Encryption is requested but failed to create encrypt partition.
WARNING: engine selection is no longer supported, always using RACNHU.
WARNING: unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
Unexpected feature list: AllowSnapshotMigration CarPropertyTable FastSnapshotV1 ForceANGLE ForceSwiftshader GLPipeChecksum GenericSnapshotsUI HAXM HVF HYPERV IgnoreHostOpenGLErrors KVM LocationUiV2 OnDemandSnapshotLoad QuickbootFileBacked ScreenRecording SnapshotAdb VideoPlayback VirtualScene Vulkan WindowsHypervisorPlatform WindowsOnDemandSnapshotLoad

I0607 02:04:54.791615 140516606297920 emulated_device.py:3884] Emulator log end ==================================================
I0607 02:04:54.791757 140516606297920 emulated_device.py:3897] cannot show log watchdog.out: file does not exist
I0607 02:04:54.791841 140516606297920 emulated_device.py:3897] cannot show log watchdog.err: file does not exist
Traceback (most recent call last):
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/android_test_support/tools/android/emulator/unified_launcher.py", line 1129, in <module>
app.run(main)
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/absl_py/absl/app.py", line 262, in run
_run_main(main, argv)
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/absl_py/absl/app.py", line 227, in _run_main
sys.exit(main(argv))
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/android_test_support/tools/android/emulator/unified_launcher.py", line 1099, in main
EntryPoint(reporter)
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/android_test_support/tools/android/emulator/unified_launcher.py", line 935, in EntryPoint
mini_boot, FLAGS.sim_access_rules_file, FLAGS.phone_number)
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/android_test_support/tools/android/emulator/unified_launcher.py", line 663, in _Run
snapshot_file=FLAGS.snapshot_file)
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/android_test_support/tools/android/emulator/unified_launcher.py", line 523, in _RestartDevice
snapshot_file=snapshot_file)
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/android_test_support/tools/android/emulator/emulated_device.py", line 1267, in StartDevice
loading_from_snapshot=loading_from_snapshot)
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/android_test_support/tools/android/emulator/emulated_device.py", line 1838, in _StartEmulator
self._PollEmulatorStatus(timer, loading_from_snapshot=loading_from_snapshot)
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/android_test_support/tools/android/emulator/emulated_device.py", line 2402, in _PollEmulatorStatus
self._EnsureEmuRunning()
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f8cc5f5872dffc8c386385f64cf41a98/sandbox/linux-sandbox/339/execroot/__main__/bazel-out/k8-fastbuild/bin/src/test/greeter_test.runfiles/android_test_support/tools/android/emulator/emulated_device.py", line 3906, in _EnsureEmuRunning
raise Exception('Emulator has died')
Exception: Emulator has died
=====Error end

    at com.google.common.base.Preconditions.checkState(Preconditions.java:853)
    at com.google.android.apps.common.testing.broker.WrappedEmulatedDeviceBroker.runEmulatorLaunchScript(WrappedEmulatedDeviceBroker.java:555)
    at com.google.android.apps.common.testing.broker.WrappedEmulatedDeviceBroker.leaseDevice(WrappedEmulatedDeviceBroker.java:264)
    at com.google.android.apps.common.testing.suite.AndroidDeviceTestSuite$Builder.makeNativeTestSuite(AndroidDeviceTestSuite.java:140)
    at com.google.android.apps.common.testing.suite.AndroidDeviceTestSuite$Builder.build(AndroidDeviceTestSuite.java:103)
    at com.google.android.apps.common.testing.suite.AndroidDeviceTestSuite.suite(AndroidDeviceTestSuite.java:64)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:35)
    at org.junit.internal.runners.SuiteMethod.<init>(SuiteMethod.java:24)
    at org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:11)
    at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
    at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
    at com.google.testing.junit.runner.internal.junit4.MemoizingRequest.createRunner(MemoizingRequest.java:48)
    at com.google.testing.junit.runner.internal.junit4.MemoizingRequest.getRunner(MemoizingRequest.java:34)
    at com.google.testing.junit.runner.junit4.JUnit4TestModelBuilder.get(JUnit4TestModelBuilder.java:49)
    at com.google.testing.junit.runner.junit4.JUnit4TestModelBuilder.get(JUnit4TestModelBuilder.java:27)
    at com.google.testing.junit.runner.util.MemoizingSupplier.get(MemoizingSupplier.java:42)
    at com.google.testing.junit.runner.junit4.JUnit4Runner.run(JUnit4Runner.java:92)
    at com.google.testing.junit.runner.BazelTestRunner.runTestsInSuite(BazelTestRunner.java:144)
    at com.google.testing.junit.runner.BazelTestRunner.main(BazelTestRunner.java:82)

FAILURES!!!
Tests run: 1,  Failures: 1

BazelTestRunner exiting with a return value of 1
JVM shutdown hooks (if any) will run now.
The JVM will exit once they complete.

-- JVM shutdown starting at 2019-06-07 02:04:54 --
laszlocsomor commented 5 years ago

~Hm, is this a dupe of https://github.com/bazelbuild/rules_jvm_external/issues/161 ?~

Looks different from https://github.com/bazelbuild/rules_jvm_external/issues/161

jin commented 5 years ago

I cannot reproduce this with Bazel 0.26.1, but I can reproduce it with last_green. Looking..

jin commented 5 years ago

Bisected culprit commit: https://github.com/bazelbuild/bazel/commit/bc6f7cb330bb531f062bb301f3703876051191f5

Will rollback.