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)

defect
Not set
normal

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)

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)
We need more information here! Please show us what you see in the command line.
Flags: needinfo?(andrei.eftimie)
Attached file persisted.addons.txt (obsolete) —
Flags: needinfo?(andrei.eftimie)
Attached file results.appinfo.addons.txt (obsolete) —
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
Erm I mistyped, there's no JSON there, they are python objects.
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.
Please dump those objects correctly to the console so we get JSON output. Then please reformat at http://jsonviewer.stack.hu. Thanks.
Attached file persisted.addons.txt (obsolete) —
Attachment #818309 - Attachment is obsolete: true
Attached file results.appinfo.addons.txt (obsolete) —
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
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.
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.
Blocks: 918255
Keywords: regression
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: [mozmill-2.0.1?]
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
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)
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+
Attachment #818631 - Flags: review?(dave.hunt) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Priority: P3 → --
Resolution: --- → FIXED
Whiteboard: [mozmill-2.0.1?] → [mozmill-2.0.1]
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: