Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: tools/try_perf.py

Issue 734403002: Prototype for a client-side performance trybot script. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/find_depot_tools.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2014 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import find_depot_tools
7 import sys
8
9 find_depot_tools.add_depot_tools_to_path()
10
11 from git_cl import Changelist
12
13 BOTS = [
14 'v8_linux32_perf_try',
15 'v8_linux64_perf_try',
16 ]
17
18 def main(tests):
19 cl = Changelist()
20 if not cl.GetIssue():
21 print 'Need to upload first'
22 return 1
23
24 props = cl.GetIssueProperties()
25 if props.get('closed'):
26 print 'Cannot send tryjobs for a closed CL'
27 return 1
28
29 if props.get('private'):
30 print 'Cannot use trybots with private issue'
31 return 1
32
33 if not tests:
34 print 'Please specify the benchmarks to run as arguments.'
35 return 1
36
37 masters = {'internal.client.v8': dict((b, tests) for b in BOTS)}
38 cl.RpcServer().trigger_distributed_try_jobs(
39 cl.GetIssue(), cl.GetMostRecentPatchset(), cl.GetBranch(),
40 False, None, masters)
41 return 0
42
43 if __name__ == "__main__": # pragma: no cover
44 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « tools/find_depot_tools.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698