Closed Bug 1011668 Opened 11 years ago Closed 11 years ago

TypeError: not enough arguments for format string error trying to wrap a low-level crash (Crash Reporter)

Categories

(Testing :: Marionette Client and Harness, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED
mozilla32

People

(Reporter: stephend, Assigned: varun.tinkle)

References

()

Details

(Keywords: pi-marionette-client, Whiteboard: [good first bug][lang=py][mentor=automatedtester])

Attachments

(1 file)

Our automation Flame hit https://crash-stats.mozilla.com/report/index/64512080-78d8-4769-975d-0857f2140516 (bug 1010292), which triggered the modal Crash Reporter dialog. Looks like Marionette didn't capture/wrap it properly, resulting in: (log snip) ... 11:28:35 File "/var/jenkins/workspace/b2g.flame.mozilla-central.adhoc.test_settings_wifi/.env/local/lib/python2.7/site-packages/marionette_transport-0.1-py2.7.egg/marionette_transport/transport.py", line 94, in send 11:28:35 raise IOError("%s: %s" % (str(e)), self.connection_lost_msg) 11:28:35 TypeError: not enough arguments for format string http://selenium.qa.mtv2.mozilla.com:8080/view/B2G%20Flame/job/b2g.flame.mozilla-central.adhoc.test_settings_wifi/26/console
We need to fix http://dxr.mozilla.org/mozilla-central/source/testing/marionette/transport/marionette_transport/transport.py#96 Looks like brackets are not done properly only passing in one argument.
Whiteboard: [good first bug][lang=py][mentor=automatedtester]
Can i work on it?
This is the correct code. Please tell me what steps to follow to get it integrated in the main repository. raise IOError("%s: %s" % (str(e), self.connection_lost_msg) )
Attached patch bug1011668.diffSplinter Review
Attachment #8426341 - Flags: review?(dburns)
Attachment #8426341 - Flags: review?(dburns) → review+
Flags: needinfo?(dburns)
Since Varun's provided a patch, I'm assigning to Varun.
Assignee: nobody → varun.tinkle
Landed in https://hg.mozilla.org/integration/mozilla-inbound/rev/f797fb250394 Varun, Thanks for the patch! The next step is that it will run through the Mozilla build and test infrastructure. If all is good it will be merged to Mozilla-Central and the bug will be closed. If you are wanting to try another bug, we have a few in https://bugzilla.mozilla.org/buglist.cgi?cmdtype=runnamed&namedcmd=marionette-gfb&list_id=10277951 and I will be adding more soon! Thanks again!
Flags: needinfo?(dburns)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Blocks: 1009316
Thx, I haven't seen this since; verified with: sdonner-10779:B2G-flash-tool sdonner$ ./check_versions.sh Gaia 0f9f11d0a6dadb3ea27160204bbe911c1ad69a6f Gecko https://hg.mozilla.org/mozilla-central/rev/196d05832e12 BuildID 20140709040203 Version 33.0a1 ro.build.version.incremental=109 ro.build.date=Mon Jun 16 16:51:29 CST 2014
Status: RESOLVED → VERIFIED
Product: Testing → Remote Protocol

Moving bugs for Marionette client due to component changes.

Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: