in variance-analysis/run_variance_analysis.py [0:0]
def variance_analysis_parser():
parser = argparse.ArgumentParser(
"This tool can download artifact data from a group of "
+ "taskcluster tasks. It then extracts the data, suffixes it with "
+ "a number and then stores it in an output directory."
)
# Artifact downloader arguments
parser.add_argument(
"--base-revision",
type=str,
required=True,
help="The base revision to compare a new revision to.",
)
parser.add_argument(
"--base-branch",
type=str,
default="autoland",
help="Branch to search for the base revision.",
)
parser.add_argument(
"--new-revision",
type=str,
required=True,
help="The base revision to compare a new revision to.",
)
parser.add_argument(
"--new-branch",
type=str,
default="autoland",
help="Branch to search for the new revision.",
)
parser.add_argument(
"--tests",
type=str,
nargs="*",
default=["all"],
help="A list of test names to download data from. Defaults to all.",
)
parser.add_argument(
"--platform",
"--base-platform",
type=str,
required=True,
dest="platform",
help="Platform to return results for.",
)
parser.add_argument(
"--new-platform",
type=str,
default=None,
help="Platform to return results for in the new revision.",
)
parser.add_argument(
"--overwrite",
action="store_true",
default=False,
help="If set, the downloaded task group data will be deleted before "
+ "it gets re-downloaded.",
)
parser.add_argument(
"--search-crons",
action="store_true",
default=False,
help="If set, we will search for the tasks within the cron jobs as well. ",
)
parser.add_argument(
"--skip-download",
action="store_true",
default=False,
help="If set, we won't try to download artifacts again and we'll "
+ "try using what already exists in the output folder.",
)
parser.add_argument(
"--output",
type=str,
default=os.getcwd(),
help="This is where the data will be saved. Defaults to CWD. ",
)
parser.add_argument(
"--prefix",
type=str,
default="",
help="A prefix to prepend onto the output data/files.",
)
# Perftest Notebook arguments
parser.add_argument(
"--config",
type=str,
required=True,
help="A config to use in the perftest-notebook data standardization step.",
)
parser.add_argument(
"--sort-files",
action="store_true",
default=False,
help="Sort files in the perftest notebook.",
)
return parser