Closed Bug 1353483 Opened 7 years ago Closed 7 years ago

Unable to install mozregression builds on Fennec (ERROR: Unable to install)

Categories

(Testing :: mozregression, defect)

Version 3
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: miketaylr, Assigned: wlach)

References

Details

I'm using a rooted Samsung Galaxy S6, with Android 7.0, and mozregression 2.3.10.

(note, it failed before it was rooted too...):



> mozregression -d --app=fennec --repo=mozilla-central --good=2016-11-14 --bad=2017-03-28
**********
You should use a config file. Please use the --write-config command line flag to help you create one.
**********

 0:01.15 DEBUG: ADBHost: {'_logger': <mozlog.structuredlog.StructuredLogger object at 0x1037ab950>, '_adb_host': None, '_adb_port': None, '_timeout': 300, '_polling_interval': 0.1, '_adb_path': 'adb', '_verbose': False}
 0:03.31 INFO: Testing good and bad builds to ensure that they are really good and bad...
 0:03.31 INFO: Downloading build from: https://archive.mozilla.org/pub/mobile/nightly/2016/11/2016-11-14-04-34-54-mozilla-central-android-api-15/fennec-53.0a1.multi.android-arm.apk
===== Downloaded 100% =====
 0:04.93 INFO: Running mozilla-central build for 2016-11-14
 0:05.01 INFO: application_buildid: 20161114043454
 0:05.01 INFO: application_changeset: a516c754042c438a5c1499171ca525a980ecb911
 0:05.01 INFO: application_name: Fennec
 0:05.01 INFO: application_repository: https://hg.mozilla.org/mozilla-central
 0:05.01 INFO: application_version: 53.0a1
 0:05.01 INFO: package_name: org.mozilla.fennec
 0:05.01 DEBUG: ADBAndroid: {'_logger': <mozlog.structuredlog.StructuredLogger object at 0x10485f190>, '_adb_host': None, '_adb_port': None, '_timeout': 300, '_polling_interval': 0.1, '_adb_path': 'adb', '_verbose': False}
 0:05.04 DEBUG: ADBHost: {'_logger': <mozlog.structuredlog.StructuredLogger object at 0x10485f290>, '_adb_host': None, '_adb_port': None, '_timeout': 300, '_polling_interval': 0.1, '_adb_path': 'adb', '_verbose': False}
 0:06.22 DEBUG: Check for su failed
 0:07.17 DEBUG: ADBDevice: {'_mkdir_p': None, '_ls': '/system/bin/ls -1A', '_device_serial': '031603c279423f01', '_logger': <mozlog.structuredlog.StructuredLogger object at 0x10485f190>, '_test_root': None, '_adb_host': None, '_have_root_shell': False, '_have_android_su': True, '_have_su': False, '_initial_test_root': '', '_adb_port': None, '_device_ready_retry_attempts': 3, '_timeout': 300, '_polling_interval': 0.1, '_have_cp': True, '_adb_path': 'adb', '_device_ready_retry_wait': 20, '_verbose': False}
 0:22.81 ERROR: Unable to install '/var/folders/tq/hvl_vz_j2vj0njflm8t89ylh0000gn/T/tmpJGuWEv/2016-11-14--mozilla-central--fennec-53.0a1.multi.android-arm.apk'
 0:22.81 ERROR: Unable to install '/var/folders/tq/hvl_vz_j2vj0njflm8t89ylh0000gn/T/tmpJGuWEv/2016-11-14--mozilla-central--fennec-53.0a1.multi.android-arm.apk'
 0:22.82 INFO: Last good revision: a516c754042c438a5c1499171ca525a980ecb911 (2016-11-14)
 0:22.82 INFO: First bad revision: 0e0eb96528a1d032fe6ed54f67d32290d533fbfd (2017-03-28)
 0:22.82 INFO: Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a516c754042c438a5c1499171ca525a980ecb911&tochange=0e0eb96528a1d032fe6ed54f67d32290d533fbfd

 0:22.82 INFO: To resume, run:
 0:22.82 INFO: /usr/local/bin/mozregression -d --app=fennec --repo=mozilla-central --good=2016-11-14 --bad=2017-03-28
...with 'adb install ...'; I didn't try mozregression.
We're using a pretty old version of mozdevice, possibly without fixes for Android 7.0 because (at least at some point) later versions required a rooted device.

https://github.com/mozilla/mozregression/blob/master/setup.py#L46

:bc, was this ever fixed?
Flags: needinfo?(bob)
This was fixed in mozilla-central and uplifted, but I don't think a new version of mozdevice was released.
Flags: needinfo?(bob)
It looks like 0.49 (which is released) has the fix I was thinking about (bug 1245347).

Mike, could you try pip installing mozdevice==0.49 and see if it improves your experience? If so, I can just go ahead and bump the version required by mozregression.
Flags: needinfo?(miket)
That might not help. I was thinking of the recent fix to devicemanagerADB but that hasn't landed in adb.py yet.
(I assume you meant mozdevice==0.48? pip doesn't seem to know about 0.49...).

Still fails, but debug output is slightly different. 

mozregression -d --app=fennec --repo=mozilla-central --good=2016-11-14 --bad=2017-03-28
**********
You should use a config file. Please use the --write-config command line flag to help you create one.
**********

 0:00.73 DEBUG: ADBHost: {'_logger': <mozlog.structuredlog.StructuredLogger object at 0x10dd1f450>, '_adb_host': None, '_adb_port': None, '_timeout': 300, '_polling_interval': 0.1, '_adb_path': 'adb', '_verbose': False}
 0:04.56 INFO: Testing good and bad builds to ensure that they are really good and bad...
 0:04.57 INFO: Downloading build from: https://archive.mozilla.org/pub/mobile/nightly/2016/11/2016-11-14-04-34-54-mozilla-central-android-api-15/fennec-53.0a1.multi.android-arm.apk
===== Downloaded 100% =====
 0:07.02 INFO: Running mozilla-central build for 2016-11-14
 0:07.04 INFO: application_buildid: 20161114043454
 0:07.04 INFO: application_changeset: a516c754042c438a5c1499171ca525a980ecb911
 0:07.04 INFO: application_name: Fennec
 0:07.04 INFO: application_repository: https://hg.mozilla.org/mozilla-central
 0:07.04 INFO: application_version: 53.0a1
 0:07.04 INFO: package_name: org.mozilla.fennec
 0:07.04 DEBUG: ADBAndroid: {'_logger': <mozlog.structuredlog.StructuredLogger object at 0x10dd9e790>, '_adb_host': None, '_adb_port': None, '_timeout': 300, '_polling_interval': 0.1, '_adb_path': 'adb', '_verbose': False}
 0:07.06 DEBUG: ADBHost: {'_logger': <mozlog.structuredlog.StructuredLogger object at 0x10f351950>, '_adb_host': None, '_adb_port': None, '_timeout': 300, '_polling_interval': 0.1, '_adb_path': 'adb', '_verbose': False}
 0:08.11 INFO: su -c supported
 0:08.52 INFO: su 0 supported
 0:08.84 DEBUG: ADBDevice: {'_mkdir_p': None, '_ls': '/system/bin/ls -1A', '_device_serial': '031603c279423f01', '_logger': <mozlog.structuredlog.StructuredLogger object at 0x10dd9e790>, '_test_root': None, '_adb_host': None, '_have_root_shell': False, '_have_android_su': True, '_have_su': True, '_initial_test_root': '', '_adb_port': None, '_device_ready_retry_attempts': 3, '_timeout': 300, '_polling_interval': 0.1, '_have_cp': True, '_adb_path': 'adb', '_device_ready_retry_wait': 20, '_verbose': False}
 0:08.95 INFO: Setting SELinux Permissive Mode
 0:19.17 ERROR: Unable to install '/var/folders/tq/hvl_vz_j2vj0njflm8t89ylh0000gn/T/tmpo7Wtmk/2016-11-14--mozilla-central--fennec-53.0a1.multi.android-arm.apk'
 0:19.17 ERROR: Unable to install '/var/folders/tq/hvl_vz_j2vj0njflm8t89ylh0000gn/T/tmpo7Wtmk/2016-11-14--mozilla-central--fennec-53.0a1.multi.android-arm.apk'
 0:19.17 INFO: Last good revision: a516c754042c438a5c1499171ca525a980ecb911 (2016-11-14)
 0:19.17 INFO: First bad revision: 0e0eb96528a1d032fe6ed54f67d32290d533fbfd (2017-03-28)
 0:19.17 INFO: Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a516c754042c438a5c1499171ca525a980ecb911&tochange=0e0eb96528a1d032fe6ed54f67d32290d533fbfd

 0:19.17 INFO: To resume, run:
 0:19.17 INFO: /usr/local/bin/mozregression -d --app=fennec --repo=mozilla-central --good=2016-11-14 --bad=2017-03-28
Flags: needinfo?(miket)
Oh wait... 0.49 is on m-c. I just installed it and it works! \o/
Flags: needinfo?(wlachance)
(In reply to Mike Taylor [:miketaylr] from comment #8)
> Oh wait... 0.49 is on m-c. I just installed it and it works! \o/

Oh cool, let's release a new version of mozdevice then and make mozregression depend on it.
Depends on: 1353527
Flags: needinfo?(wlachance)
Assignee: nobody → wlachance
The latest versions of mozdevice (0.50) and mozregression (2.3.11) should work for this case.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.