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

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

Issue 1858343002: Give the clang upload bots shorter names. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build@master
Patch Set: . Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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',
11 'gsutil', 11 'gsutil',
12 'recipe_engine/path', 12 'recipe_engine/path',
13 'recipe_engine/platform', 13 'recipe_engine/platform',
14 'recipe_engine/properties', 14 'recipe_engine/properties',
15 'recipe_engine/python', 15 'recipe_engine/python',
16 'recipe_engine/step', 16 'recipe_engine/step',
17 ] 17 ]
18 18
19 19
20 BUILDERS = freeze({ 20 BUILDERS = freeze({
21 'tryserver.chromium.linux': { 21 'tryserver.chromium.linux': {
22 'builders': { 22 'builders': {
23 'linux_chromium_clang_upload': { 23 'linux_upload_clang': {
24 'chromium_config_kwargs': { 24 'chromium_config_kwargs': {
25 'BUILD_CONFIG': 'Release', 25 'BUILD_CONFIG': 'Release',
26 'TARGET_PLATFORM': 'linux', 26 'TARGET_PLATFORM': 'linux',
27 'TARGET_BITS': 64, 27 'TARGET_BITS': 64,
28 }, 28 },
29 29
30 # We need this to build the Clang toolchain 30 # We need this to build the Clang toolchain
31 # with proper AddressSanitizer prebuilts for 31 # with proper AddressSanitizer prebuilts for
32 # Chrome on Android. 32 # Chrome on Android.
33 'gclient_apply_config': ['android'], 33 'gclient_apply_config': ['android'],
34 }, 34 },
35 }, 35 },
36 }, 36 },
37 'tryserver.chromium.mac': { 37 'tryserver.chromium.mac': {
38 'builders': { 38 'builders': {
39 'mac_chromium_clang_upload': { 39 'mac_upload_clang': {
40 'chromium_config_kwargs': { 40 'chromium_config_kwargs': {
41 'BUILD_CONFIG': 'Release', 41 'BUILD_CONFIG': 'Release',
42 'TARGET_PLATFORM': 'mac', 42 'TARGET_PLATFORM': 'mac',
43 'TARGET_BITS': 64, 43 'TARGET_BITS': 64,
44 }, 44 },
45 }, 45 },
46 }, 46 },
47 }, 47 },
48 'tryserver.chromium.win': { 48 'tryserver.chromium.win': {
49 'builders': { 49 'builders': {
50 'win_chromium_clang_upload': { 50 'win_upload_clang': {
51 'chromium_config_kwargs': { 51 'chromium_config_kwargs': {
52 'BUILD_CONFIG': 'Release', 52 'BUILD_CONFIG': 'Release',
53 'TARGET_PLATFORM': 'win', 53 'TARGET_PLATFORM': 'win',
54 'TARGET_BITS': 32, 54 'TARGET_BITS': 32,
55 }, 55 },
56 }, 56 },
57 }, 57 },
58 }, 58 },
59 }) 59 })
60 60
61 61
62 def RunSteps(api): 62 def RunSteps(api):
63 _, bot_config = api.chromium.configure_bot(BUILDERS) 63 _, bot_config = api.chromium.configure_bot(BUILDERS)
64 64
65 api.bot_update.ensure_checkout( 65 api.bot_update.ensure_checkout(
66 force=True, patch_root=bot_config.get('root_override')) 66 force=True, patch_root=bot_config.get('root_override'))
67 67
68 api.python('download binutils', 68 api.python('download binutils',
69 api.path['checkout'].join('third_party', 'binutils', 'download.py')) 69 api.path['checkout'].join('third_party', 'binutils', 'download.py'))
70 70
71 api.python( 71 api.python(
72 'package clang', 72 'package clang',
73 api.path['checkout'].join('tools', 'clang', 'scripts', 'package.py'), 73 api.path['checkout'].join('tools', 'clang', 'scripts', 'package.py'),
74 args=['--upload']) 74 args=['--upload'])
75 75
76 76
77 def GenTests(api): 77 def GenTests(api):
78 for test in api.chromium.gen_tests_for_builders(BUILDERS): 78 for test in api.chromium.gen_tests_for_builders(BUILDERS):
79 yield test 79 yield test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698