aboutsummaryrefslogtreecommitdiffstats
path: root/etc/ci/performance/submit_to_perfherder.py
diff options
context:
space:
mode:
authorCHANG FU CHIAO <zector1030@gmail.com>2016-08-27 11:14:10 +0800
committerCHANG FU CHIAO <zector1030@gmail.com>2016-08-27 13:43:43 +0800
commit1dcc8e69fec5bda0e48d213a8dd25ff24bfc955f (patch)
tree4413e1bd61563a212e251b3100b43bf2f286099d /etc/ci/performance/submit_to_perfherder.py
parentfe1225b4ba5b89bb7e22ea827edbc40d44a5d4d6 (diff)
downloadservo-1dcc8e69fec5bda0e48d213a8dd25ff24bfc955f.tar.gz
servo-1dcc8e69fec5bda0e48d213a8dd25ff24bfc955f.zip
FIX TreeherderClient deprecated param
According to warning from TreeherderClient(), the parameters `host` and `protocol` are deprecated. Then use `server_url` instead.
Diffstat (limited to 'etc/ci/performance/submit_to_perfherder.py')
-rw-r--r--etc/ci/performance/submit_to_perfherder.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/ci/performance/submit_to_perfherder.py b/etc/ci/performance/submit_to_perfherder.py
index e8f0f267c15..be2709ceea7 100644
--- a/etc/ci/performance/submit_to_perfherder.py
+++ b/etc/ci/performance/submit_to_perfherder.py
@@ -317,8 +317,7 @@ def submit(perf_data, failures, revision, summary, engine):
'secret': os.environ['TREEHERDER_CLIENT_SECRET']
}
- client = TreeherderClient(protocol='https',
- host='treeherder.allizom.org',
+ client = TreeherderClient(server_url='https://treeherder.mozilla.org',
client_id=cred['client_id'],
secret=cred['secret'])
@@ -331,7 +330,7 @@ def submit(perf_data, failures, revision, summary, engine):
def main():
parser = argparse.ArgumentParser(
description=("Submit Servo performance data to Perfherder. "
- "Remember to set your Treeherder credentail as environment"
+ "Remember to set your Treeherder credential as environment"
" variable \'TREEHERDER_CLIENT_ID\' and "
"\'TREEHERDER_CLIENT_SECRET\'"))
parser.add_argument("perf_json",