Closed
Bug 690874
Opened 15 years ago
Closed 15 years ago
Remote configurator should fail in a clearer way when we can't copy the application.ini file from the device
Categories
(Testing :: Talos, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: wlach, Assigned: wlach)
Details
Attachments
(1 file, 1 obsolete file)
As the title says. If we're using on a device where the "adb shell" does not give root by default, and we're using adb to to do remote configuration, we currently error out with the unhelpful error message:
Unable to connect to remote device 'XXXX'
(which isn't even true, we can connect to it, we just can't get a file off of it)
To make matters worse, if you have a remoteapp.ini file in your talos directory, this step is entirely skipped so you can have the impression that the device *should* be working even if it isn't (this is what happened to me when I switched from my laptop to a desktop system I'm using for eideticker stuff)
I'm going to attach a patch which attempts to fix this issue (along with some related cleanups).
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → wlachance
| Assignee | ||
Comment 1•15 years ago
|
||
This patch does the following:
* If we can't get the contents of the application.ini file from the device, print an error like this and exit:
remotePerfConfigurator.py: ERROR: Unable to copy master ini file from device - either it doesn't exist yet (have you run fennec at least once?) or you don't have permissions to get it (workaround: extract it from apk locally)
* Handle errors when interacting with device as configuration errors, not device errors. For example, if you specify your device as something that does not exist (and you're in sutagent mode), you'll now get an error like this:
unable to connect socket
remotePerfConfigurator.py: ERROR: Unable to connect to remote device '192.168.1.3'
* Replace 'pc.Configuration' with 'Configuration' exceptions (we're already using the namespace elsewhere in the file for exceptions, might as well be consistent)
* Consolidate the try/catch logic when setting up the remote configuration. We can do this now that the only expected exceptions are Configuration objects.
* Don't search for a regular expression inside '_getCurrentBuildId' if we didn't succeed in reading the contents of the file or they are blank (a bit of extra error checking)
Attachment #563806 -
Flags: review?(jmaher)
Comment 2•15 years ago
|
||
Comment on attachment 563806 [details] [diff] [review]
Give sensible error when can't grab application.ini from device (plus a few bonus cleanups)
Review of attachment 563806 [details] [diff] [review]:
-----------------------------------------------------------------
::: remotePerfConfigurator.py
@@ +219,1 @@
> return 2
you have two spaces here between sys.sderr and progname
Attachment #563806 -
Flags: review?(jmaher) → review+
| Assignee | ||
Comment 3•15 years ago
|
||
Fix up the nit.
Attachment #563806 -
Attachment is obsolete: true
Attachment #563810 -
Flags: review+
| Assignee | ||
Comment 4•15 years ago
|
||
Can you land this for me? I'll try to get level 2 committer privileges next week.
Comment 5•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•