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

Side by Side Diff: scripts/slave/recipes/chromium_gn_upload.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 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 from recipe_engine.types import freeze 5 from recipe_engine.types import freeze
6 6
7 DEPS = [ 7 DEPS = [
8 'depot_tools/bot_update', 8 'depot_tools/bot_update',
9 'chromium', 9 'chromium',
10 'file', 10 'file',
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 }, 59 },
60 }) 60 })
61 61
62 62
63 def RunSteps(api): 63 def RunSteps(api):
64 mastername = api.m.properties['mastername'] 64 mastername = api.m.properties['mastername']
65 buildername, bot_config = api.chromium.configure_bot(BUILDERS, 65 buildername, bot_config = api.chromium.configure_bot(BUILDERS,
66 ['gn_for_uploads', 'mb']) 66 ['gn_for_uploads', 'mb'])
67 67
68 api.bot_update.ensure_checkout( 68 api.bot_update.ensure_checkout(
69 force=True, patch_root=bot_config.get('root_override')) 69 patch_root=bot_config.get('root_override'))
70 70
71 api.chromium.ensure_goma() 71 api.chromium.ensure_goma()
72 72
73 api.chromium.runhooks() 73 api.chromium.runhooks()
74 74
75 api.chromium.run_mb(mastername, buildername) 75 api.chromium.run_mb(mastername, buildername)
76 76
77 api.chromium.compile(targets=['gn', 'gn_unittests']) 77 api.chromium.compile(targets=['gn', 'gn_unittests'])
78 78
79 path_to_binary = str(api.path['checkout'].join('out', 'Release', 'gn')) 79 path_to_binary = str(api.path['checkout'].join('out', 'Release', 'gn'))
(...skipping 12 matching lines...) Expand all
92 ['-b', 'chromium-gn', path_to_binary]) 92 ['-b', 'chromium-gn', path_to_binary])
93 93
94 sha1 = api.file.read('gn sha1', path_to_binary + '.sha1', 94 sha1 = api.file.read('gn sha1', path_to_binary + '.sha1',
95 test_data='0123456789abcdeffedcba987654321012345678') 95 test_data='0123456789abcdeffedcba987654321012345678')
96 api.step.active_result.presentation.step_text = sha1 96 api.step.active_result.presentation.step_text = sha1
97 97
98 98
99 def GenTests(api): 99 def GenTests(api):
100 for test in api.chromium.gen_tests_for_builders(BUILDERS): 100 for test in api.chromium.gen_tests_for_builders(BUILDERS):
101 yield test 101 yield test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698