You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gate PRs on some tests running in an Android emulator on CI #21116
#21094 adds ./mach test-android-startup, a minimal test based on the Android emulator. A next step (in addition to running more tests, such as a subset of WPT) is to add it somewhere in etc/ci/buildbot_steps.yml so that PRs need to make it pass before landing.
However, the current configuration of ./mach test-android-startup runs an emulator for Android x86. On CI machines, this fails to start with:
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: KVM requires a CPU that supports vmx or svm
vmx and svm are other names for Intel VT-x and AMD-V, hardware support for virtualization. It appears that the AWS EC2 host machine is already using this support, so it not available to our already-virtualized guest instance.
On EC2, it appears possible to use VT-x on “bare metal” instance that are not already virtualized. However these only come ridiculously oversized (and so expensive) for this task.
An alternative would be to run those tests on macOS machines from Macstadium, since those run directly of “real” hardware.
Another might be to emulate Android ARM instead of x86. However so far I haven’t managed to start Servo in and ARM emulator because OpenGL ES 3 is required, but only GLES 2 is available in the configurations that I’ve tried.
I have now managed to start Servo on emulated ARM with the API level 25 system image, but this was on a Macbook without giving a -gpu flag when starting the emulator, so it probably used the host’s hardware GPU. This configuration is likely not available on "normal" AWS EC2 machines that do not have a GPU.
Thanks, though the warning suggests that x86 emulation without KVM is a configuration that is not supported at all and probably buggy (in addition to being very slow), so I don’t know that this lead is worth exploring further.
Activity
SimonSapin commentedon Jul 2, 2018
I have now managed to start Servo on emulated ARM with the API level 25 system image, but this was on a Macbook without giving a
-gpuflag when starting the emulator, so it probably used the host’s hardware GPU. This configuration is likely not available on "normal" AWS EC2 machines that do not have a GPU.SimonSapin commentedon Jul 2, 2018
-gpu swiftshader_indirectalso seems to work on mac (still with ARM), although it did not on my Linux desktop…SimonSapin commentedon Jul 2, 2018
It turns out this isn’t quite the case! With
-no-accelit doesn’t need KVM, but of course CPU emulation is a slow as for ARM. Also it prints:… which probably means that this isn’t a supported configuration and that they might not be fixing bugs in it.
Some simple programs do run correctly, but Servo gets another startup crash. With an unhelpful stack trace, despite debug mode.
jdm commentedon Jul 3, 2018
To get a better backtrace, follow #20912 (comment).
SimonSapin commentedon Jul 4, 2018
Thanks, though the warning suggests that x86 emulation without KVM is a configuration that is not supported at all and probably buggy (in addition to being very slow), so I don’t know that this lead is worth exploring further.
With @larsbergstrom and @edunham we’ve been chatting on IRC about getting servers from https://www.packet.net/bare-metal/servers/ in order to run the emulator with KVM. The same provider is apparently being considered for running GeckoView tests in Android emulators.
Add a no-op 'android-x86' set of Buildbot steps
Auto merge of #21162 - servo:android-x86-noop, r=SimonSapin
SimonSapin commentedon Jul 11, 2018
Closing this is roughly the same as #21124.
Auto merge of #21162 - servo:android-x86-noop, r=SimonSapin