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

Side by Side Diff: content/test/ct/run_ct_top1k.py

Issue 1410353007: Add CT isolate file and CT script that will be run on swarming slaves (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 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
« chrome/ct_top1k.isolate ('K') | « chrome/ct_top1k.isolate ('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 (c) 2015 The Chromium 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 """This script is meant to be run on a Swarming bot."""
7
8 import argparse
9 import os
10 import subprocess
11 import sys
12
13
14 PARENT_DIR = os.path.dirname(os.path.realpath(__file__))
15
16
17 def _GetChromiumSrcDir():
18 return os.path.abspath(os.path.join(
19 PARENT_DIR, os.pardir, os.pardir, os.pardir))
20
21
22 def main():
23 parser = argparse.ArgumentParser()
24 parser.add_argument('-s', '--slave_num', required=True,
25 help='The slave num of this CT run.')
26 parser.add_argument('-b', '--benchmark', required=True,
27 help='The benchmark to run.')
28 parser.add_argument('-m', '--master', required=True,
29 help='The master the builder is running on.')
30 parser.add_argument('-c', '--builder', required=True,
31 help='The builder that triggered this run.')
32 parser.add_argument('-g', '--git_hash', required=True,
33 help='The git hash the build was triggered at.')
34
35 args = parser.parse_args()
36
37 ct_binary_path = os.path.join(PARENT_DIR, 'run_chromium_perf_swarming')
38 chromium_binary_path = os.path.join(_GetChromiumSrcDir(), 'out', 'Release')
39 page_sets_dir = os.path.join(
40 PARENT_DIR, 'slave%s' % args.slave_num, 'page_sets')
41 telemetry_binaries_dir = os.path.join(_GetChromiumSrcDir(), 'tools', 'perf')
42
43 # Run Cluster Telemetry.
44 cmd = [
45 ct_binary_path,
46 '--worker_num', args.slave_num,
47 '--chromium_build', chromium_binary_path,
48 '--benchmark_name', args.benchmark,
49 '--telemetry_binaries_dir', telemetry_binaries_dir,
50 '--page_sets_dir', page_sets_dir,
51 '--master', args.master,
52 '--builder', args.builder,
53 '--git_hash', args.git_hash,
54 '--alsologtostderr',
55 ]
56 return subprocess.call(cmd)
57
58
59 if __name__ == '__main__':
60 sys.exit(main())
OLDNEW
« chrome/ct_top1k.isolate ('K') | « chrome/ct_top1k.isolate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698