Closed
Bug 698769
Opened 13 years ago
Closed 10 years ago
mutt should be brought up to the reality that the MozMill class is now used via the API
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: k0scist, Assigned: sambuddhabasu1, Mentored)
References
()
Details
(Whiteboard: [lang=python][good first bug][mozmill-2.1])
Attachments
(1 file)
2.16 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
Currently the mutt js results are gathered by screen-scraping stdout: https://github.com/mozautomation/mozmill/blob/master/mutt/mutt/mutt.py#L241 Instead, the JSON handler or other output handler should be used with a mozmill.Results object and the test results accumulated precisely. With the way things are done, if the output is messed up, we have no way of knowing when we fail so the tests look like they pass when they in fact don't. For instance, we ignore skips which could even be browser crashes.
Reporter | ||
Updated•13 years ago
|
Whiteboard: [good first bug]
Reporter | ||
Updated•13 years ago
|
Whiteboard: [good first bug] → [good first bug][mentor=jhammel]
Updated•12 years ago
|
Whiteboard: [good first bug][mentor=jhammel] → [good first bug][mentor=jhammel][lang=py]
Comment 1•12 years ago
|
||
I believe that this is the updated link from the description: https://github.com/mozilla/mozmill/blob/8cbe87ef4f013db9c1807dba55fc35edf0c61dfd/mutt/mutt/mutt.py#L192 We recently landed MozTest which contains a results class. We should use this new results class instead of the mozmill one. This means that a fix for this bug might also involve patches to https://github.com/mozilla/mozbase/tree/master/moztest along the way.
Comment 3•12 years ago
|
||
Thanks for the last patch, here you go! Once again, let us know if you need help either here or on #ateam.
Assignee: nobody → jdev005
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•12 years ago
|
||
So I'm not sure if this is still a good first bug. mutt has changed a lot since this was filed. It now runs mozmill JS tests via API vs subshelling: https://github.com/mozilla/mozmill/blob/8cbe87ef4f013db9c1807dba55fc35edf0c61dfd/mutt/mutt/mutt.py#L182 The JSResults class isn't used at all and should be removed: https://github.com/mozilla/mozmill/blob/8cbe87ef4f013db9c1807dba55fc35edf0c61dfd/mutt/mutt/mutt.py#L182/jsresult Probably quite a few other things in this file need to catch up to reality here. But the biggest barrier is that the mutt tests seem horribly and utterly broken, which needs to be fixed. I don't know how or why we continue to get in this state. Someone needs to look at them and fix them. I get the tests getting into an infinite loop with 100% CPU usage I also get (mozmill)│mutt -b `which firefox` Running python tests Usage: mozmill [options] Its my opinion that probably all these things should be fixed. mozmill: error: Options -t/--test and -m/--manifest are mutually exclusive. .
Summary: mutt should use the results class for js tests → mutt should be brought up to the reality that the MozMill class is now used via the API
Reporter | ||
Comment 5•12 years ago
|
||
I get this in an infinite loop: ERROR | ERROR | Traceback (most recent call last): ERROR | Traceback (most recent call last): ERROR | ERROR | Traceback (most recent call last): ERROR | ERROR | ERROR | Traceback (most recent call last): ERROR | ERROR | ERROR | ERROR | Traceback (most recent call last): ERROR | ERROR | ERROR | ERROR | ERROR | Traceback (most recent call last): ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | Traceback (most recent call last): ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | Traceback (most recent call last): ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | Traceback (most recent call last): ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | Traceback (most recent call last): ERROR | Traceback (most recent call last): ERROR | Traceback (most recent call last): ERROR | ERROR | Traceback (most recent call last): ERROR | Traceback (most recent call last): ERROR | Traceback (most recent call last): ERROR | ERROR | Traceback (most recent call last):
Comment 6•12 years ago
|
||
Jeff, the infinite loop is bug 761564.
Reporter | ||
Updated•12 years ago
|
Whiteboard: [good first bug][mentor=jhammel][lang=py]
Comment 7•12 years ago
|
||
So the infinite loop has been fixed by my patch on bug 792412. The other patch on bug 761564 would change a bit how Mozmill would have to be used but shouldn't longer block this bug. jdev005, would you still be interested in continuing on that bug? Jeff, I assume you would be up for mentoring on this bug? :)
Depends on: 792412
Whiteboard: [mentor=jhammel][lang=py]
Reporter | ||
Comment 8•12 years ago
|
||
> Jeff, I assume you would be up for mentoring on this bug? :)
sure
Updated•12 years ago
|
Status: ASSIGNED → NEW
Updated•11 years ago
|
Assignee: jdev005 → nobody
Henrik, I think that this kind of work is going on in other areas, so I am removing the mentorship flags on this bug. If this is indeed a good mentored bug, then we need a good description of what is required and an updated mentor for it.
Flags: needinfo?(hskupin)
Whiteboard: [mentor=jhammel][lang=py]
Comment 10•11 years ago
|
||
We never call the `aquire()` method which gets the information from the console but directly make use of the results object return by Mozmill after the tests have been finished: https://github.com/mozilla/mozmill/blob/master/mutt/mutt/mutt.py#L211 https://github.com/mozilla/mozmill/blob/master/mutt/mutt/mutt.py#L189 So it should be safe to completely remove the JSResults class. There is no need for it anymore, now with the logger implemented correctly.
Flags: needinfo?(hskupin)
Whiteboard: [mentor=whimboo][lang=python]
Updated•10 years ago
|
Whiteboard: [mentor=whimboo][lang=python] → [mentor=whimboo][lang=python][good first bug]
Updated•10 years ago
|
Mentor: hskupin
Whiteboard: [mentor=whimboo][lang=python][good first bug] → [lang=python][good first bug]
Assignee | ||
Comment 11•10 years ago
|
||
I am interested in solving this bug. Can someone assign it to me?
Comment 12•10 years ago
|
||
Hi Sambuddha, I've assigned this bug to you. Henrik will mentor you for this issue, but he is away for a couple more days. Until he returns I might be able to help you get started. As linked in this bug, here is documentation on starting with mozmill: https://wiki.mozilla.org/Auto-tools/Projects/Mozmill/RepoSetup
Assignee: nobody → sammygamer
Status: NEW → ASSIGNED
Assignee | ||
Comment 13•10 years ago
|
||
Attachment #8467196 -
Flags: review?(hskupin)
Comment 14•10 years ago
|
||
Comment on attachment 8467196 [details] [diff] [review] mutt has been brought up to the reality that the MozMill class is now used via the API Review of attachment 8467196 [details] [diff] [review]: ----------------------------------------------------------------- The patch looks fine. Thank you Sambuddha! There is one thing you might want to obey in the future. Please export the patch via 'git format-patch' as instructed here: https://wiki.mozilla.org/Auto-tools/Projects/Mozmill/RepoSetup#Ready_for_a_review. I will fix that this time after applying it.
Attachment #8467196 -
Flags: review?(hskupin) → review+
Comment 15•10 years ago
|
||
Landed on master for 2.1: https://github.com/mozilla/mozmill/commit/d0df8ed7cb4737aad2482ce930cad6faa4bed05e
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [lang=python][good first bug] → [lang=python][good first bug][mozmill-2.1]
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•