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

Side by Side Diff: scripts/slave/recipes/legion/legion.py

Issue 2319853002: Remove ignored bot_update "force" parameter. (Closed)
Patch Set: rebase Created 4 years, 3 months 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 (c) 2014 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 """Launches Legion tests.""" 5 """Launches Legion tests."""
6 6
7 from recipe_engine.types import freeze 7 from recipe_engine.types import freeze
8 8
9 DEPS = [ 9 DEPS = [
10 'depot_tools/bot_update', 10 'depot_tools/bot_update',
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 }, 51 },
52 }) 52 })
53 53
54 54
55 def RunSteps(api): 55 def RunSteps(api):
56 api.isolate.isolate_server = ( 56 api.isolate.isolate_server = (
57 'https://omnibot-legion-isolate-server.appspot.com') 57 'https://omnibot-legion-isolate-server.appspot.com')
58 api.swarming.swarming_server = ( 58 api.swarming.swarming_server = (
59 'https://omnibot-legion-swarming-server.appspot.com') 59 'https://omnibot-legion-swarming-server.appspot.com')
60 api.gclient.set_config('chromium') 60 api.gclient.set_config('chromium')
61 api.bot_update.ensure_checkout(force=True) 61 api.bot_update.ensure_checkout()
62 62
63 for name, config in CONFIGS.iteritems(): 63 for name, config in CONFIGS.iteritems():
64 controller = api.legion.create_controller( 64 controller = api.legion.create_controller(
65 name=name, 65 name=name,
66 path=api.path['checkout'].join(*config['controller_path']), 66 path=api.path['checkout'].join(*config['controller_path']),
67 os='Linux', 67 os='Linux',
68 config_vars=config['config_vars'], 68 config_vars=config['config_vars'],
69 controller_vars=config['controller_vars'] 69 controller_vars=config['controller_vars']
70 ) 70 )
71 71
72 for name, path in config['task_paths'].iteritems(): 72 for name, path in config['task_paths'].iteritems():
73 api.legion.add_task_to_controller( 73 api.legion.add_task_to_controller(
74 controller=controller, 74 controller=controller,
75 name=name, 75 name=name,
76 path=api.path['checkout'].join(*path), 76 path=api.path['checkout'].join(*path),
77 config_vars=config['config_vars'] 77 config_vars=config['config_vars']
78 ) 78 )
79 79
80 api.legion.execute(controller) 80 api.legion.execute(controller)
81 81
82 82
83 def GenTests(api): 83 def GenTests(api):
84 yield api.test('basic') + api.properties.generic() 84 yield api.test('basic') + api.properties.generic()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698