Closed
Bug 755374
Opened 13 years ago
Closed 13 years ago
move browser_config creation to PerfConfigurator.py
Categories
(Testing :: Talos, defect)
Testing
Talos
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: k0scist, Unassigned)
Details
(Whiteboard: [good first bug][mentor=jhammel][lang=py])
Attachments
(3 files)
|
6.75 KB,
patch
|
Details | Diff | Splinter Review | |
|
4.51 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
|
4.04 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
browser_config has heavy overlap between PerfConfigurator config.
Ideally, one would just use PerfConfigurator config and deprecated
browser_config entirely. More realistically, the part of
run_tests.run_test that generates browser_config should be made a
method on PerfConfigurator and passing the PerfConfigurator object, vs
just its config dictionary, to run_tests.run_tests
| Reporter | ||
Updated•13 years ago
|
Whiteboard: [good first bug][mentor=jhammel][lang=py]
| Reporter | ||
Comment 1•13 years ago
|
||
I've taken maximus's work from http://pastebin.mozilla.org/1642233 and made a diff out of it, also passing PerfConfigurator instance to the run_tests function. This is pretty rough, but mostly a good first pass. It should be tested and confirmed to work. In addition, there's a lot of streamlining that could happen here. PerfConfigurator already has explicit knowledge of what variables its going to have and we replicate a bunch of these in a silly way
Attachment #650242 -
Flags: review?(jhammel)
| Reporter | ||
Comment 3•13 years ago
|
||
Comment on attachment 650242 [details] [diff] [review]
any changes required ?
+ def browser_config(self,config,title):
Since you're in the PerfConfigurator class you already have the config and don't need to pass it. Its just self.config
We also don't need title. We can move the line that gets it from run_tests.py to PerfConfigurator and have run_tests.py get it from browser_config (or just repeat the lines)
You also have two sections to patch run_tests.py. I'm not sure how or why you did it, but it would be nice to have a single diff of the file.
Other than that, the basic idea is right :) Thanks for the patch!
Nits:
Not important, but things I'd like:
+def run_tests(parser):
I'd rather this variable be called 'configurator' for consistency, but not a big deal
Attachment #650242 -
Flags: review?(jhammel) → review+
Attachment #650591 -
Flags: review?(jhammel)
| Reporter | ||
Comment 5•13 years ago
|
||
Comment on attachment 650591 [details] [diff] [review]
required changes made
This looks great! Thanks for the patch!
Attachment #650591 -
Flags: review?(jhammel) → review+
| Reporter | ||
Comment 7•13 years ago
|
||
pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=1f5da62f9c95
i'm looking to get involved with the mozilla community. anyone willing to help me get started on this bug, if not already assigned?
| Reporter | ||
Comment 9•13 years ago
|
||
looks green! pushed: http://hg.mozilla.org/build/talos/rev/130ecfc6caeb
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 10•13 years ago
|
||
(In reply to sam from comment #8)
> i'm looking to get involved with the mozilla community. anyone willing to
> help me get started on this bug, if not already assigned?
Sorry, this one's taken :)
You need to log in
before you can comment on or make changes to this bug.
Description
•