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

Side by Side Diff: scripts/slave/recipe_modules/chromium/config.py

Issue 2430193003: WebRTC: Remove Dr Memory bots. (Closed)
Patch Set: Addressed comments. Created 4 years, 2 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
« no previous file with comments | « masters/master.tryserver.webrtc/slaves.cfg ('k') | scripts/slave/recipe_modules/webrtc/api.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 pipes 5 import pipes
6 6
7 from recipe_engine.config import config_item_context, ConfigGroup 7 from recipe_engine.config import config_item_context, ConfigGroup
8 from recipe_engine.config import Dict, List, Single, Static, Set, BadConf 8 from recipe_engine.config import Dict, List, Single, Static, Set, BadConf
9 from recipe_engine.config_types import Path 9 from recipe_engine.config_types import Path
10 10
11 # Because of the way that we use decorators, pylint can't figure out the proper 11 # Because of the way that we use decorators, pylint can't figure out the proper
12 # type signature of functions annotated with the @config_ctx decorator. 12 # type signature of functions annotated with the @config_ctx decorator.
13 # pylint: disable=E1123 13 # pylint: disable=E1123
14 14
15 HOST_PLATFORMS = ('linux', 'win', 'mac') 15 HOST_PLATFORMS = ('linux', 'win', 'mac')
16 TARGET_PLATFORMS = HOST_PLATFORMS + ('ios', 'android', 'chromeos') 16 TARGET_PLATFORMS = HOST_PLATFORMS + ('ios', 'android', 'chromeos')
17 HOST_TARGET_BITS = (32, 64) 17 HOST_TARGET_BITS = (32, 64)
18 HOST_ARCHS = ('intel',) 18 HOST_ARCHS = ('intel',)
19 TARGET_ARCHS = HOST_ARCHS + ('arm', 'mips', 'mipsel') 19 TARGET_ARCHS = HOST_ARCHS + ('arm', 'mips', 'mipsel')
20 TARGET_CROS_BOARDS = (None, 'x86-generic') 20 TARGET_CROS_BOARDS = (None, 'x86-generic')
21 BUILD_CONFIGS = ('Release', 'Debug', 'Coverage') 21 BUILD_CONFIGS = ('Release', 'Debug', 'Coverage')
22 MEMORY_TOOLS = ('memcheck', 'drmemory_full', 'drmemory_light') 22 MEMORY_TOOLS = ('memcheck',)
kjellander_chromium 2016/10/19 14:09:18 Can you remove this now? I think we can use an ena
23 PROJECT_GENERATORS = ('gyp', 'gn', 'mb') 23 PROJECT_GENERATORS = ('gyp', 'gn', 'mb')
24 24
25 def check(val, potentials): 25 def check(val, potentials):
26 assert val in potentials, (val, potentials) 26 assert val in potentials, (val, potentials)
27 return val 27 return val
28 28
29 # Schema for config items in this module. 29 # Schema for config items in this module.
30 def BaseConfig(HOST_PLATFORM, HOST_ARCH, HOST_BITS, 30 def BaseConfig(HOST_PLATFORM, HOST_ARCH, HOST_BITS,
31 TARGET_PLATFORM, TARGET_ARCH, TARGET_BITS, 31 TARGET_PLATFORM, TARGET_ARCH, TARGET_BITS,
32 BUILD_CONFIG, TARGET_CROS_BOARD, 32 BUILD_CONFIG, TARGET_CROS_BOARD,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 project_generator = ConfigGroup( 75 project_generator = ConfigGroup(
76 tool = Single(basestring, empty_val='gyp'), 76 tool = Single(basestring, empty_val='gyp'),
77 args = Set(basestring), 77 args = Set(basestring),
78 ), 78 ),
79 build_dir = Single(Path), 79 build_dir = Single(Path),
80 cros_sdk = ConfigGroup( 80 cros_sdk = ConfigGroup(
81 external = Single(bool, empty_val=True, required=False), 81 external = Single(bool, empty_val=True, required=False),
82 args = List(basestring), 82 args = List(basestring),
83 ), 83 ),
84 runtests = ConfigGroup( 84 runtests = ConfigGroup(
85 memory_tool = Single(basestring, required=False), 85 memory_tool = Single(basestring, required=False),
kjellander_chromium 2016/10/19 14:09:18 can you refactor this to: enable_memcheck = Single
86 memory_tests_runner = Single(Path), 86 memory_tests_runner = Single(Path),
87 enable_lsan = Single(bool, empty_val=False, required=False), 87 enable_lsan = Single(bool, empty_val=False, required=False),
88 test_args = List(basestring), 88 test_args = List(basestring),
89 run_asan_test = Single(bool, required=False), 89 run_asan_test = Single(bool, required=False),
90 swarming_extra_args = List(basestring), 90 swarming_extra_args = List(basestring),
91 swarming_tags = Set(basestring), 91 swarming_tags = Set(basestring),
92 ), 92 ),
93 93
94 # Some platforms do not have a 1:1 correlation of BUILD_CONFIG to what is 94 # Some platforms do not have a 1:1 correlation of BUILD_CONFIG to what is
95 # passed as --target on the command line. 95 # passed as --target on the command line.
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 476
477 @config_ctx( 477 @config_ctx(
478 deps=['compiler'], group='memory_tool', includes=['syzyasan_compile_only']) 478 deps=['compiler'], group='memory_tool', includes=['syzyasan_compile_only'])
479 def syzyasan(c): 479 def syzyasan(c):
480 if c.gyp_env.GYP_DEFINES['component'] != 'static_library': # pragma: no cover 480 if c.gyp_env.GYP_DEFINES['component'] != 'static_library': # pragma: no cover
481 raise BadConf('SyzyASan requires component=static_library') 481 raise BadConf('SyzyASan requires component=static_library')
482 gyp_defs = c.gyp_env.GYP_DEFINES 482 gyp_defs = c.gyp_env.GYP_DEFINES
483 gyp_defs['win_z7'] = 1 483 gyp_defs['win_z7'] = 1
484 gyp_defs['chromium_win_pch'] = 0 484 gyp_defs['chromium_win_pch'] = 0
485 485
486 @config_ctx(group='memory_tool')
487 def drmemory_full(c):
488 _memory_tool(c, 'drmemory_full')
489 c.gyp_env.GYP_DEFINES['build_for_tool'] = 'drmemory'
490
491 @config_ctx(group='memory_tool')
492 def drmemory_light(c):
493 _memory_tool(c, 'drmemory_light')
494 c.gyp_env.GYP_DEFINES['build_for_tool'] = 'drmemory'
495
496 def _memory_tool(c, tool): 486 def _memory_tool(c, tool):
kjellander_chromium 2016/10/19 14:09:18 I suggest we can remove this too.
497 if tool not in MEMORY_TOOLS: # pragma: no cover 487 if tool not in MEMORY_TOOLS: # pragma: no cover
498 raise BadConf('"%s" is not a supported memory tool, the supported ones ' 488 raise BadConf('"%s" is not a supported memory tool, the supported ones '
499 'are: %s' % (tool, ','.join(MEMORY_TOOLS))) 489 'are: %s' % (tool, ','.join(MEMORY_TOOLS)))
500 c.runtests.memory_tool = tool 490 c.runtests.memory_tool = tool
501 491
502 @config_ctx() 492 @config_ctx()
503 def lto(c): 493 def lto(c):
504 c.lto = True 494 c.lto = True
505 495
506 @config_ctx(includes=['lto']) 496 @config_ctx(includes=['lto'])
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 def cast_linux(c): 794 def cast_linux(c):
805 c.gyp_env.GYP_DEFINES['chromecast'] = 1 795 c.gyp_env.GYP_DEFINES['chromecast'] = 1
806 796
807 @config_ctx() 797 @config_ctx()
808 def internal_gles2_conform_tests(c): 798 def internal_gles2_conform_tests(c):
809 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 799 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1
810 800
811 @config_ctx() 801 @config_ctx()
812 def build_angle_deqp_tests(c): 802 def build_angle_deqp_tests(c):
813 c.gyp_env.GYP_DEFINES['build_angle_deqp_tests'] = 1 803 c.gyp_env.GYP_DEFINES['build_angle_deqp_tests'] = 1
OLDNEW
« no previous file with comments | « masters/master.tryserver.webrtc/slaves.cfg ('k') | scripts/slave/recipe_modules/webrtc/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698