Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: scripts/slave/recipe_modules/chromium_tests/api.py

Issue 1414053007: add receipes for goma staging (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 ast 5 import ast
6 import contextlib 6 import contextlib
7 import copy 7 import copy
8 import itertools 8 import itertools
9 import json 9 import json
10 10
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 got_revision), 514 got_revision),
515 build_archive_url=specified_url) 515 build_archive_url=specified_url)
516 516
517 if (self.m.chromium.c.TARGET_PLATFORM == 'android' and 517 if (self.m.chromium.c.TARGET_PLATFORM == 'android' and
518 bot_config.get('root_devices')): 518 bot_config.get('root_devices')):
519 self.m.adb.root_devices() 519 self.m.adb.root_devices()
520 520
521 # TODO(shinyak): bot_config.get('tests', []) sometimes return tuple. 521 # TODO(shinyak): bot_config.get('tests', []) sometimes return tuple.
522 tests = list(bot_config.get('tests', [])) 522 tests = list(bot_config.get('tests', []))
523 523
524 if bot_config.get('goma_canary'): 524 if bot_config.get('goma_canary') or bot_config.get('goma_staging'):
525 tests.insert(0, steps.DiagnoseGomaTest()) 525 tests.insert(0, steps.DiagnoseGomaTest())
526 526
527 if bot_type in ('tester', 'builder_tester'): 527 if bot_type in ('tester', 'builder_tester'):
528 isolated_targets = [t.isolate_target for t in tests if t.uses_swarming] 528 isolated_targets = [t.isolate_target for t in tests if t.uses_swarming]
529 if isolated_targets: 529 if isolated_targets:
530 self.m.isolate.find_isolated_tests(self.m.chromium.output_dir) 530 self.m.isolate.find_isolated_tests(self.m.chromium.output_dir)
531 531
532 return tests 532 return tests
533 533
534 def _make_legacy_build_url(self, master_config, mastername): 534 def _make_legacy_build_url(self, master_config, mastername):
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 result_text = 'MB is enabled for this builder at this revision.' 807 result_text = 'MB is enabled for this builder at this revision.'
808 log_name = 'Builder MB-ready' 808 log_name = 'Builder MB-ready'
809 self.m.step.active_result.presentation.logs[log_name] = [result_text] 809 self.m.step.active_result.presentation.logs[log_name] = [result_text]
810 return False 810 return False
811 except (self.m.step.StepFailure, KeyError): 811 except (self.m.step.StepFailure, KeyError):
812 result_text = 'MB is not enabled for this builder at this revision.' 812 result_text = 'MB is not enabled for this builder at this revision.'
813 log_name = 'Builder NOT MB-ready' 813 log_name = 'Builder NOT MB-ready'
814 self.m.step.active_result.presentation.logs[log_name] = [result_text] 814 self.m.step.active_result.presentation.logs[log_name] = [result_text]
815 self.m.step.active_result.presentation.status = self.m.step.WARNING 815 self.m.step.active_result.presentation.status = self.m.step.WARNING
816 return True 816 return True
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/chromium/config.py ('k') | scripts/slave/recipe_modules/chromium_tests/builders.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698