| 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 'depot_tools/bot_update', | 10 'depot_tools/bot_update', |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 'BUILD_CONFIG': 'Release', | 96 'BUILD_CONFIG': 'Release', |
| 97 'TARGET_PLATFORM': 'android', | 97 'TARGET_PLATFORM': 'android', |
| 98 } | 98 } |
| 99 kwargs.update(bot_config.get('kwargs', {})) | 99 kwargs.update(bot_config.get('kwargs', {})) |
| 100 api.chromium_android.configure_from_properties(recipe_config, **kwargs) | 100 api.chromium_android.configure_from_properties(recipe_config, **kwargs) |
| 101 api.chromium.set_config(recipe_config, **kwargs) | 101 api.chromium.set_config(recipe_config, **kwargs) |
| 102 api.chromium_android.c.set_val({'deps_file': 'DEPS'}) | 102 api.chromium_android.c.set_val({'deps_file': 'DEPS'}) |
| 103 api.gclient.set_config('chromium') | 103 api.gclient.set_config('chromium') |
| 104 for c in bot_config.get('gclient_apply_config', []): | 104 for c in bot_config.get('gclient_apply_config', []): |
| 105 api.gclient.apply_config(c) | 105 api.gclient.apply_config(c) |
| 106 update_step = api.bot_update.ensure_checkout() | 106 update_step = api.auto_bisect.ensure_checkout() |
| 107 api.chromium_android.clean_local_files() | 107 api.chromium_android.clean_local_files() |
| 108 | 108 |
| 109 bot_db = api.chromium_tests.create_bot_db_from_master_dict(mastername, | 109 bot_db = api.chromium_tests.create_bot_db_from_master_dict(mastername, |
| 110 master_dict) | 110 master_dict) |
| 111 | 111 |
| 112 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db) | 112 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db) |
| 113 | 113 |
| 114 | 114 |
| 115 def GenTests(api): | 115 def GenTests(api): |
| 116 config_json_main = { | 116 config_json_main = { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 "url": "http://build.chromium.org/p/tryserver.chromium.perf/builders/linux
_perf_bisect/builds/6537", | 172 "url": "http://build.chromium.org/p/tryserver.chromium.perf/builders/linux
_perf_bisect/builds/6537", |
| 173 "utcnow_utc": "Tue Jun 21 21:33:56 2016" | 173 "utcnow_utc": "Tue Jun 21 21:33:56 2016" |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 | 176 |
| 177 | 177 |
| 178 for _, master_dict in BUILDERS.items(): | 178 for _, master_dict in BUILDERS.items(): |
| 179 for buildername in master_dict.get('builders', {}): | 179 for buildername in master_dict.get('builders', {}): |
| 180 config_json = config_json_main.copy() | 180 config_json = config_json_main.copy() |
| 181 yield (api.test('basic_' + buildername) + api.properties.tryserver( | 181 yield (api.test('basic_' + buildername) + api.properties.tryserver( |
| 182 path_config='kitchen', |
| 182 mastername='tryserver.chromium.perf', | 183 mastername='tryserver.chromium.perf', |
| 183 buildername=buildername, | 184 buildername=buildername, |
| 184 patch_storage='rietveld', | 185 patch_storage='rietveld', |
| 185 patchset='20001', | 186 patchset='20001', |
| 186 issue='12345', | 187 issue='12345', |
| 187 is_test=True, | 188 is_test=True, |
| 188 rietveld="https://codereview.chromium.org") + api.override_step_data( | 189 rietveld="https://codereview.chromium.org") + api.override_step_data( |
| 189 'git diff to analyze patch', | 190 'git diff to analyze patch', |
| 190 api.raw_io.stream_output('tools/auto_bisect/bisect.cfg'))) | 191 api.raw_io.stream_output('tools/auto_bisect/bisect.cfg'))) |
| 191 | 192 |
| 192 yield ( | 193 yield ( |
| 193 api.test('basic_perf_tryjob_' + buildername) + | 194 api.test('basic_perf_tryjob_' + buildername) + |
| 194 api.properties.tryserver( | 195 api.properties.tryserver( |
| 196 path_config='kitchen', |
| 195 mastername='tryserver.chromium.perf', | 197 mastername='tryserver.chromium.perf', |
| 196 buildername=buildername, | 198 buildername=buildername, |
| 197 patch_storage='rietveld', | 199 patch_storage='rietveld', |
| 198 patchset='20001', | 200 patchset='20001', |
| 199 issue='12345', | 201 issue='12345', |
| 200 is_test=True, | 202 is_test=True, |
| 201 rietveld="https://codereview.chromium.org") + api.override_step_data( | 203 rietveld="https://codereview.chromium.org") + api.override_step_data( |
| 202 'git diff to analyze patch', | 204 'git diff to analyze patch', |
| 203 api.raw_io.stream_output('tools/run-perf-test.cfg')) + | 205 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
| 204 api.override_step_data('load config', api.json.output(config_json)) + | 206 api.override_step_data('load config', api.json.output(config_json)) + |
| 205 api.step_data('gsutil exists', retcode=1) + | 207 api.step_data('gsutil exists', retcode=1) + |
| 206 api.step_data('buildbucket.put', | 208 api.step_data('buildbucket.put', |
| 207 stdout=api.json.output(buildbucket_put_response)) + | 209 stdout=api.json.output(buildbucket_put_response)) + |
| 208 api.step_data('buildbucket.put (2)', | 210 api.step_data('buildbucket.put (2)', |
| 209 stdout=api.json.output(buildbucket_put_response)) + | 211 stdout=api.json.output(buildbucket_put_response)) + |
| 210 api.step_data('buildbucket.get', | 212 api.step_data('buildbucket.get', |
| 211 stdout=api.json.output(buildbucket_get_response)) + | 213 stdout=api.json.output(buildbucket_get_response)) + |
| 212 api.step_data('buildbucket.get (2)', | 214 api.step_data('buildbucket.get (2)', |
| 213 stdout=api.json.output(buildbucket_get_response)) + | 215 stdout=api.json.output(buildbucket_get_response)) + |
| 214 api.step_data('Performance Test (Without Patch) 1 of 1', | 216 api.step_data('Performance Test (Without Patch) 1 of 1', |
| 215 stdout=api.raw_io.output(str(results_without_patch))) + | 217 stdout=api.raw_io.output(str(results_without_patch))) + |
| 216 api.step_data('Performance Test (With Patch) 1 of 1', | 218 api.step_data('Performance Test (With Patch) 1 of 1', |
| 217 stdout=api.raw_io.output(str(results_with_patch)))) | 219 stdout=api.raw_io.output(str(results_with_patch)))) |
| 218 config_json.update({'metric': 'dummy/dummy'}) | 220 config_json.update({'metric': 'dummy/dummy'}) |
| 219 | 221 |
| 220 yield (api.test('basic_perf_tryjob_with_metric_' + buildername) + | 222 yield (api.test('basic_perf_tryjob_with_metric_' + buildername) + |
| 221 api.properties.tryserver( | 223 api.properties.tryserver( |
| 224 path_config='kitchen', |
| 222 mastername='tryserver.chromium.perf', | 225 mastername='tryserver.chromium.perf', |
| 223 buildername=buildername, | 226 buildername=buildername, |
| 224 patch_storage='rietveld', | 227 patch_storage='rietveld', |
| 225 patchset='20001', | 228 patchset='20001', |
| 226 issue='12345', | 229 issue='12345', |
| 227 is_test=True, | 230 is_test=True, |
| 228 rietveld="https://codereview.chromium.org") + api.override_step_data( | 231 rietveld="https://codereview.chromium.org") + api.override_step_data( |
| 229 'git diff to analyze patch', | 232 'git diff to analyze patch', |
| 230 api.raw_io.stream_output('tools/run-perf-test.cfg')) + | 233 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
| 231 api.override_step_data('load config', | 234 api.override_step_data('load config', |
| 232 api.json.output(config_json)) + | 235 api.json.output(config_json)) + |
| 233 api.step_data('gsutil exists', retcode=1) + | 236 api.step_data('gsutil exists', retcode=1) + |
| 234 api.step_data('buildbucket.put', | 237 api.step_data('buildbucket.put', |
| 235 stdout=api.json.output(buildbucket_put_response)) + | 238 stdout=api.json.output(buildbucket_put_response)) + |
| 236 api.step_data('buildbucket.put (2)', | 239 api.step_data('buildbucket.put (2)', |
| 237 stdout=api.json.output(buildbucket_put_response)) + | 240 stdout=api.json.output(buildbucket_put_response)) + |
| 238 api.step_data('buildbucket.get', | 241 api.step_data('buildbucket.get', |
| 239 stdout=api.json.output(buildbucket_get_response)) + | 242 stdout=api.json.output(buildbucket_get_response)) + |
| 240 api.step_data('buildbucket.get (2)', | 243 api.step_data('buildbucket.get (2)', |
| 241 stdout=api.json.output(buildbucket_get_response)) + | 244 stdout=api.json.output(buildbucket_get_response)) + |
| 242 api.step_data('Performance Test (Without Patch) 1 of 1', | 245 api.step_data('Performance Test (Without Patch) 1 of 1', |
| 243 stdout=api.raw_io.output(results_without_patch)) + | 246 stdout=api.raw_io.output(results_without_patch)) + |
| 244 api.step_data('Performance Test (With Patch) 1 of 1', | 247 api.step_data('Performance Test (With Patch) 1 of 1', |
| 245 stdout=api.raw_io.output(results_with_patch))) | 248 stdout=api.raw_io.output(results_with_patch))) |
| 246 | 249 |
| 247 yield (api.test('perf_tryjob_failed_test_' + buildername) + | 250 yield (api.test('perf_tryjob_failed_test_' + buildername) + |
| 248 api.properties.tryserver( | 251 api.properties.tryserver( |
| 252 path_config='kitchen', |
| 249 mastername='tryserver.chromium.perf', | 253 mastername='tryserver.chromium.perf', |
| 250 buildername=buildername, | 254 buildername=buildername, |
| 251 patch_storage='rietveld', | 255 patch_storage='rietveld', |
| 252 patchset='20001', | 256 patchset='20001', |
| 253 issue='12345', | 257 issue='12345', |
| 254 is_test=True, | 258 is_test=True, |
| 255 rietveld="https://codereview.chromium.org") + | 259 rietveld="https://codereview.chromium.org") + |
| 256 api.override_step_data( | 260 api.override_step_data( |
| 257 'git diff to analyze patch', | 261 'git diff to analyze patch', |
| 258 api.raw_io.stream_output('tools/run-perf-test.cfg')) + | 262 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
| 259 | 263 |
| 260 api.override_step_data('load config', api.json.output(config_json)) + | 264 api.override_step_data('load config', api.json.output(config_json)) + |
| 261 api.step_data('gsutil exists', retcode=1) + | 265 api.step_data('gsutil exists', retcode=1) + |
| 262 api.step_data('buildbucket.put', | 266 api.step_data('buildbucket.put', |
| 263 stdout=api.json.output(buildbucket_put_response)) + | 267 stdout=api.json.output(buildbucket_put_response)) + |
| 264 api.step_data('buildbucket.put (2)', | 268 api.step_data('buildbucket.put (2)', |
| 265 stdout=api.json.output(buildbucket_put_response)) + | 269 stdout=api.json.output(buildbucket_put_response)) + |
| 266 api.step_data('buildbucket.get', | 270 api.step_data('buildbucket.get', |
| 267 stdout=api.json.output(buildbucket_get_response)) + | 271 stdout=api.json.output(buildbucket_get_response)) + |
| 268 api.step_data('buildbucket.get (2)', | 272 api.step_data('buildbucket.get (2)', |
| 269 stdout=api.json.output(buildbucket_get_response)) + | 273 stdout=api.json.output(buildbucket_get_response)) + |
| 270 api.step_data('Performance Test (With Patch) 1 of 1', retcode=1)) | 274 api.step_data('Performance Test (With Patch) 1 of 1', retcode=1)) |
| 271 config_json.update({'good_revision': '306475', | 275 config_json.update({'good_revision': '306475', |
| 272 'bad_revision': '306476'}) | 276 'bad_revision': '306476'}) |
| 273 | 277 |
| 274 yield ( | 278 yield ( |
| 275 api.test('basic_perf_tryjob_with_revisions_' + buildername) + | 279 api.test('basic_perf_tryjob_with_revisions_' + buildername) + |
| 276 api.properties.tryserver( | 280 api.properties.tryserver( |
| 281 path_config='kitchen', |
| 277 mastername='tryserver.chromium.perf', | 282 mastername='tryserver.chromium.perf', |
| 278 buildername=buildername, | 283 buildername=buildername, |
| 279 patch_storage='rietveld', | 284 patch_storage='rietveld', |
| 280 patchset='20001', | 285 patchset='20001', |
| 281 issue='12345', | 286 issue='12345', |
| 282 is_test=True, | 287 is_test=True, |
| 283 rietveld="https://codereview.chromium.org") + | 288 rietveld="https://codereview.chromium.org") + |
| 284 api.override_step_data( | 289 api.override_step_data( |
| 285 'git diff to analyze patch', | 290 'git diff to analyze patch', |
| 286 api.raw_io.stream_output('tools/run-perf-test.cfg')) + | 291 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
| (...skipping 19 matching lines...) Expand all Loading... |
| 306 config_json = { | 311 config_json = { |
| 307 'max_time_minutes': '25', | 312 'max_time_minutes': '25', |
| 308 'repeat_count': '1', | 313 'repeat_count': '1', |
| 309 'truncate_percent': '25', | 314 'truncate_percent': '25', |
| 310 'target_arch': 'ia32', | 315 'target_arch': 'ia32', |
| 311 } | 316 } |
| 312 | 317 |
| 313 yield ( | 318 yield ( |
| 314 api.test('perf_tryjob_config_error_' + buildername) + | 319 api.test('perf_tryjob_config_error_' + buildername) + |
| 315 api.properties.tryserver( | 320 api.properties.tryserver( |
| 321 path_config='kitchen', |
| 316 mastername='tryserver.chromium.perf', | 322 mastername='tryserver.chromium.perf', |
| 317 buildername=buildername) + api.properties( | 323 buildername=buildername) + api.properties( |
| 318 requester='abcdxyz@chromium.org') + api.override_step_data( | 324 requester='abcdxyz@chromium.org') + api.override_step_data( |
| 319 'git diff to analyze patch', | 325 'git diff to analyze patch', |
| 320 api.raw_io.stream_output('tools/run-perf-test.cfg')) + | 326 api.raw_io.stream_output('tools/run-perf-test.cfg')) + |
| 321 api.override_step_data('load config', api.json.output(config_json))) | 327 api.override_step_data('load config', api.json.output(config_json))) |
| 322 | 328 |
| 323 yield ( | 329 yield ( |
| 324 api.test('perf_cq_run_benchmark_' + buildername) + | 330 api.test('perf_cq_run_benchmark_' + buildername) + |
| 325 api.properties.tryserver( | 331 api.properties.tryserver( |
| 332 path_config='kitchen', |
| 326 mastername='tryserver.chromium.perf', | 333 mastername='tryserver.chromium.perf', |
| 327 buildername=buildername, | 334 buildername=buildername, |
| 328 patch_storage='rietveld', | 335 patch_storage='rietveld', |
| 329 patchset='20001', | 336 patchset='20001', |
| 330 issue='12345', | 337 issue='12345', |
| 331 is_test=True, | 338 is_test=True, |
| 332 rietveld="https://codereview.chromium.org") + | 339 rietveld="https://codereview.chromium.org") + |
| 333 api.properties(requester='commit-bot@chromium.org') + | 340 api.properties(requester='commit-bot@chromium.org') + |
| 334 api.override_step_data( | 341 api.override_step_data( |
| 335 'git diff to analyze patch', | 342 'git diff to analyze patch', |
| 336 api.raw_io.stream_output('tools/perf/benchmarks/blink_perf.py')) + | 343 api.raw_io.stream_output('tools/perf/benchmarks/blink_perf.py')) + |
| 337 api.step_data('buildbucket.put', | 344 api.step_data('buildbucket.put', |
| 338 stdout=api.json.output(buildbucket_put_response)) + | 345 stdout=api.json.output(buildbucket_put_response)) + |
| 339 api.step_data('buildbucket.get', | 346 api.step_data('buildbucket.get', |
| 340 stdout=api.json.output(buildbucket_get_response))) | 347 stdout=api.json.output(buildbucket_get_response))) |
| 341 | 348 |
| 342 yield (api.test('perf_cq_no_changes_' + buildername) + | 349 yield (api.test('perf_cq_no_changes_' + buildername) + |
| 343 api.properties.tryserver( | 350 api.properties.tryserver( |
| 351 path_config='kitchen', |
| 344 mastername='tryserver.chromium.perf', | 352 mastername='tryserver.chromium.perf', |
| 345 buildername=buildername, | 353 buildername=buildername, |
| 346 patch_storage='rietveld', | 354 patch_storage='rietveld', |
| 347 patchset='20001', | 355 patchset='20001', |
| 348 issue='12345', | 356 issue='12345', |
| 349 is_test=True, | 357 is_test=True, |
| 350 rietveld="https://codereview.chromium.org") + | 358 rietveld="https://codereview.chromium.org") + |
| 351 api.properties(requester='commit-bot@chromium.org') + | 359 api.properties(requester='commit-bot@chromium.org') + |
| 352 api.override_step_data( | 360 api.override_step_data( |
| 353 'git diff to analyze patch', | 361 'git diff to analyze patch', |
| 354 api.raw_io.stream_output('tools/no_benchmark_file'))) | 362 api.raw_io.stream_output('tools/no_benchmark_file'))) |
| 355 | 363 |
| 356 yield ( | 364 yield ( |
| 357 api.test('perf_cq_no_benchmark_to_run_' + buildername) + | 365 api.test('perf_cq_no_benchmark_to_run_' + buildername) + |
| 358 api.properties.tryserver( | 366 api.properties.tryserver( |
| 367 path_config='kitchen', |
| 359 mastername='tryserver.chromium.perf', | 368 mastername='tryserver.chromium.perf', |
| 360 buildername=buildername, | 369 buildername=buildername, |
| 361 patch_storage='rietveld', | 370 patch_storage='rietveld', |
| 362 patchset='20001', | 371 patchset='20001', |
| 363 issue='12345', | 372 issue='12345', |
| 364 is_test=True, | 373 is_test=True, |
| 365 rietveld="https://codereview.chromium.org") + | 374 rietveld="https://codereview.chromium.org") + |
| 366 api.properties(requester='commit-bot@chromium.org') + | 375 api.properties(requester='commit-bot@chromium.org') + |
| 367 api.override_step_data( | 376 api.override_step_data( |
| 368 'git diff to analyze patch', | 377 'git diff to analyze patch', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 380 'repeat_count': '2', | 389 'repeat_count': '2', |
| 381 'max_time_minutes': '5', | 390 'max_time_minutes': '5', |
| 382 'truncate_percent': '25', | 391 'truncate_percent': '25', |
| 383 'bug_id': '425582', | 392 'bug_id': '425582', |
| 384 'gs_bucket': 'chrome-perf', | 393 'gs_bucket': 'chrome-perf', |
| 385 'builder_host': 'master4.golo.chromium.org', | 394 'builder_host': 'master4.golo.chromium.org', |
| 386 'builder_port': '8341' | 395 'builder_port': '8341' |
| 387 } | 396 } |
| 388 yield (api.test('basic_recipe_' + buildername) + | 397 yield (api.test('basic_recipe_' + buildername) + |
| 389 api.properties.tryserver( | 398 api.properties.tryserver( |
| 399 path_config='kitchen', |
| 390 mastername='tryserver.chromium.perf', | 400 mastername='tryserver.chromium.perf', |
| 391 buildername=buildername) + | 401 buildername=buildername) + |
| 392 api.step_data( | 402 api.step_data( |
| 393 'saving url to temp file', | 403 'saving url to temp file', |
| 394 stdout=api.raw_io.output('/tmp/dummy1')) + | 404 stdout=api.raw_io.output('/tmp/dummy1')) + |
| 395 api.step_data( | 405 api.step_data( |
| 396 'saving json to temp file', | 406 'saving json to temp file', |
| 397 stdout=api.raw_io.output('/tmp/dummy2')) + | 407 stdout=api.raw_io.output('/tmp/dummy2')) + |
| 398 api.properties( | 408 api.properties( |
| 399 bisect_config=bisect_config) + api.properties( | 409 bisect_config=bisect_config) + api.properties( |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 "serial": "03e0363a003c6ad6", | 547 "serial": "03e0363a003c6ad6", |
| 538 "usb_status": True, | 548 "usb_status": True, |
| 539 } | 549 } |
| 540 ] | 550 ] |
| 541 | 551 |
| 542 # simulate the scenario when the first tested device works | 552 # simulate the scenario when the first tested device works |
| 543 yield (api.test('local_basic_recipe_basic_device') + | 553 yield (api.test('local_basic_recipe_basic_device') + |
| 544 api.properties.tryserver( | 554 api.properties.tryserver( |
| 545 mastername='tryserver.chromium.perf', buildername=buildername) + | 555 mastername='tryserver.chromium.perf', buildername=buildername) + |
| 546 api.properties( | 556 api.properties( |
| 557 path_config='kitchen', |
| 547 bisect_config=local_bisect_config, | 558 bisect_config=local_bisect_config, |
| 548 job_name='f7a7b4135624439cbd27fdd5133d74ec', | 559 job_name='f7a7b4135624439cbd27fdd5133d74ec', |
| 549 local_test=True, | 560 local_test=True, |
| 550 parent_got_revision='1111111', | 561 parent_got_revision='1111111', |
| 551 parent_build_archive_url='gs://test-domain/test-archive.zip') + | 562 parent_build_archive_url='gs://test-domain/test-archive.zip') + |
| 552 api.bisect_tester(tempfile='/tmp/dummy') + | 563 api.bisect_tester(tempfile='/tmp/dummy') + |
| 553 api.step_data( | 564 api.step_data( |
| 554 'Gathering reference values.saving json to temp file', | 565 'Gathering reference values.saving json to temp file', |
| 555 stdout=api.raw_io.output('/tmp/dummy3')) + | 566 stdout=api.raw_io.output('/tmp/dummy3')) + |
| 556 api.step_data( | 567 api.step_data( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 574 stdout=api.json.output([[bad_revision_hash, 'ignored'], | 585 stdout=api.json.output([[bad_revision_hash, 'ignored'], |
| 575 [good_revision_hash, 'ignored']])) + | 586 [good_revision_hash, 'ignored']])) + |
| 576 api.step_data('Post bisect results', | 587 api.step_data('Post bisect results', |
| 577 stdout=api.json.output({'status_code': 200}))) | 588 stdout=api.json.output({'status_code': 200}))) |
| 578 | 589 |
| 579 # simulate the scenario when the no device is connected. | 590 # simulate the scenario when the no device is connected. |
| 580 yield (api.test('local_basic_recipe_no_device') + | 591 yield (api.test('local_basic_recipe_no_device') + |
| 581 api.properties.tryserver( | 592 api.properties.tryserver( |
| 582 mastername='tryserver.chromium.perf', buildername=buildername) + | 593 mastername='tryserver.chromium.perf', buildername=buildername) + |
| 583 api.properties( | 594 api.properties( |
| 595 path_config='kitchen', |
| 584 bisect_config=local_bisect_config, | 596 bisect_config=local_bisect_config, |
| 585 job_name='f7a7b4135624439cbd27fdd5133d74ec', | 597 job_name='f7a7b4135624439cbd27fdd5133d74ec', |
| 586 local_test=True, | 598 local_test=True, |
| 587 parent_got_revision='1111111', | 599 parent_got_revision='1111111', |
| 588 parent_build_archive_url='gs://test-domain/test-archive.zip') + | 600 parent_build_archive_url='gs://test-domain/test-archive.zip') + |
| 589 api.bisect_tester(tempfile='/tmp/dummy') + | 601 api.bisect_tester(tempfile='/tmp/dummy') + |
| 590 api.override_step_data('device_status', api.json.output([])) + | 602 api.override_step_data('device_status', api.json.output([])) + |
| 591 api.override_step_data('device_status (2)', api.json.output([]))) | 603 api.override_step_data('device_status (2)', api.json.output([]))) |
| 592 | 604 |
| 593 # simulate the scenario when tests fail not because of device | 605 # simulate the scenario when tests fail not because of device |
| 594 # disconnection. | 606 # disconnection. |
| 595 yield (api.test('local_basic_recipe_failed_device') + | 607 yield (api.test('local_basic_recipe_failed_device') + |
| 596 api.properties.tryserver( | 608 api.properties.tryserver( |
| 597 mastername='tryserver.chromium.perf', buildername=buildername) + | 609 mastername='tryserver.chromium.perf', buildername=buildername) + |
| 598 api.properties( | 610 api.properties( |
| 611 path_config='kitchen', |
| 599 bisect_config=local_bisect_config, | 612 bisect_config=local_bisect_config, |
| 600 job_name='f7a7b4135624439cbd27fdd5133d74ec', | 613 job_name='f7a7b4135624439cbd27fdd5133d74ec', |
| 601 local_test=True, | 614 local_test=True, |
| 602 parent_got_revision='1111111', | 615 parent_got_revision='1111111', |
| 603 parent_build_archive_url='gs://test-domain/test-archive.zip') + | 616 parent_build_archive_url='gs://test-domain/test-archive.zip') + |
| 604 api.bisect_tester(tempfile='/tmp/dummy') + | 617 api.bisect_tester(tempfile='/tmp/dummy') + |
| 605 api.step_data( | 618 api.step_data( |
| 606 'Gathering reference values.saving json to temp file', | 619 'Gathering reference values.saving json to temp file', |
| 607 stdout=api.raw_io.output('/tmp/dummy3')) + | 620 stdout=api.raw_io.output('/tmp/dummy3')) + |
| 608 api.step_data( | 621 api.step_data( |
| (...skipping 20 matching lines...) Expand all Loading... |
| 629 api.step_data('Post bisect results', | 642 api.step_data('Post bisect results', |
| 630 stdout=api.json.output({'status_code': 200})) + | 643 stdout=api.json.output({'status_code': 200})) + |
| 631 api.override_step_data('device_status (3)', | 644 api.override_step_data('device_status (3)', |
| 632 api.json.output(working_device))) | 645 api.json.output(working_device))) |
| 633 | 646 |
| 634 # simulate the scenario when tests fail because of device disconnection. | 647 # simulate the scenario when tests fail because of device disconnection. |
| 635 yield (api.test('local_basic_recipe_disconnected_device') + | 648 yield (api.test('local_basic_recipe_disconnected_device') + |
| 636 api.properties.tryserver( | 649 api.properties.tryserver( |
| 637 mastername='tryserver.chromium.perf', buildername=buildername) + | 650 mastername='tryserver.chromium.perf', buildername=buildername) + |
| 638 api.properties( | 651 api.properties( |
| 652 path_config='kitchen', |
| 639 bisect_config=local_bisect_config, | 653 bisect_config=local_bisect_config, |
| 640 job_name='f7a7b4135624439cbd27fdd5133d74ec', | 654 job_name='f7a7b4135624439cbd27fdd5133d74ec', |
| 641 local_test=True, | 655 local_test=True, |
| 642 parent_got_revision='1111111', | 656 parent_got_revision='1111111', |
| 643 parent_build_archive_url='gs://test-domain/test-archive.zip') + | 657 parent_build_archive_url='gs://test-domain/test-archive.zip') + |
| 644 api.bisect_tester(tempfile='/tmp/dummy') + | 658 api.bisect_tester(tempfile='/tmp/dummy') + |
| 645 api.step_data( | 659 api.step_data( |
| 646 'Gathering reference values.saving json to temp file', | 660 'Gathering reference values.saving json to temp file', |
| 647 stdout=api.raw_io.output('/tmp/dummy3')) + | 661 stdout=api.raw_io.output('/tmp/dummy3')) + |
| 648 api.step_data( | 662 api.step_data( |
| (...skipping 26 matching lines...) Expand all Loading... |
| 675 # multiple_device_status | 689 # multiple_device_status |
| 676 api.step_data('Debug Info', retcode=1) + | 690 api.step_data('Debug Info', retcode=1) + |
| 677 api.override_step_data('device_status (3)', | 691 api.override_step_data('device_status (3)', |
| 678 api.json.output(working_device)) + | 692 api.json.output(working_device)) + |
| 679 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( | 693 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( |
| 680 good_revision_hash, bad_revision_hash), | 694 good_revision_hash, bad_revision_hash), |
| 681 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ | 695 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ |
| 682 good_revision_hash, 'ignored']])) + | 696 good_revision_hash, 'ignored']])) + |
| 683 api.step_data('Post bisect results', | 697 api.step_data('Post bisect results', |
| 684 stdout=api.json.output({'status_code': 200}))) | 698 stdout=api.json.output({'status_code': 200}))) |
| OLD | NEW |