OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 # Recipe for uploading nanobench results. | 6 # Recipe for uploading nanobench results. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'build/file', | 10 'build/file', |
11 'recipe_engine/path', | 11 'recipe_engine/path', |
12 'recipe_engine/properties', | 12 'recipe_engine/properties', |
13 'recipe_engine/step', | 13 'recipe_engine/step', |
14 'recipe_engine/time', | 14 'recipe_engine/time', |
15 ] | 15 ] |
16 | 16 |
17 | 17 |
18 def RunSteps(api): | 18 def RunSteps(api): |
19 # Upload the nanobench resuls. | 19 # Upload the nanobench resuls. |
20 builder_name = api.properties['buildername'] | 20 builder_name = api.properties['buildername'] |
21 issue = str(api.properties.get('issue')) | 21 issue = str(api.properties.get('issue', '')) |
22 patchset = str(api.properties.get('patchset')) | 22 patchset = str(api.properties.get('patchset', '')) |
23 | 23 |
24 now = api.time.utcnow() | 24 now = api.time.utcnow() |
25 | 25 |
26 src_path = api.path['cwd'].join( | 26 src_path = api.path['cwd'].join( |
27 'perfdata', builder_name, 'data') | 27 'perfdata', builder_name, 'data') |
28 results = api.file.glob( | 28 results = api.file.glob( |
29 'find results', | 29 'find results', |
30 'nanobench*.json', | 30 'nanobench*.json', |
31 cwd=src_path, | 31 cwd=src_path, |
32 test_data=['nanobench_abc123.json'], | 32 test_data=['nanobench_abc123.json'], |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot' | 65 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot' |
66 yield ( | 66 yield ( |
67 api.test('trybot') + | 67 api.test('trybot') + |
68 api.properties(buildername=builder, | 68 api.properties(buildername=builder, |
69 revision='abc123', | 69 revision='abc123', |
70 path_config='kitchen', | 70 path_config='kitchen', |
71 issue='12345', | 71 issue='12345', |
72 patchset='1002') | 72 patchset='1002') |
73 ) | 73 ) |
OLD | NEW |