Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload buildbot perf data to S3. #19450

Merged
merged 1 commit into from Dec 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion etc/ci/buildbot_steps.yml
Expand Up @@ -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
Expand Down
15 changes: 9 additions & 6 deletions etc/ci/performance/download_buildbot_timings.py
Expand Up @@ -12,8 +12,13 @@
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"
)
Expand All @@ -29,19 +34,17 @@ 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',
help="the filename to cache JSON data in. "
"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',
Expand Down