Closed
Bug 927762
Opened 12 years ago
Closed 12 years ago
Mutt test failure "List of add-ons has been correctly transferred." in tests/python/test_addons.py
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: andrei, Assigned: whimboo)
References
Details
(Keywords: regression, Whiteboard: [mozmill-2.0.1])
Attachments
(1 file, 4 obsolete files)
|
2.01 KB,
patch
|
davehunt
:
review+
andrei
:
feedback+
|
Details | Diff | Splinter Review |
Mutt python test: tests/python/test_addons.py fails with "List of add-ons has been correctly transferred."
At a quick glance looks like a problem with the persisted object.
(I would not be surprised if this is related to failing to encode and serialise as JSON some characters before saving them into the persisted object)
| Assignee | ||
Comment 1•12 years ago
|
||
We need more information here! Please show us what you see in the command line.
Flags: needinfo?(andrei.eftimie)
| Reporter | ||
Comment 2•12 years ago
|
||
Flags: needinfo?(andrei.eftimie)
| Reporter | ||
Comment 3•12 years ago
|
||
My initial assumption appears to be wrong.
There seems to be a genuine difference between persisted['addons'] and results.appinfo['addons']
Attached are both JSON encoded addons lists.
They are taken just before the assertion that fails here:
https://github.com/mozilla/mozmill/blob/master/mutt/mutt/tests/python/test_addons.py#L47
| Reporter | ||
Comment 4•12 years ago
|
||
Erm I mistyped, there's no JSON there, they are python objects.
| Reporter | ||
Comment 5•12 years ago
|
||
2 Addons have differences: Quicktime and Java
Both of them have exactly the same difference,
results.appinfo['addons'] has the following extra information:
> u'foreignInstall': True,
> u'isPlatformCompatible': True,
> u'isCompatible': True,
> u'optionsType': 4,
> u'optionsURL': u'chrome://mozapps/content/extensions/pluginPrefs.xul',
> u'providesUpdatesSecurely': True,
> u'updateDate': u'2012-06-22T23:04:50.000Z',
I don't know where this comes from.
| Assignee | ||
Comment 6•12 years ago
|
||
Please dump those objects correctly to the console so we get JSON output. Then please reformat at http://jsonviewer.stack.hu. Thanks.
| Reporter | ||
Comment 7•12 years ago
|
||
Attachment #818309 -
Attachment is obsolete: true
| Reporter | ||
Comment 8•12 years ago
|
||
I can't link http://jsonviewer.stack.hu/ directly to these attachments as it doesn't work over https and bugzilla doesn't serve attachments over plain http :(
Attachment #818312 -
Attachment is obsolete: true
| Assignee | ||
Comment 9•12 years ago
|
||
So you are saying that on the Python side there is more information available as on the JS side? Where have you added those dumps? This is somewhat impossible.
Does this only happen on OS X for you? Also which version of Firefox? Nothing of that has been mentioned yet.
| Assignee | ||
Comment 10•12 years ago
|
||
Ok, I can reproduce this bug. Looks like it is a regression from my fix on bug 918255. Strangely it was working at that time.
| Assignee | ||
Comment 11•12 years ago
|
||
Ups. That's really my fault. Not sure how this slipped through. :/ But the file testAddon.js under the python test folder hasn't gotten the same update.
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
| Assignee | ||
Comment 12•12 years ago
|
||
So to not run into the same issue again, the mozmill.js module should export the getAddons() method. That way tests can re-use it and we don't retrieve different information and pass it back to the Python side.
Andrei, that fixes the test for me.
Attachment #818359 -
Attachment is obsolete: true
Attachment #818361 -
Attachment is obsolete: true
Attachment #818631 -
Flags: review?(dave.hunt)
Attachment #818631 -
Flags: feedback?(andrei.eftimie)
| Reporter | ||
Comment 13•12 years ago
|
||
Comment on attachment 818631 [details] [diff] [review]
0001-Bug-927762-Mutt-test-failure-List-of-add-ons-has-bee.patch
Review of attachment 818631 [details] [diff] [review]:
-----------------------------------------------------------------
Works fine for me.
Attachment #818631 -
Flags: feedback?(andrei.eftimie) → feedback+
Updated•12 years ago
|
Attachment #818631 -
Flags: review?(dave.hunt) → review+
| Assignee | ||
Comment 14•12 years ago
|
||
Pushed as:
https://github.com/mozilla/mozmill/commit/9cebaf147e1c2a87d47ddfdbe9d4ea1d93b0a90e (master)
https://github.com/mozilla/mozmill/commit/4872477e75816c90d094d80d3ed3217b2932b4eb (hotfix-2.0)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Priority: P3 → --
Resolution: --- → FIXED
Whiteboard: [mozmill-2.0.1?] → [mozmill-2.0.1]
Updated•10 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•