Closed Bug 1606954 Opened 6 months ago Closed 6 months ago

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

Categories

(Testing :: Mozbase, defect, P2)

defect

Tracking

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

RESOLVED FIXED
mozilla74
Tracking Status
firefox-esr68 --- unaffected
firefox72 --- unaffected
firefox73 --- fixed
firefox74 --- fixed

People

(Reporter: botond, Assigned: gbrown)

References

(Blocks 1 open bug, Regression)

Details

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

Attachments

(1 file)

STR

  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:

    ['install']

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
message.

The details of the failure are as follows:

KeyError: '4.3'

  File "/home/botond/dev/mozilla/android/python/mozbuild/mozbuild/mach_commands.py", 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/android_device.py", 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/android_device.py", 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 gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/00ae852085e4
Avoid KeyError in android arm 'mach install' r=jmaher
Status: NEW → RESOLVED
Closed: 6 months 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.