Repository navigation
Conversation
3df2265 to
450c0f4
Compare
| devices: | ||
| - /dev/kvm:/dev/kvm | ||
| group_add: | ||
| - "${KVM_GID:?Set KVM_GID to the group ID owning /dev/kvm}" |
There was a problem hiding this comment.
I tested this in a gcp vm with nested virtualization enabled:
KVM_GID=$(stat -c %g /dev/kvm) BUG_ID=2085742 RUN_ID=2085742-android-1 docker compose -f agents/autowebcompat-repro/compose.yml -f agents/autowebcompat-repro/compose.android.yml up --build --force-recreate --abort-on-container-exit
We discussed that on production we'll need to use Cloud Batch instead of Cloud Run, so this depends on #6638.
450c0f4 to
6d30443
Compare
c4670ba to
3f46c40
Compare
9748c93 to
90aa649
Compare
| printf 'disk.dataPartition.size=12G\nhw.ramSize=8192\nhw.keyboard=no\n' \ | ||
| >> "$ANDROID_AVD_HOME/webcompat.avd/config.ini" | ||
|
|
||
| FROM android-base AS android-agent |
There was a problem hiding this comment.
Is this temporary, for local testing only, with the plan to replace agent with android-agent once we have Cloud Batch support?
There was a problem hiding this comment.
yes, I was thinking to rename android-agent to agent (and the current agent becomes something like desktop-agent). I kept them as separate targets so we don't build the Android image until it's supported
jgraham
left a comment
There was a problem hiding this comment.
My high level question is how we handle android emulator crashes (or otherwise the emulator getting into a bad state); experience suggests that this isn't very unlikely. Making the emulator a separate service that the agent harness can't restart if needed is likely to cause some frustrating problems down the line.
| @@ -0,0 +1,153 @@ | |||
| import logging | |||
There was a problem hiding this comment.
Did we consider using mozdevice rather than rewriting much of the same code here? I'm aware that there are a bunch of edge cases that we've figured out from experience that new code is unlikely to cover.
There was a problem hiding this comment.
Good call, I've switched it to use mozdevice instead.
| @@ -0,0 +1,153 @@ | |||
| import logging | |||
There was a problem hiding this comment.
Did we consider using mozdevice rather than rewriting much of the same code here? I'm aware that there are a bunch of edge cases that we've figured out from experience that new code is unlikely to cover.
2c0de97 to
201b0ac
Compare
Added an
android-agentDocker build target with the Android SDK and a google_apis x86_64 emulator.Also added a helper
android_emulator.py, which boots the emulator, waits for it, wraps adb, and optionally captures logcat.