Upload buildbot perf data to S3.

This commit is contained in:
Alan Jeffrey 2017-12-01 11:47:07 -06:00
parent 9da7663e29
commit 524df9e18e
2 changed files with 12 additions and 7 deletions

View file

@ -113,7 +113,9 @@ linux-nightly:
- env CC=gcc-5 CXX=g++-5 ./mach build --release
- ./mach package --release
- ./mach upload-nightly linux
- ./mach test-perf --submit
- ./mach test-perf
- python ./etc/ci/performance/download_buildbot_timings.py --verbose
- aws s3 sync --size-only --acl public-read ./etc/ci/performance/output s3://servo-perf
android:
- ./mach clean-nightlies --keep 3 --force

View file

@ -12,8 +12,13 @@ import json
from math import floor
import os
SCRIPT_PATH = os.path.split(__file__)[0]
def main():
default_output_dir = os.path.join(SCRIPT_PATH, 'output')
default_cache_dir = os.path.join(SCRIPT_PATH, '.cache')
parser = argparse.ArgumentParser(
description="Download buildbot metadata"
)
@ -29,9 +34,8 @@ def main():
"Default: http://build.servo.org/json/builders/{}/builds/{}")
parser.add_argument("--cache-dir",
type=str,
default='.cache',
help="the directory to cache JSON files in. "
"Default: .cache")
default=default_cache_dir,
help="the directory to cache JSON files in. Default: " + default_cache_dir)
parser.add_argument("--cache-name",
type=str,
default='build-{}-{}.json',
@ -39,9 +43,8 @@ def main():
"Default: build-{}-{}.json")
parser.add_argument("--output-dir",
type=str,
default='output',
help="the directory to save the CSV data to. "
"Default: output")
default=default_output_dir,
help="the directory to save the CSV data to. Default: " + default_output_dir)
parser.add_argument("--output-name",
type=str,
default='builds-{}-{}.csv',