a726978ae7
This reverts commit 12e786730f
.
Reason for revert: missing CIPD package on armv6l
Original change's description:
> [python3] More Recipes -> Python 3 fixes
>
> - Set environment variables to force usage of Python 3 in more places
> - Fix more compatibility issues
> - Mark recipes as only supporting Python 3
> - Includes a roll of the infra code
>
> Change-Id: I24e3827a6402c454bdc9467d28864d360632f9e6
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/470303
> Reviewed-by: Ravi Mistry <rmistry@google.com>
> Commit-Queue: Eric Boren <borenet@google.com>
Change-Id: If7b6fcb7838ac053af2c5eb45a7a1ac4aed340a5
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/472736
Auto-Submit: Eric Boren <borenet@google.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
78 lines
2.0 KiB
Python
78 lines
2.0 KiB
Python
# Copyright 2016 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
|
|
# Recipe for uploading nanobench results.
|
|
|
|
PYTHON_VERSION_COMPATIBILITY = "PY2+3"
|
|
|
|
DEPS = [
|
|
'recipe_engine/context',
|
|
'recipe_engine/file',
|
|
'recipe_engine/path',
|
|
'recipe_engine/properties',
|
|
'recipe_engine/step',
|
|
'recipe_engine/time',
|
|
'vars',
|
|
]
|
|
|
|
|
|
def RunSteps(api):
|
|
# Upload the nanobench results.
|
|
api.vars.setup()
|
|
|
|
now = api.time.utcnow()
|
|
src_path = api.path['start_dir'].join('perf')
|
|
with api.context(cwd=src_path):
|
|
results = api.file.glob_paths(
|
|
'find results',
|
|
src_path,
|
|
'*.json',
|
|
test_data=['nanobench_abc123.json'])
|
|
if len(results) != 1: # pragma: nocover
|
|
raise Exception('Unable to find nanobench or skpbench JSON file!')
|
|
|
|
src = results[0]
|
|
basename = api.path.basename(src)
|
|
gs_path = '/'.join((
|
|
'nano-json-v1', str(now.year).zfill(4),
|
|
str(now.month).zfill(2), str(now.day).zfill(2), str(now.hour).zfill(2),
|
|
api.vars.builder_name))
|
|
|
|
if api.vars.is_trybot:
|
|
gs_path = '/'.join(('trybot', gs_path,
|
|
str(api.vars.issue), str(api.vars.patchset)))
|
|
|
|
dst = '/'.join((
|
|
'gs://%s' % api.properties['gs_bucket'], gs_path, basename))
|
|
|
|
api.step(
|
|
'upload',
|
|
cmd=['gsutil', 'cp', '-z', 'json', src, dst],
|
|
infra_step=True)
|
|
|
|
|
|
def GenTests(api):
|
|
builder = 'Perf-Debian10-Clang-GCE-CPU-AVX2-x86_64-All-Debug'
|
|
yield (
|
|
api.test('normal_bot') +
|
|
api.properties(buildername=builder,
|
|
gs_bucket='skia-perf',
|
|
revision='abc123',
|
|
path_config='kitchen')
|
|
)
|
|
|
|
yield (
|
|
api.test('trybot') +
|
|
api.properties(buildername=builder,
|
|
gs_bucket='skia-perf',
|
|
revision='abc123',
|
|
path_config='kitchen') +
|
|
api.properties.tryserver(
|
|
buildername=builder,
|
|
gerrit_project='skia',
|
|
gerrit_url='https://skia-review.googlesource.com/',
|
|
)
|
|
)
|