| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 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 collections import defaultdict | 5 from collections import defaultdict |
| 6 import json | 6 import json |
| 7 | 7 |
| 8 from recipe_engine.config import Dict | 8 from recipe_engine.config import Dict |
| 9 from recipe_engine.config import List | 9 from recipe_engine.config import List |
| 10 from recipe_engine.config import Single | 10 from recipe_engine.config import Single |
| 11 from recipe_engine.recipe_api import Property | 11 from recipe_engine.recipe_api import Property |
| 12 | 12 |
| 13 | 13 |
| 14 DEPS = [ | 14 DEPS = [ |
| 15 'adb', | 15 'adb', |
| 16 'buildbucket', | 16 'buildbucket', |
| 17 'depot_tools/bot_update', | 17 'depot_tools/bot_update', |
| 18 'chromium', | 18 'chromium', |
| 19 'chromium_android', | 19 'chromium_android', |
| 20 'chromium_swarming', |
| 20 'chromium_tests', | 21 'chromium_tests', |
| 21 'commit_position', | 22 'commit_position', |
| 22 'findit', | 23 'findit', |
| 23 'depot_tools/gclient', | 24 'depot_tools/gclient', |
| 24 'isolate', | 25 'isolate', |
| 25 'recipe_engine/json', | 26 'recipe_engine/json', |
| 26 'recipe_engine/path', | 27 'recipe_engine/path', |
| 27 'recipe_engine/platform', | 28 'recipe_engine/platform', |
| 28 'recipe_engine/properties', | 29 'recipe_engine/properties', |
| 29 'recipe_engine/python', | 30 'recipe_engine/python', |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 target_mastername, target_buildername) | 227 target_mastername, target_buildername) |
| 227 api.chromium_tests.configure_build( | 228 api.chromium_tests.configure_build( |
| 228 bot_config, override_bot_type='builder_tester') | 229 bot_config, override_bot_type='builder_tester') |
| 229 | 230 |
| 230 # Configure to match the test config on the tester, as builders don't have the | 231 # Configure to match the test config on the tester, as builders don't have the |
| 231 # settings for swarming tests. | 232 # settings for swarming tests. |
| 232 if target_buildername != target_testername: | 233 if target_buildername != target_testername: |
| 233 for key, value in tester_config.get('swarming_dimensions', {}).iteritems(): | 234 for key, value in tester_config.get('swarming_dimensions', {}).iteritems(): |
| 234 api.swarming.set_default_dimension(key, value) | 235 api.swarming.set_default_dimension(key, value) |
| 235 # TODO(stgao): Fix the issue that precommit=False adds the tag 'purpose:CI'. | 236 # TODO(stgao): Fix the issue that precommit=False adds the tag 'purpose:CI'. |
| 236 api.chromium_tests.configure_swarming('chromium', precommit=False) | 237 api.chromium_swarming.configure_swarming('chromium', precommit=False) |
| 237 | 238 |
| 238 # Sync to bad revision, and retrieve revisions in the regression range. | 239 # Sync to bad revision, and retrieve revisions in the regression range. |
| 239 api.chromium_tests.prepare_checkout( | 240 api.chromium_tests.prepare_checkout( |
| 240 bot_config, | 241 bot_config, |
| 241 root_solution_revision=bad_revision) | 242 root_solution_revision=bad_revision) |
| 242 revisions_to_check = api.findit.revisions_between(good_revision, bad_revision) | 243 revisions_to_check = api.findit.revisions_between(good_revision, bad_revision) |
| 243 | 244 |
| 244 suspected_revision_index = [ | 245 suspected_revision_index = [ |
| 245 revisions_to_check.index(r) | 246 revisions_to_check.index(r) |
| 246 for r in set(suspected_revisions) if r in revisions_to_check] | 247 for r in set(suspected_revisions) if r in revisions_to_check] |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 'git commits in range', | 1204 'git commits in range', |
| 1204 api.raw_io.stream_output( | 1205 api.raw_io.stream_output( |
| 1205 '\n'.join('r%d' % i for i in reversed(range(1, 7))))) + | 1206 '\n'.join('r%d' % i for i in reversed(range(1, 7))))) + |
| 1206 api.override_step_data( | 1207 api.override_step_data( |
| 1207 'test r2.gl_tests (r2) on Mac-10.9', | 1208 'test r2.gl_tests (r2) on Mac-10.9', |
| 1208 simulated_gtest_output(passed_test_names=['Test.One'])) + | 1209 simulated_gtest_output(passed_test_names=['Test.One'])) + |
| 1209 api.override_step_data( | 1210 api.override_step_data( |
| 1210 'test r3.gl_tests (r3) on Mac-10.9', | 1211 'test r3.gl_tests (r3) on Mac-10.9', |
| 1211 simulated_gtest_output(failed_test_names=['Test.One'])) | 1212 simulated_gtest_output(failed_test_names=['Test.One'])) |
| 1212 ) | 1213 ) |
| OLD | NEW |