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 import re | 5 import re |
6 | 6 |
7 from . import bisect_results | 7 from . import bisect_results |
8 from . import depot_config | 8 from . import depot_config |
9 | 9 |
10 _DEPS_SHA_PATCH = """ | 10 _DEPS_SHA_PATCH = """ |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 for revision in revision_list: | 391 for revision in revision_list: |
392 revision.update_status() | 392 revision.update_status() |
393 | 393 |
394 def sleep_until_next_revision_ready(self, revision_list): | 394 def sleep_until_next_revision_ready(self, revision_list): |
395 """Produces a single step that sleeps until any revision makes progress. | 395 """Produces a single step that sleeps until any revision makes progress. |
396 | 396 |
397 A revision is considered to make progress when a build file is uploaded to | 397 A revision is considered to make progress when a build file is uploaded to |
398 the appropriate bucket, or when buildbot test job is complete. | 398 the appropriate bucket, or when buildbot test job is complete. |
399 """ | 399 """ |
400 gsutil_path = self.api.m.gsutil.get_gsutil_path() | 400 gsutil_path = self.api.m.gsutil.get_gsutil_path() |
401 name = 'Waiting for any of these revisions:' + ' '.join( | 401 name = 'Waiting for revision ' + revision_list[0].revision_string |
402 [r.revision_string for r in revision_list]) | 402 if len(revision_list) > 1: |
| 403 name += ' and %d other revision(s).' % (len(revision_list) - 1) |
403 script = self.api.resource('wait_for_any.py') | 404 script = self.api.resource('wait_for_any.py') |
404 args_list = [gsutil_path] | 405 args_list = [gsutil_path] |
405 url_list = [r.get_next_url() for r in revision_list] | 406 url_list = [r.get_next_url() for r in revision_list] |
406 args_list += [url for url in url_list if url and url is not None] | 407 args_list += [url for url in url_list if url and url is not None] |
407 self.api.m.python(str(name), script, args_list) | 408 self.api.m.python(str(name), script, args_list) |
408 | 409 |
409 def wait_for_any(self, revision_list): | 410 def wait_for_any(self, revision_list): |
410 """Waits for any of the revisions in the list to finish its job(s).""" | 411 """Waits for any of the revisions in the list to finish its job(s).""" |
411 while True: | 412 while True: |
412 if not revision_list or not any( | 413 if not revision_list or not any( |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 return 'linux_perf_tester' | 457 return 'linux_perf_tester' |
457 | 458 |
458 def get_builder_bot_for_this_platform(self): | 459 def get_builder_bot_for_this_platform(self): |
459 # TODO: Actually look at the current platform. | 460 # TODO: Actually look at the current platform. |
460 return 'linux_perf_bisect_builder' | 461 return 'linux_perf_bisect_builder' |
461 | 462 |
462 def get_platform_gs_prefix(self): | 463 def get_platform_gs_prefix(self): |
463 # TODO: Actually check the current platform | 464 # TODO: Actually check the current platform |
464 return 'gs://chrome-perf/Linux Builder/full-build-linux_' | 465 return 'gs://chrome-perf/Linux Builder/full-build-linux_' |
465 | 466 |
OLD | NEW |