Closed Bug 668063 Opened 13 years ago Closed 12 years ago

Allow testruns to specify a list of tags

Categories

(Mozilla QA Graveyard :: Mozmill Automation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davehunt, Assigned: davehunt)

References

Details

Attachments

(1 file, 2 obsolete files)

For endurance tests we are going to need to filter results run from a specific machine so as to limit the variables when running tests with multiple Firefox builds. I suggest adding a --tags command line option to specify one of more tags. We should then be able to use these to filter results in the dashboard.
Blocks: 668064
A Pivotal Tracker story has been created for this Bug: https://www.pivotaltracker.com/story/show/15491557
Assignee: nobody → dave.hunt
Status: NEW → ASSIGNED
Attachment #589890 - Flags: review?(hskupin)
Comment on attachment 589890 [details] [diff] [review]
Allow testruns to specify a list of tags. v1.0

Looks good. One thing which we better should do is to not use a comma separated list for the command line. Add-ons are getting specified with separate options so we should probably do the same here for tags. Otherwise we have an inconsistency. Sorry that I missed that yesterday in the call.
Attachment #589890 - Flags: review?(hskupin) → review-
Changed to match behavior of addons. Now each time the --tag command line argument is used, the tag is appended to a list, which is attached to the report.
Attachment #589890 - Attachment is obsolete: true
Attachment #590682 - Flags: review?(hskupin)
Comment on attachment 590682 [details] [diff] [review]
Allow testruns to specify a list of tags. v1.1

>+                      ("--tag",): dict(dest="tags",
>+                                        action="append",
>+                                        default=[ ],

This has to default to None. Same as for addons in the mozrunner.__init.py__ file.

>+        report['tags'] = self.options.tags

We should only add the property if tags have been specified.
Attachment #590682 - Flags: review?(hskupin) → review-
As discussed on IRC changing default to None is not needed. Added if statement to only add tags section to report if there's at least one tag.
Attachment #590682 - Attachment is obsolete: true
Attachment #590691 - Flags: review?(hskupin)
Comment on attachment 590691 [details] [diff] [review]
Allow testruns to specify a list of tags. v1.2

>+                      ("--tag",): dict(dest="tags",
>+                                        action="append",
>+                                        default=[ ],
>+                                        metavar="TAG",
>+                                        help="Tag to apply to the report")

Can you please fix the indentation before the check-in?

Otherwise looks good. r=me.
Attachment #590691 - Flags: review?(hskupin) → review+
So this is fixed now. Lets close it out. Thanks Dave!
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: