Closed Bug 1606954 Opened 2 years ago Closed 2 years ago

[mozrunner] `mach install` fails with "KeyError: '4.3'"


(Testing :: Mozbase, defect, P2)



(firefox-esr68 unaffected, firefox72 unaffected, firefox73 fixed, firefox74 fixed)

Tracking Status
firefox-esr68 --- unaffected
firefox72 --- unaffected
firefox73 --- fixed
firefox74 --- fixed


(Reporter: botond, Assigned: gbrown)


(Blocks 1 open bug, Regression)


(Keywords: regression, Whiteboard: dev-prod-2020)


(1 file)


  1. Build mozilla-central targeting Android (ARM)
  2. Attach an Android device via USB
  3. Run mach install

Expected results

The GeckoView Example app is installed onto the device.

Actual results

I get the following error:

$ ./mach install
Error running mach:


The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error

The details of the failure are as follows:

KeyError: '4.3'

  File "/home/botond/dev/mozilla/android/python/mozbuild/mozbuild/", line 713, in install
    ret = verify_android_device(self, install=InstallIntent.YES, **kwargs) == 0
  File "/home/botond/dev/mozilla/android/testing/mozbase/mozrunner/mozrunner/devices/", line 190, in verify_android_device
    emulator = AndroidEmulator('*', substs=build_obj.substs, verbose=verbose)
  File "/home/botond/dev/mozilla/android/testing/mozbase/mozrunner/mozrunner/devices/", line 370, in __init__
    self.avd_info = AVD_DICT[self.avd_type]

This is a recent regression.

./mach android install-geckoview_example does work as a workaround.

Assignee: nobody → gbrown
Priority: -- → P2
Regressed by: 1599534
Component: Android Studio and Gradle Integration → Mozbase
Product: Firefox Build System → Testing
Summary: `mach install` fails with "KeyError: '4.3'" → [mozrunner] `mach install` fails with "KeyError: '4.3'"

AVD names were updated in bug 1599534, but this case - auto-selecting an avd for an arm
build - was missed.

Pushed by
Avoid KeyError in android arm 'mach install' r=jmaher
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Whiteboard: [checkin-needed-beta]
Whiteboard: dev-prod-2020
You need to log in before you can comment on or make changes to this bug.