Example #1
0
    def __init__(self):
        options = [
            make_option("--all", action="store_true", default=False, help="display the expectations for *all* tests"),
            make_option(
                "-x",
                "--exclude-keyword",
                action="append",
                default=[],
                help='limit to tests not matching the given keyword (for example, "skip", "slow", or "crash". May specify multiple times',
            ),
            make_option(
                "-i",
                "--include-keyword",
                action="append",
                default=[],
                help='limit to tests with the given keyword (for example, "skip", "slow", or "crash". May specify multiple times',
            ),
            make_option(
                "--csv",
                action="store_true",
                default=False,
                help="Print a CSV-style report that includes the port name, modifiers, tests, and expectations",
            ),
            make_option(
                "-f",
                "--full",
                action="store_true",
                default=False,
                help="Print a full TestExpectations-style line for every match",
            ),
        ] + port_options(platform="port/platform to use. Use glob-style wildcards for multiple ports (implies --csv)")

        AbstractDeclarativeCommand.__init__(self, options=options)
        self._expectation_models = {}
 def __init__(self):
     options = [
         make_option("--httpd-port", action="store", type="int", default=8127, help="Port to use for the HTTP server"),
         make_option("--no-show-results", action="store_false", default=True, dest="show_results",
                     help="Don't launch a browser with the rebaseline server"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #3
0
 def __init__(self):
     options = [
         steps.Options.cc,
         steps.Options.component,
         make_option(
             "--no-prompt",
             action="store_false",
             dest="prompt",
             default=True,
             help=
             "Do not prompt for bug title and comment; use commit log instead."
         ),
         make_option("--no-review",
                     action="store_false",
                     dest="review",
                     default=True,
                     help="Do not mark the patch for review."),
         make_option(
             "--request-commit",
             action="store_true",
             dest="request_commit",
             default=False,
             help="Mark the patch as needing auto-commit after review."),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #4
0
 def __init__(self):
     options = [
         make_option(
             "--bug-id",
             action="store",
             type="string",
             dest="bug_id",
             help="Specify bug id if no URL is provided in the commit log.",
         ),
         make_option(
             "--comment", action="store", type="string", dest="comment", help="Text to include in bug comment."
         ),
         make_option(
             "--open",
             action="store_true",
             default=False,
             dest="open_bug",
             help="Open bug in default web browser (Mac only).",
         ),
         make_option(
             "--update-only",
             action="store_true",
             default=False,
             dest="update_only",
             help="Add comment to the bug, but do not close it.",
         ),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #5
0
 def __init__(self):
     options = [
         make_option(
             "-b",
             "--bug-id",
             action="store",
             type="string",
             dest="bug_id",
             help="Specify bug id if no URL is provided in the commit log."
         ),
         make_option(
             "--add-log-as-comment",
             action="store_true",
             dest="add_log_as_comment",
             default=False,
             help=
             "Add commit log message as a comment when uploading the patch."
         ),
         make_option(
             "-m",
             "--description",
             action="store",
             type="string",
             dest="description",
             help=
             "Description string for the attachment (default: description from commit message)"
         ),
         steps.Options.obsolete_patches,
         steps.Options.review,
         steps.Options.request_commit,
     ]
     AbstractDeclarativeCommand.__init__(self,
                                         options=options,
                                         requires_local_commits=True)
Example #6
0
 def __init__(self):
     options = [
         make_option(
             "--bug-id",
             action="store",
             type="string",
             dest="bug_id",
             help="Specify bug id if no URL is provided in the commit log."
         ),
         make_option("--comment",
                     action="store",
                     type="string",
                     dest="comment",
                     help="Text to include in bug comment."),
         make_option("--open",
                     action="store_true",
                     default=False,
                     dest="open_bug",
                     help="Open bug in default web browser (Mac only)."),
         make_option("--update-only",
                     action="store_true",
                     default=False,
                     dest="update_only",
                     help="Add comment to the bug, but do not close it."),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #7
0
 def __init__(self):
     options = [
         make_option("--irc-password",
                     default=None,
                     help="Specify IRC password to use."),
     ]
     AbstractDeclarativeCommand.__init__(self, options)
Example #8
0
 def __init__(self):
     options = [
         steps.Options.cc,
         steps.Options.component,
         make_option(
             "--no-prompt",
             action="store_false",
             dest="prompt",
             default=True,
             help="Do not prompt for bug title and comment; use commit log instead.",
         ),
         make_option(
             "--no-review",
             action="store_false",
             dest="review",
             default=True,
             help="Do not mark the patch for review.",
         ),
         make_option(
             "--request-commit",
             action="store_true",
             dest="request_commit",
             default=False,
             help="Mark the patch as needing auto-commit after review.",
         ),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #9
0
 def __init__(self, options=None):
     options = options or []
     options.extend([
         optparse.make_option('--suffixes', default=','.join(BASELINE_SUFFIX_LIST), action='store',
                              help='file types to rebaseline')])
     AbstractDeclarativeCommand.__init__(self, options=options)
     self._baseline_suffix_list = BASELINE_SUFFIX_LIST
Example #10
0
 def __init__(self, options=None):
     options = options or []
     options.extend([
         optparse.make_option('--suffixes', default=','.join(BASELINE_SUFFIX_LIST), action='store',
                              help='file types to rebaseline')])
     AbstractDeclarativeCommand.__init__(self, options=options)
     self._baseline_suffix_list = BASELINE_SUFFIX_LIST
Example #11
0
 def __init__(self):
     options = [
         make_option(
             "-b",
             "--bug-id",
             action="store",
             type="string",
             dest="bug_id",
             help="Specify bug id if no URL is provided in the commit log.",
         ),
         make_option(
             "--add-log-as-comment",
             action="store_true",
             dest="add_log_as_comment",
             default=False,
             help="Add commit log message as a comment when uploading the patch.",
         ),
         make_option(
             "-m",
             "--description",
             action="store",
             type="string",
             dest="description",
             help="Description string for the attachment (default: description from commit message)",
         ),
         steps.Options.obsolete_patches,
         steps.Options.review,
         steps.Options.request_commit,
     ]
     AbstractDeclarativeCommand.__init__(self, options=options, requires_local_commits=True)
Example #12
0
 def __init__(self):
     options = [
         make_option("--bugs",
                     action="store_true",
                     dest="bugs",
                     help="Output bug links instead of patch links"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #13
0
 def __init__(self, options=None):
     options = options or []
     options.extend([
         optparse.make_option('--no-optimize', dest='optimize', action='store_false', default=True,
             help=('Do not optimize/de-dup the expectations after rebaselining '
                   '(default is to de-dup automatically). '
                   'You can use "webkit-patch optimize-baselines" to optimize separately.'))])
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #14
0
 def __init__(self, options=None):
     options = options or []
     options.extend([
         optparse.make_option('--no-optimize', dest='optimize', action='store_false', default=True,
             help=('Do not optimize/de-dup the expectations after rebaselining '
                   '(default is to de-dup automatically). '
                   'You can use "webkit-patch optimize-baselines" to optimize separately.'))])
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #15
0
 def __init__(self):
     options = [
         make_option("--httpd-port",
                     action="store",
                     type="int",
                     default=8127,
                     help="Port to use for the the rebaseline HTTP server"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #16
0
 def __init__(self):
     options = [
         optparse.make_option('--upload', action='store_true',
             help='upload the changed FlakyTest file for review'),
         optparse.make_option('--reviewers', action='store',
             help='comma-separated list of reviewers, defaults to blink gardeners'),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
     # This is sorta silly, but allows for unit testing:
     self.expectations_factory = BotTestExpectationsFactory
Example #17
0
 def __init__(self):
     options = [
         make_option("--all", action="store_true",
                     help="Show all bugs regardless of who is on CC (it might take a while)"),
         make_option("--include-cq-denied", action="store_true",
                     help="By default, r? patches with cq- are omitted unless this option is set"),
         make_option("--cc-email",
                     help="Specifies the email on the CC field (defaults to your bugzilla login email)"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #18
0
 def __init__(self):
     options = [
         make_option("--all", action="store_true",
                     help="Show all bugs regardless of who is on CC (it might take a while)"),
         make_option("--include-cq-denied", action="store_true",
                     help="By default, r? patches with cq- are omitted unless this option is set"),
         make_option("--cc-email",
                     help="Specifies the email on the CC field (defaults to your bugzilla login email)"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #19
0
 def __init__(self):
     options = [
         optparse.make_option('--upload', action='store_true',
             help='upload the changed FlakyTest file for review'),
         optparse.make_option('--reviewers', action='store',
             help='comma-separated list of reviewers, defaults to blink gardeners'),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
     # This is sorta silly, but allows for unit testing:
     self.expectations_factory = BotTestExpectationsFactory
Example #20
0
 def __init__(self):
     options = [
         make_option('--all', action='store_true', default=False,
                     help='display the baselines for *all* tests'),
         make_option('--csv', action='store_true', default=False,
                     help='Print a CSV-style report that includes the port name, test_name, test platform, baseline type, baseline location, and baseline platform'),
         make_option('--include-virtual-tests', action='store_true',
                     help='Include virtual tests'),
     ] + platform_options(platform='port/platform to use. Use glob-style wildcards for multiple ports (implies --csv)') + configuration_options()
     AbstractDeclarativeCommand.__init__(self, options=options)
     self._platform_regexp = re.compile('platform/([^\/]+)/(.+)')
Example #21
0
 def __init__(self):
     options = [
         make_option('--all', action='store_true', default=False,
                     help='display the baselines for *all* tests'),
         make_option('--csv', action='store_true', default=False,
                     help='Print a CSV-style report that includes the port name, test_name, test platform, baseline type, baseline location, and baseline platform'),
         make_option('--include-virtual-tests', action='store_true',
                     help='Include virtual tests'),
     ] + port_options(platform='port/platform to use. Use glob-style wildcards for multiple ports (implies --csv)')
     AbstractDeclarativeCommand.__init__(self, options=options)
     self._platform_regexp = re.compile('platform/([^\/]+)/(.+)')
Example #22
0
 def __init__(self):
     options = [
         make_option('--all', action='store_true', default=False,
                     help='display the baselines for *all* tests'),
         make_option('--csv', action='store_true', default=False,
                     help='Print a CSV-style report that includes the port name, test_name, test platform, baseline type, baseline location, and baseline platform'),
         make_option('--include-virtual-tests', action='store_true',
                     help='Include virtual tests'),
     ] + platform_options(use_globs=True)
     AbstractDeclarativeCommand.__init__(self, options=options)
     self._platform_regexp = re.compile('platform/([^\/]+)/(.+)')
Example #23
0
    def __init__(self):
        options = [
            make_option("--committer-minimum", action="store", dest="committer_minimum", type="int", default=10, help="Specify minimum patch count for Committer nominations."),
            make_option("--reviewer-minimum", action="store", dest="reviewer_minimum", type="int", default=80, help="Specify minimum patch count for Reviewer nominations."),
            make_option("--max-commit-age", action="store", dest="max_commit_age", type="int", default=9, help="Specify max commit age to consider for nominations (in months)."),
            make_option("--show-commits", action="store_true", dest="show_commits", default=False, help="Show commit history with nomination suggestions."),
        ]

        AbstractDeclarativeCommand.__init__(self, options=options)
        # FIXME: This should probably be on the tool somewhere.
        self._committer_list = CommitterList()
Example #24
0
 def __init__(self):
     options = [
         make_option('-p', '--platform', action='store',
                     help='platform/port(s) to display expectations for. Use glob-style wildcards for multiple ports (note that that will imply --csv)'),
         make_option('--all', action='store_true', default=False,
                     help='display the baselines for *all* tests'),
         make_option('--csv', action='store_true', default=False,
                     help='Print a CSV-style report that includes the port name, test_name, test platform, baseline type, baseline location, and baseline platform'),
         make_option('--include-virtual-tests', action='store_true',
                     help='Include virtual tests'),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
     self._platform_regexp = re.compile('platform/([^\/]+)/(.+)')
Example #25
0
 def __init__(self):
     options = [
         make_option("--all", action="store_true", default=False, help="display the baselines for *all* tests"),
         make_option(
             "--csv",
             action="store_true",
             default=False,
             help="Print a CSV-style report that includes the port name, test_name, test platform, baseline type, baseline location, and baseline platform",
         ),
         make_option("--include-virtual-tests", action="store_true", help="Include virtual tests"),
     ] + port_options(platform="port/platform to use. Use glob-style wildcards for multiple ports (implies --csv)")
     AbstractDeclarativeCommand.__init__(self, options=options)
     self._platform_regexp = re.compile("platform/([^\/]+)/(.+)")
Example #26
0
 def __init__(self, options=None):
     options = options or []
     options.extend(
         [
             optparse.make_option(
                 "--suffixes",
                 default=",".join(BASELINE_SUFFIX_LIST),
                 action="store",
                 help="file types to rebaseline",
             )
         ]
     )
     AbstractDeclarativeCommand.__init__(self, options=options)
     self._baseline_suffix_list = BASELINE_SUFFIX_LIST
 def __init__(self):
     options = [
         make_option("--httpd-port",
                     action="store",
                     type="int",
                     default=8127,
                     help="Port to use for the HTTP server"),
         make_option(
             "--no-show-results",
             action="store_false",
             default=True,
             dest="show_results",
             help="Don't launch a browser with the rebaseline server"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #28
0
    def __init__(self):
        options = [
            make_option('--all', action='store_true', default=False,
                        help='display the expectations for *all* tests'),
            make_option('-x', '--exclude-keyword', action='append', default=[],
                        help='limit to tests not matching the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'),
            make_option('-i', '--include-keyword', action='append', default=[],
                        help='limit to tests with the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'),
            make_option('--csv', action='store_true', default=False,
                        help='Print a CSV-style report that includes the port name, modifiers, tests, and expectations'),
            make_option('-f', '--full', action='store_true', default=False,
                        help='Print a full TestExpectations-style line for every match'),
        ] + port_options(platform='port/platform to use. Use glob-style wildcards for multiple ports (implies --csv)')

        AbstractDeclarativeCommand.__init__(self, options=options)
        self._expectation_models = {}
Example #29
0
    def __init__(self):
        options = [
            make_option('--all', action='store_true', default=False,
                        help='display the expectations for *all* tests'),
            make_option('-x', '--exclude-keyword', action='append', default=[],
                        help='limit to tests not matching the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'),
            make_option('-i', '--include-keyword', action='append', default=[],
                        help='limit to tests with the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'),
            make_option('--csv', action='store_true', default=False,
                        help='Print a CSV-style report that includes the port name, modifiers, tests, and expectations'),
            make_option('-f', '--full', action='store_true', default=False,
                        help='Print a full test_expectations.txt-style line for every match'),
        ] + port_options(platform='port/platform to use. Use glob-style wildcards for multiple ports (implies --csv)')

        AbstractDeclarativeCommand.__init__(self, options=options)
        self._expectation_models = {}
Example #30
0
    def __init__(self):
        options = [
            make_option(
                '--all',
                action='store_true',
                default=False,
                help='display the expectations for *all* tests'),
            make_option(
                '-x',
                '--exclude-keyword',
                action='append',
                default=[],
                help=
                'limit to tests not matching the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'
            ),
            make_option(
                '-i',
                '--include-keyword',
                action='append',
                default=[],
                help=
                'limit to tests with the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'
            ),
            make_option(
                '--csv',
                action='store_true',
                default=False,
                help=
                'Print a CSV-style report that includes the port name, bugs, specifiers, tests, and expectations'
            ),
            make_option(
                '-f',
                '--full',
                action='store_true',
                default=False,
                help='Print a full TestExpectations-style line for every match'
            ),
            make_option(
                '--paths',
                action='store_true',
                default=False,
                help='display the paths for all applicable expectation files'),
        ] + platform_options(use_globs=True)

        AbstractDeclarativeCommand.__init__(self, options=options)
        self._expectation_models = {}
Example #31
0
    def __init__(self):
        options = [
            make_option('--all',
                        action='store_true',
                        default=False,
                        help='display the expectations for *all* tests'),
            make_option(
                '-x',
                '--exclude-keyword',
                action='append',
                default=[],
                help=
                'limit to tests not matching the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'
            ),
            make_option(
                '-i',
                '--include-keyword',
                action='append',
                default=[],
                help=
                'limit to tests with the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'
            ),
            make_option(
                '--csv',
                action='store_true',
                default=False,
                help=
                'Print a CSV-style report that includes the port name, bugs, specifiers, tests, and expectations'
            ),
            make_option(
                '-f',
                '--full',
                action='store_true',
                default=False,
                help='Print a full TestExpectations-style line for every match'
            ),
            make_option(
                '--paths',
                action='store_true',
                default=False,
                help='display the paths for all applicable expectation files'),
        ] + platform_options(use_globs=True)

        AbstractDeclarativeCommand.__init__(self, options=options)
        self._expectation_models = {}
Example #32
0
 def __init__(self):
     options = [
         steps.Options.git_commit,
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
 def __init__(self):
     self._sequence = StepSequence(self.steps)
     AbstractDeclarativeCommand.__init__(self, self._sequence.options())
Example #34
0
 def __init__(self):
     options = [
         steps.Options.changelog_count,
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
 def __init__(self):
     AbstractDeclarativeCommand.__init__(self)
     self._re_committed = re.compile(self.commited_pattern)
     self._re_rollout = re.compile(self.rollout_pattern)
     self._omahaproxy = OmahaProxy()
Example #36
0
 def __init__(self):
     options = [
         steps.Options.changelog_count,
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #37
0
 def __init__(self):
     options = [
         optparse.make_option('--suffixes', default=','.join(_baseline_suffix_list), action='store',
                              help='file types to rebaseline')]
     AbstractDeclarativeCommand.__init__(self, options=options)
     self._baseline_suffix_list = _baseline_suffix_list
Example #38
0
 def __init__(self):
     options = [
         steps.Options.git_commit,
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
Example #39
0
 def __init__(self):
     self._sequence = StepSequence(self.steps)
     AbstractDeclarativeCommand.__init__(self, self._sequence.options())
Example #40
0
 def __init__(self):
     AbstractDeclarativeCommand.__init__(self)
     # This is sorta silly, but allows for unit testing:
     self.expectations_factory = BotTestExpectationsFactory
Example #41
0
 def __init__(self):
     options = [
         make_option("--bugs", action="store_true", dest="bugs", help="Output bug links instead of patch links"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
 def __init__(self):
     options = [make_option("--irc-password", default=None, help="Specify IRC password to use.")]
     AbstractDeclarativeCommand.__init__(self, options)
Example #43
0
 def __init__(self):
     AbstractDeclarativeCommand.__init__(self)
     self._re_committed = re.compile(self.commited_pattern)
     self._re_rollout = re.compile(self.rollout_pattern)
     self._omahaproxy = OmahaProxy()
Example #44
0
 def __init__(self):
     options = [
         make_option("--httpd-port", action="store", type="int", default=8127, help="Port to use for the the rebaseline HTTP server"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)