OLD | NEW |
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2015 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 DEPS = [ | 5 DEPS = [ |
6 'auto_bisect', | 6 'auto_bisect', |
7 'bisect_tester', | 7 'bisect_tester', |
8 'chromium', | 8 'chromium', |
9 'chromium_tests', | 9 'chromium_tests', |
10 'depot_tools/gclient', | 10 'depot_tools/gclient', |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 yield (api.test('basic_perf_tryjob') + api.properties.tryserver( | 68 yield (api.test('basic_perf_tryjob') + api.properties.tryserver( |
69 mastername='tryserver.chromium.perf', | 69 mastername='tryserver.chromium.perf', |
70 buildername='linux_perf_bisect') + api.override_step_data( | 70 buildername='linux_perf_bisect') + api.override_step_data( |
71 'git diff to analyze patch', | 71 'git diff to analyze patch', |
72 api.raw_io.stream_output('tools/run-perf-test.cfg')) + | 72 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
73 api.override_step_data('load config', api.json.output(config_json)) + | 73 api.override_step_data('load config', api.json.output(config_json)) + |
74 api.step_data('Performance Test (Without Patch) 1 of 1', | 74 api.step_data('Performance Test (Without Patch) 1 of 1', |
75 stdout=api.raw_io.output(str(results_without_patch))) + | 75 stdout=api.raw_io.output(str(results_without_patch))) + |
76 api.step_data('Performance Test (With Patch) 1 of 1', | 76 api.step_data('Performance Test (With Patch) 1 of 1', |
77 stdout=api.raw_io.output(str(results_with_patch)))) | 77 stdout=api.raw_io.output(str(results_with_patch))) + |
| 78 api.step_data('Post bisect results', |
| 79 stdout=api.json.output({'status_code': 200}))) |
78 | 80 |
79 config_json.update({'metric': 'dummy/dummy'}) | 81 config_json.update({'metric': 'dummy/dummy'}) |
80 | 82 |
81 yield (api.test('basic_perf_tryjob_with_metric') + api.properties.tryserver( | 83 yield (api.test('basic_perf_tryjob_with_metric') + api.properties.tryserver( |
82 mastername='tryserver.chromium.perf', | 84 mastername='tryserver.chromium.perf', |
83 buildername='linux_perf_bisect') + api.override_step_data( | 85 buildername='linux_perf_bisect') + api.override_step_data( |
84 'git diff to analyze patch', | 86 'git diff to analyze patch', |
85 api.raw_io.stream_output('tools/run-perf-test.cfg')) + | 87 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
86 api.override_step_data('load config', api.json.output(config_json)) + | 88 api.override_step_data('load config', api.json.output(config_json)) + |
87 api.step_data('Performance Test (Without Patch) 1 of 1', | 89 api.step_data('Performance Test (Without Patch) 1 of 1', |
88 stdout=api.raw_io.output(results_without_patch)) + | 90 stdout=api.raw_io.output(results_without_patch)) + |
89 api.step_data('Performance Test (With Patch) 1 of 1', | 91 api.step_data('Performance Test (With Patch) 1 of 1', |
90 stdout=api.raw_io.output(results_with_patch))) | 92 stdout=api.raw_io.output(results_with_patch)) + |
| 93 api.step_data('Post bisect results', |
| 94 stdout=api.json.output({'status_code': 200}))) |
| 95 |
91 | 96 |
92 yield (api.test('perf_tryjob_failed_test') + api.properties.tryserver( | 97 yield (api.test('perf_tryjob_failed_test') + api.properties.tryserver( |
93 mastername='tryserver.chromium.perf', | 98 mastername='tryserver.chromium.perf', |
94 buildername='linux_perf_bisect') + api.override_step_data( | 99 buildername='linux_perf_bisect') + api.override_step_data( |
95 'git diff to analyze patch', | 100 'git diff to analyze patch', |
96 api.raw_io.stream_output('tools/run-perf-test.cfg')) + | 101 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
97 api.override_step_data('load config', api.json.output(config_json)) + | 102 api.override_step_data('load config', api.json.output(config_json)) + |
98 api.step_data('Performance Test (With Patch) 1 of 1', | 103 api.step_data('Performance Test (With Patch) 1 of 1', |
99 retcode=1)) | 104 retcode=1)) |
100 | 105 |
101 config_json.update({'good_revision': '306475', 'bad_revision': '306476'}) | 106 config_json.update({'good_revision': '306475', 'bad_revision': '306476'}) |
102 | 107 |
103 yield ( | 108 yield ( |
104 api.test('basic_perf_tryjob_with_revisions') + api.properties.tryserver( | 109 api.test('basic_perf_tryjob_with_revisions') + api.properties.tryserver( |
105 mastername='tryserver.chromium.perf', | 110 mastername='tryserver.chromium.perf', |
106 buildername='linux_perf_bisect') + api.override_step_data( | 111 buildername='linux_perf_bisect') + api.override_step_data( |
107 'git diff to analyze patch', | 112 'git diff to analyze patch', |
108 api.raw_io.stream_output('tools/run-perf-test.cfg')) + | 113 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
109 api.override_step_data('load config', api.json.output(config_json)) + | 114 api.override_step_data('load config', api.json.output(config_json)) + |
110 api.step_data( | 115 api.step_data( |
111 'resolving commit_pos ' + config_json['good_revision'], | 116 'resolving commit_pos ' + config_json['good_revision'], |
112 stdout=api.raw_io.output('hash:d49c331def2a3bbf3ddd0096eb51551155')) + | 117 stdout=api.raw_io.output('hash:d49c331def2a3bbf3ddd0096eb51551155')) + |
113 api.step_data( | 118 api.step_data( |
114 'resolving commit_pos ' + config_json['bad_revision'], | 119 'resolving commit_pos ' + config_json['bad_revision'], |
115 stdout=api.raw_io.output('hash:bad49c331def2a3bbf3ddd0096eb51551155')) | 120 stdout=api.raw_io.output('hash:bad49c331def2a3bbf3ddd0096eb51551155')) |
116 + api.step_data( | 121 + api.step_data( |
117 'Performance Test (d49c331def2a3bbf3ddd0096eb51551155) 1 of 1', | 122 'Performance Test (d49c331def2a3bbf3ddd0096eb51551155) 1 of 1', |
118 stdout=api.raw_io.output(results_without_patch)) + api.step_data( | 123 stdout=api.raw_io.output(results_without_patch)) + api.step_data( |
119 'Performance Test (bad49c331def2a3bbf3ddd0096eb51551155) 1 of 1', | 124 'Performance Test (bad49c331def2a3bbf3ddd0096eb51551155) 1 of 1', |
120 stdout=api.raw_io.output(results_with_patch))) | 125 stdout=api.raw_io.output(results_with_patch)) + |
| 126 api.step_data('Post bisect results', |
| 127 stdout=api.json.output({'status_code': 200}))) |
121 | 128 |
122 config_json = { | 129 config_json = { |
123 'max_time_minutes': '25', | 130 'max_time_minutes': '25', |
124 'repeat_count': '1', | 131 'repeat_count': '1', |
125 'truncate_percent': '25', | 132 'truncate_percent': '25', |
126 'target_arch': 'ia32', | 133 'target_arch': 'ia32', |
127 } | 134 } |
128 | 135 |
129 yield (api.test('perf_tryjob_config_error') + api.properties.tryserver( | 136 yield (api.test('perf_tryjob_config_error') + api.properties.tryserver( |
130 mastername='tryserver.chromium.perf', | 137 mastername='tryserver.chromium.perf', |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 buildername='linux_perf_bisect') + | 207 buildername='linux_perf_bisect') + |
201 api.step_data('saving url to temp file', | 208 api.step_data('saving url to temp file', |
202 stdout=api.raw_io.output('/tmp/dummy1')) + api.step_data( | 209 stdout=api.raw_io.output('/tmp/dummy1')) + api.step_data( |
203 'saving json to temp file', | 210 'saving json to temp file', |
204 stdout=api.raw_io.output('/tmp/dummy2')) + | 211 stdout=api.raw_io.output('/tmp/dummy2')) + |
205 api.properties(bisect_config=bisect_ret_code_config) + api.properties( | 212 api.properties(bisect_config=bisect_ret_code_config) + api.properties( |
206 job_name='f7a7b4135624439cbd27fdd5133d74ec') + | 213 job_name='f7a7b4135624439cbd27fdd5133d74ec') + |
207 api.bisect_tester(tempfile='/tmp/dummy') + api.properties( | 214 api.bisect_tester(tempfile='/tmp/dummy') + api.properties( |
208 parent_got_revision='1111111') + api.properties( | 215 parent_got_revision='1111111') + api.properties( |
209 parent_build_archive_url='gs://test-domain/test-archive.zip')) | 216 parent_build_archive_url='gs://test-domain/test-archive.zip')) |
OLD | NEW |