Closed
Bug 800623
Opened 12 years ago
Closed 12 years ago
mozharness should invoke talos directly without going through PerfConfigurator
Categories
(Release Engineering :: Applications: MozharnessCore, defect, P3)
Release Engineering
Applications: MozharnessCore
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: k0scist, Unassigned)
Details
(Whiteboard: [mozharness])
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
mozilla
:
review+
|
Details | Diff | Splinter Review |
With the landing of bug 754073, there is no reason to invoke
PerfConfigurator separately from talos (unless e.g. you're mucking
with the generated config file or what not). We should switch
mozharness to invoke talos directly instead of the intermediary step.
Using the '-v' flag will still output the config to stdout, which is
probably all we really care about.
Reporter | ||
Updated•12 years ago
|
Whiteboard: [mozharness]
Updated•12 years ago
|
Priority: -- → P3
Reporter | ||
Comment 1•12 years ago
|
||
Attachment #685398 -
Flags: review?(aki)
Comment 2•12 years ago
|
||
Comment on attachment 685398 [details] [diff] [review]
remove extraneous call to PerfConfigurator
Pylint says:
mozharness/mozilla/testing/talos.py:286: [E, Talos.talos_options] method already defined line 55
self.talos_options appears to be a list of commandline options:
http://hg.mozilla.org/build/mozharness/file/ad1d9c2a0968/mozharness/mozilla/testing/talos.py#l55
We seem to have a query_talos_options() that should now be named query_talos_extra_options():
http://hg.mozilla.org/build/mozharness/file/ad1d9c2a0968/mozharness/mozilla/testing/talos.py#l237
or maybe we should munge it all into one single query_talos_options() method (or rename the self.talos_options list to something else and munge it all into self.talos_options()).
I think the above needs resolving. Did this work as is?
Attachment #685398 -
Flags: review?(aki) → review-
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Aki Sasaki [:aki] from comment #2)
> Comment on attachment 685398 [details] [diff] [review]
> remove extraneous call to PerfConfigurator
>
> Pylint says:
>
> mozharness/mozilla/testing/talos.py:286: [E, Talos.talos_options] method
> already defined line 55
>
> self.talos_options appears to be a list of commandline options:
> http://hg.mozilla.org/build/mozharness/file/ad1d9c2a0968/mozharness/mozilla/
> testing/talos.py#l55
>
> We seem to have a query_talos_options() that should now be named
> query_talos_extra_options():
> http://hg.mozilla.org/build/mozharness/file/ad1d9c2a0968/mozharness/mozilla/
> testing/talos.py#l237
>
> or maybe we should munge it all into one single query_talos_options() method
> (or rename the self.talos_options list to something else and munge it all
> into self.talos_options()).
>
> I think the above needs resolving. Did this work as is?
Ah, good catch. It does work as is, evidently because the class-level talos_options is only used one place, to add to config_options at http://hg.mozilla.org/build/mozharness/file/809c4cc296e8/mozharness/mozilla/testing/talos.py#l107
I don't have any strong opinions about the naming of things, except `PerfConfigurator_options` is no longer accurate so shouldn't be used. I would propose
talos_options -> talos_config_options
PerfConfigurator_options -> talos_options
query_talos_options -> query_talos_options (unchanged, though I'm also fine with query_talos_extra_options or query_extra_talos_options)
I can't think of a good way to deliminate these things such that it is obvious what apply to the mozharness script and what apply to the wrapped script (i.e. talos). Any opinions?
Comment 4•12 years ago
|
||
I don't have strong opinions here; that sounds good.
One thing that might help is moving self.talos_options (now talos_config_options, or talos_optparse_options, or talos_commandline_options or w/e) to above the class.
If something wants to import that without the class, they can; if we want to use it to specify our optparse options, we can; I'm not sure we need to keep it around as part of the class.
By the sound of comment 3 it seems like you'll figure something out that I'll be ok with, now that you're aware of the conflict :)
Reporter | ||
Comment 5•12 years ago
|
||
I found a few other nits that I cleaned up on a second pass
Attachment #685398 -
Attachment is obsolete: true
Attachment #685858 -
Flags: review?(aki)
Comment 6•12 years ago
|
||
Comment on attachment 685858 [details] [diff] [review]
round II
Lgtm.
We should be able to catch issues on Cedar, if any.
Attachment #685858 -
Flags: review?(aki) → review+
Reporter | ||
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•10 years ago
|
Component: General Automation → Mozharness
You need to log in
before you can comment on or make changes to this bug.
Description
•