Closed
Bug 895841
Opened 12 years ago
Closed 12 years ago
Enhance mutt so we can run mutt tests under Firefox Metro with --app=metrofirefox
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: andrei, Assigned: karan.basi)
References
Details
(Whiteboard: [mentor=andrei_eftimie][lang=py][good first bug][mozmill-2.0.1])
Attachments
(1 file, 4 obsolete files)
1.24 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
Similar to mozmill, we need to be able to run mutt tests under Metro mode.
For implementation look at how it is done in mozmill
Example call:
> mutt testjs %binary_path% --app=metrofirefox
// this call should run all js mutt tests under Firefox Metro.
Updated•12 years ago
|
Whiteboard: [mentor=whimboo][lang=py][good first bug]
Comment 1•12 years ago
|
||
Hello I am a newbie can i work this bug
Comment 2•12 years ago
|
||
Hey Praveenkumar, that would be great! I'll assign the bug to you. Fee free to ask questions on the bug or on IRC (#automation on irc.mozilla.org)
Andrei: Would you mind being a mentor for this while Henrik and I are on PTO?
Assignee: nobody → spkr322
Whiteboard: [mentor=whimboo][lang=py][good first bug] → [mentor=andreie][lang=py][good first bug]
Reporter | ||
Comment 3•12 years ago
|
||
Sure Dave.
Praveen, you can tag me on IRC for more information.
You will need a Windows 8 installation.
Download latest Nightly and set as default.
You'll know it worked when you can open it from the Windows 8 Metro (Touch) interface and Firefox will show you the custom Metro UI.
Get mozmill-env from http://mozqa.com/mozmill-env
You will use this to set up the python env under windows. Extract and use the executable as your command line tool.
Get mozmill from http://github.com/mozilla/mozmill
You will need Git to clone the repository.
CD into the mozmill folder, and run
> ./setup_development.py
This will install all dependencies for mozmill
If you now run
> mozmill --v
It should output the version 2.0rc4
Once you have the environment set up try to run a some tests under Metro.
> mozmill -m mutt/mutt/tests/js/testMetro/manifet.ini -b %path/to/firefox.exe% --app=metrofirefox
Once this works you need to enable the --app argument to mutt and make sure metrofirefox as a value will open the Metro UI.
You should be able to make the exact call as above but with mutt
> mutt -m mutt/mutt/tests/js/testMetro/manifet.ini -b %path/to/firefox.exe% --app=metrofirefox
Whiteboard: [mentor=andreie][lang=py][good first bug] → [mentor=andreieftimie][lang=py][good first bug]
Reporter | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•12 years ago
|
||
Hey,
I was wondering if it would be okay to take this bug if it hasn't been worked on in a while.
Thanks,
Comment 5•12 years ago
|
||
Karan, lets try if we can get a reply from Praveenkumar by tomorrow. If we don't get that feel free to work on this bug. Just let us know and someone from us can assign the bug to you then.
Flags: needinfo?(spkr322)
Reporter | ||
Comment 6•12 years ago
|
||
We haven't heard from Praveenkumar in more than 3 weeks, I thinks we can safely assume he doesn't have time at the moment.
I am assigning it to you Karan.
Look over comment 3 for more information.
You can find me on IRC in #automation
Flags: needinfo?(spkr322)
Whiteboard: [mentor=andreieftimie][lang=py][good first bug] → [mentor=andrei_eftimie][lang=py][good first bug]
Assignee | ||
Comment 7•12 years ago
|
||
Alright, sounds great.
Reporter | ||
Comment 8•12 years ago
|
||
Hi Karan, sorry you missed me on IRC.
I am usually online between 10:00 and 19:00 GMT+2.
Here is my response to your questions on IRC:
Mozmill seems to just call Mozrunner with the app argument (default Firefox):
https://github.com/mozilla/mozmill/blob/master/mozmill/mozmill/__init__.py#L106
The first step is to make Mutt accept the "-app" argument, I think they are registered here:
https://github.com/mozilla/mozmill/blob/master/mutt/mutt/mutt.py#L29
Then we'll need to make sure that Mutt will pass that desired --app argument value on to Mozrunner (not sure, but I think this will need to be done through Mozmill)
Assignee | ||
Comment 9•12 years ago
|
||
Well I'm able to make the call mutt
-m mutt/mutt/tests/js/testMetro/manifet.ini -b %path/to/firefox.exe% --app=metrofirefox
and have it open up metro firefox and run its test and pass.
I still have some implementation questions so I'll try to catch you the next time you're on IRC.
Cheers,
Reporter | ||
Comment 10•12 years ago
|
||
Sounds great Karan,
Feel free to upload a patch and ask for feedback if you have general questions.
Reporter | ||
Updated•12 years ago
|
Assignee: spkr322 → karan.basi
Reporter | ||
Comment 11•12 years ago
|
||
Karan, any update on this?
From our irc conversation I remember you had a functioning patch, it just needed uploading in bugzilla.
Flags: needinfo?(karan.basi)
Assignee | ||
Comment 12•12 years ago
|
||
Hey,
Sorry, my schedule has been hectic for the past few weeks. Can you tell me the steps to create a patch with git?
I'll submit the patch as soon as I get to my PC.
Flags: needinfo?(karan.basi)
Reporter | ||
Comment 13•12 years ago
|
||
Thanks Karan,
If you have a commit in git with your changes, make a patch with (this will make a patch from the last commit):
> git format-patch HEAD^
You can check the what the patch will contain with `git show`
Make sure to rebase onto master before so you'll have all code up-to-date
Assignee | ||
Comment 14•12 years ago
|
||
Finally got around to creating a patch. Sorry for the wait!
Assignee | ||
Updated•12 years ago
|
Attachment #809827 -
Flags: review?(andrei.eftimie)
Reporter | ||
Comment 15•12 years ago
|
||
Comment on attachment 809827 [details] [diff] [review]
Patch for Bug 895841
Review of attachment 809827 [details] [diff] [review]:
-----------------------------------------------------------------
Hi Karan,
2 small things to fix:
1) add the reviewer at the end of the commit message: "r=aeftimie"
2) there are some extra whitespaces as outlined below
Other than that, this appears to work great.
Thanks
(to make the git workflow easy, you can amend the last commit, so just do the changes and then issue `git commit --amend -m "Bug 895841 - added --app option to mutt. a=aeftimie"`)
::: mutt/mutt/mutt.py
@@ +190,4 @@
> # Create logger for console
> level = "DEBUG" if options.verbose else "INFO"
> logger = LoggerListener(console_level=level)
> +
nit: remove extra whitespace
@@ +196,1 @@
> try:
nit: whitespace
Attachment #809827 -
Flags: review?(andrei.eftimie) → review-
Assignee | ||
Comment 16•12 years ago
|
||
Alright, I removed whitespace and updated the commit message.
Attachment #809827 -
Attachment is obsolete: true
Attachment #813074 -
Flags: review?(andrei.eftimie)
Reporter | ||
Comment 17•12 years ago
|
||
Comment on attachment 813074 [details] [diff] [review]
0001-Bug-895841-added-app-option-to-mutt.-r-aeftimie.patch
Review of attachment 813074 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks Karan,
this works fine!
Just one more thing, sorry I missed it before :(
::: mutt/mutt/mutt.py
@@ +45,5 @@
> dict(dest="restart",
> default=False,
> action="store_true",
> + help="Isolation mode (restart between each Mozmill test)")),
> + (("--app", "--app"),
Could you please change the first item into "-a", that's how all other options are specified, and will allow us to also specify the option in short format "-a metrofirefox"
Attachment #813074 -
Flags: review?(andrei.eftimie) → review-
Assignee | ||
Comment 18•12 years ago
|
||
Good call, made the change.
Attachment #814844 -
Flags: review?(andrei.eftimie)
Assignee | ||
Comment 19•12 years ago
|
||
Messed up the last patch.
Attachment #813074 -
Attachment is obsolete: true
Attachment #814844 -
Attachment is obsolete: true
Attachment #814844 -
Flags: review?(andrei.eftimie)
Assignee | ||
Updated•12 years ago
|
Attachment #814845 -
Flags: review?(andrei.eftimie)
Reporter | ||
Comment 20•12 years ago
|
||
Comment on attachment 814845 [details] [diff] [review]
0001-Bug-895841-added-app-option-to-mutt.-r-aeftimie.patch
Review of attachment 814845 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me, lets defer to Henrik to take a look and land it if ok.
Attachment #814845 -
Flags: review?(hskupin)
Attachment #814845 -
Flags: review?(andrei.eftimie)
Attachment #814845 -
Flags: review+
Comment 21•12 years ago
|
||
Comment on attachment 814845 [details] [diff] [review]
0001-Bug-895841-added-app-option-to-mutt.-r-aeftimie.patch
Review of attachment 814845 [details] [diff] [review]:
-----------------------------------------------------------------
That looks fantastic, Karan! There is only a very small nit, you might want to fix before I get this landed. With it you get my r+. Thanks!
::: mutt/mutt/mutt.py
@@ +48,5 @@
> + help="Isolation mode (restart between each Mozmill test)")),
> + (("-a", "--app"),
> + dict(dest="app",
> + default='firefox',
> + help="Application to use [Default: %default]"))
nit: please use 'default' in lowercase here.
Attachment #814845 -
Flags: review?(hskupin) → review+
Assignee | ||
Comment 22•12 years ago
|
||
Great, here's the requested change.
-Karan
Attachment #814845 -
Attachment is obsolete: true
Attachment #815326 -
Flags: review?(hskupin)
Updated•12 years ago
|
Attachment #815326 -
Flags: review?(hskupin) → review+
Comment 23•12 years ago
|
||
Landed on master as:
https://github.com/mozilla/mozmill/commit/0e84e72d0d8081b39b00ed022b901b096b63850a
Thanks again Karan! If you have interest in more bugs please let us know or check our existing mentored bugs:
http://www.joshmatthews.net/bugsahoy/?automation=1
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [mentor=andrei_eftimie][lang=py][good first bug] → [mentor=andrei_eftimie][lang=py][good first bug][mozmill-2.1]
Comment 24•12 years ago
|
||
Given that we need metro support for mutt already for mozmill 2.0.x I cherry-picked it for hotfix-2.0:
https://github.com/mozilla/mozmill/commit/1b04168a4dce9c1bfcca3c677d759a7cce4a0c05
Whiteboard: [mentor=andrei_eftimie][lang=py][good first bug][mozmill-2.1] → [mentor=andrei_eftimie][lang=py][good first bug][mozmill-2.0.1]
Updated•9 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•