| 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 from recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'auto_bisect', | 8 'auto_bisect', |
| 9 'bisect_tester', | 9 'bisect_tester', |
| 10 'bot_update', | 10 'bot_update', |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 + api.override_step_data( | 160 + api.override_step_data( |
| 161 'git diff to analyze patch', | 161 'git diff to analyze patch', |
| 162 api.raw_io.stream_output('tools/run-perf-test.cfg')) | 162 api.raw_io.stream_output('tools/run-perf-test.cfg')) |
| 163 + api.override_step_data( | 163 + api.override_step_data( |
| 164 'load config', | 164 'load config', |
| 165 api.json.output(config_json)) | 165 api.json.output(config_json)) |
| 166 + api.step_data('Performance Test (Without Patch) 1 of 1', | 166 + api.step_data('Performance Test (Without Patch) 1 of 1', |
| 167 stdout=api.raw_io.output(str(results_without_patch))) | 167 stdout=api.raw_io.output(str(results_without_patch))) |
| 168 + api.step_data('Performance Test (With Patch) 1 of 1', | 168 + api.step_data('Performance Test (With Patch) 1 of 1', |
| 169 stdout=api.raw_io.output(str(results_with_patch))) | 169 stdout=api.raw_io.output(str(results_with_patch))) |
| 170 | 170 + api.step_data( |
| 171 'Post bisect results', |
| 172 stdout=api.json.output({'status_code': 200})) |
| 171 ) | 173 ) |
| 172 config_json.update({"metric": "dummy/dummy"}) | 174 config_json.update({"metric": "dummy/dummy"}) |
| 173 | 175 |
| 174 yield (api.test('basic_perf_tryjob_with_metric_' + buildername) | 176 yield (api.test('basic_perf_tryjob_with_metric_' + buildername) |
| 175 +api.properties.tryserver( | 177 +api.properties.tryserver( |
| 176 mastername='tryserver.chromium.perf', | 178 mastername='tryserver.chromium.perf', |
| 177 buildername=buildername) | 179 buildername=buildername) |
| 178 + api.override_step_data( | 180 + api.override_step_data( |
| 179 'git diff to analyze patch', | 181 'git diff to analyze patch', |
| 180 api.raw_io.stream_output('tools/run-perf-test.cfg')) | 182 api.raw_io.stream_output('tools/run-perf-test.cfg')) |
| 181 + api.override_step_data( | 183 + api.override_step_data( |
| 182 'load config', | 184 'load config', |
| 183 api.json.output(config_json)) | 185 api.json.output(config_json)) |
| 184 + api.step_data('Performance Test (Without Patch) 1 of 1', | 186 + api.step_data('Performance Test (Without Patch) 1 of 1', |
| 185 stdout=api.raw_io.output(results_without_patch)) | 187 stdout=api.raw_io.output(results_without_patch)) |
| 186 + api.step_data('Performance Test (With Patch) 1 of 1', | 188 + api.step_data('Performance Test (With Patch) 1 of 1', |
| 187 stdout=api.raw_io.output(results_with_patch)) | 189 stdout=api.raw_io.output(results_with_patch)) |
| 190 + api.step_data( |
| 191 'Post bisect results', |
| 192 stdout=api.json.output({'status_code': 200})) |
| 188 ) | 193 ) |
| 189 | 194 |
| 190 yield (api.test('perf_tryjob_failed_test_' + buildername) | 195 yield (api.test('perf_tryjob_failed_test_' + buildername) |
| 191 +api.properties.tryserver( | 196 +api.properties.tryserver( |
| 192 mastername='tryserver.chromium.perf', | 197 mastername='tryserver.chromium.perf', |
| 193 buildername=buildername) | 198 buildername=buildername) |
| 194 + api.override_step_data( | 199 + api.override_step_data( |
| 195 'git diff to analyze patch', | 200 'git diff to analyze patch', |
| 196 api.raw_io.stream_output('tools/run-perf-test.cfg')) | 201 api.raw_io.stream_output('tools/run-perf-test.cfg')) |
| 197 + api.override_step_data( | 202 + api.override_step_data( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 215 + api.step_data('resolving commit_pos ' + config_json['good_revision'], | 220 + api.step_data('resolving commit_pos ' + config_json['good_revision'], |
| 216 stdout=api.raw_io.output('hash:d49c331def2a3bbf3ddd0096eb51551155')) | 221 stdout=api.raw_io.output('hash:d49c331def2a3bbf3ddd0096eb51551155')) |
| 217 + api.step_data('resolving commit_pos ' + config_json['bad_revision'], | 222 + api.step_data('resolving commit_pos ' + config_json['bad_revision'], |
| 218 stdout=api.raw_io.output('hash:bad49c331def2a3bbf3ddd0096eb51551155')) | 223 stdout=api.raw_io.output('hash:bad49c331def2a3bbf3ddd0096eb51551155')) |
| 219 + api.step_data( | 224 + api.step_data( |
| 220 'Performance Test (d49c331def2a3bbf3ddd0096eb51551155) 1 of 1', | 225 'Performance Test (d49c331def2a3bbf3ddd0096eb51551155) 1 of 1', |
| 221 stdout=api.raw_io.output(results_without_patch)) | 226 stdout=api.raw_io.output(results_without_patch)) |
| 222 + api.step_data( | 227 + api.step_data( |
| 223 'Performance Test (bad49c331def2a3bbf3ddd0096eb51551155) 1 of 1', | 228 'Performance Test (bad49c331def2a3bbf3ddd0096eb51551155) 1 of 1', |
| 224 stdout=api.raw_io.output(results_with_patch)) | 229 stdout=api.raw_io.output(results_with_patch)) |
| 230 + api.step_data( |
| 231 'Post bisect results', |
| 232 stdout=api.json.output({'status_code': 200})) |
| 225 ) | 233 ) |
| 226 | 234 |
| 227 config_json = { | 235 config_json = { |
| 228 "max_time_minutes": "25", | 236 "max_time_minutes": "25", |
| 229 "repeat_count": "1", | 237 "repeat_count": "1", |
| 230 "truncate_percent": "25", | 238 "truncate_percent": "25", |
| 231 "target_arch": "ia32", | 239 "target_arch": "ia32", |
| 232 } | 240 } |
| 233 | 241 |
| 234 yield (api.test('perf_tryjob_config_error_' + buildername) | 242 yield (api.test('perf_tryjob_config_error_' + buildername) |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 stdout=api.raw_io.output('/tmp/dummy1')) | 305 stdout=api.raw_io.output('/tmp/dummy1')) |
| 298 + api.step_data('saving json to temp file', | 306 + api.step_data('saving json to temp file', |
| 299 stdout=api.raw_io.output('/tmp/dummy2')) | 307 stdout=api.raw_io.output('/tmp/dummy2')) |
| 300 + api.properties(bisect_config=bisect_config) | 308 + api.properties(bisect_config=bisect_config) |
| 301 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec') | 309 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec') |
| 302 + api.bisect_tester(tempfile='/tmp/dummy') | 310 + api.bisect_tester(tempfile='/tmp/dummy') |
| 303 + api.properties(parent_got_revision='1111111') | 311 + api.properties(parent_got_revision='1111111') |
| 304 + api.properties( | 312 + api.properties( |
| 305 parent_build_archive_url='gs://test-domain/test-archive.zip') | 313 parent_build_archive_url='gs://test-domain/test-archive.zip') |
| 306 ) | 314 ) |
| OLD | NEW |