8PYTHON_VERSION_COMPATIBILITY =
"PY3"
11 'recipe_engine/context',
14 'recipe_engine/properties',
25 now = api.time.utcnow()
26 src_path = api.path.start_dir.join(
'perf')
27 with api.context(cwd=src_path):
28 results = api.file.glob_paths(
32 test_data=[
'buildstats_abc123.json',
'buildstats_def.json'])
34 raise Exception(
'Unable to find buildstats JSON file!')
37 basename = api.path.basename(src)
38 basename = api.properties[
'revision'] +
'_' + basename
40 'buildstats-json-v1', str(now.year).zfill(4),
41 str(now.month).zfill(2), str(now.day).zfill(2), str(now.hour).zfill(2),
42 api.vars.builder_name))
44 if api.vars.is_trybot:
45 gs_path =
'/'.
join((
'trybot', gs_path,
46 str(api.vars.issue), str(api.vars.patchset)))
49 'gs://%s' % api.properties[
'gs_bucket'], gs_path, basename))
53 cmd=[
'gsutil',
'cp',
'-z',
'json', src, dst],
58 builder =
'BuildStats-Debian10-EMCC-wasm-Release-PathKit'
60 api.test(
'normal_bot') +
61 api.properties(buildername=builder,
62 gs_bucket=
'skia-perf',
64 path_config=
'kitchen')
69 api.properties.tryserver(
70 gerrit_project=
'skia',
71 gerrit_url=
'https://skia-review.googlesource.com/',
73 api.properties(buildername=builder,
74 gs_bucket=
'skia-perf',
76 path_config=
'kitchen')
static SkString join(const CommandLineFlags::StringArray &)