in variance-analysis/mach_perftest_notebook_dev/perftestnotebook/artifact_downloader.py [0:0]
def artifact_downloader_parser():
parser = argparse.ArgumentParser(
"This tool can download the GRCOV data from a group of linux64-ccov "
+ "taskcluster tasks. It then extracts the data, suffixes it with "
+ "a number and then stores it in an output directory."
)
parser.add_argument(
"--task-group-id",
type=str,
nargs=1,
help="The group of tasks that should be parsed to find all the necessary "
+ "data to be used in this analysis. ",
)
parser.add_argument(
"--test-suites-list",
type=str,
nargs="+",
help="The listt of tests to look at. e.g. mochitest-browser-chrome-e10s-2."
+ " If it`s empty we assume that it means nothing, if `all` is given all suites"
+ " will be processed.",
)
parser.add_argument(
"--artifact-to-get",
type=str,
nargs=1,
default="grcov",
help="Pattern matcher for the artifact you want to download. By default, it"
+ " is set to `grcov` to get ccov artifacts. Use `per_test_coverage` to get data"
+ " from test-coverage tasks.",
)
parser.add_argument(
"--unzip-artifact",
action="store_true",
default=False,
help="Set to False if you don`t want the artifact to be extracted.",
)
parser.add_argument(
"--platform",
type=str,
default="test-linux64-ccov",
help="Platform to obtain data from.",
)
parser.add_argument(
"--download-failures",
action="store_true",
default=False,
help="Platform to obtain data from.",
)
parser.add_argument(
"--ingest-continue",
action="store_true",
default=False,
help="Continues from the same run it was doing before.",
)
parser.add_argument(
"--output",
type=str,
nargs=1,
help="This is the directory where all the download, extracted, and suffixed "
+ "data will reside.",
)
return parser