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

Side by Side Diff: masters/master.chromium.memory/master_win_cfg.py

Issue 11379003: Add Windows ASAN bots. (Closed) Base URL: http://git.chromium.org/chromium/tools/build.git@neuter
Patch Set: Rebase, tweaks, lint Created 8 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
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from master import master_config
6 from master.factory import chromium_factory
7
8 defaults = {}
9
10 helper = master_config.Helper(defaults)
11 B = helper.Builder
12 F = helper.Factory
13 S = helper.Scheduler
14 T = helper.Triggerable
15
16 def win():
17 return chromium_factory.ChromiumFactory('src/out', 'win32')
18
19 defaults['category'] = '4win asan'
20
21 #
22 # Main asan release scheduler for src/
23 #
24 S('win_asan_rel', branch='src', treeStableTimer=60)
25
26 #
27 # Triggerable scheduler for the rel asan builder
28 #
29 T('win_asan_rel_trigger')
30
31 win_asan_archive = master_config.GetArchiveUrl('ChromiumMemory',
32 'Win ASAN Builder',
33 'Win_ASAN_Builder',
34 'win32')
35
36 # tests_1 and tests_2 are lists like:
37 # (build_target_name, test_name)
38 # This would be much less ugly if there was a naming convention in place for
39 # these things.
40 tests_1 = \
41 [
42 (x+'_unittests', x) for x in [
43 'base',
44 'cacheinvalidation',
45 'crypto',
46 'gpu',
47 'jingle',
48 'net']
49 ]+[
50 (x+'_tests', x) for x in [
51 'safe_browsing']
52 ]+[
53 (x, x) for x in [
54 'browser_tests']
55 ]
56
57 tests_2 = \
58 [
59 (x+'_unittests', x) for x in [
60 'googleurl',
61 'media',
62 'printing',
63 'remoting']
64 ]+[
65 (x+'_tests', x) for x in [
66 'unit']
67 ]+[
68 (x, x) for x in [
69 'browser_tests',
70 'content_browsertests',
71 'ppapi_unittests']
72 ]
73
74 #
75 # Windows ASAN Rel Builder
76 #
77 B('Win ASAN Builder', 'win_asan_rel', 'compile', 'win_asan_rel',
78 auto_reboot=False, notify_on_missing=True)
79 F('win_asan_rel', win().ChromiumASANFactory(
80 slave_type='Builder',
81 options=[
82 '--compiler=goma',
83 '--build-tool=ninja',
84 ]+list( # extract the build target names from the tests_[12]
85 zip(*tests_1)[0]
86 )+list(
87 zip(*tests_2)[0]
88 ),
89 compile_timeout=4800,
90 factory_properties={
91 'asan': True,
92 'gclient_env': {
93 'GYP_DEFINES': ('asan=1 win_z7=1 chromium_win_pch=0 '
94 'component=static_library '),
95 'GYP_GENERATORS': 'ninja', },
96 'trigger': 'win_asan_rel_trigger' }))
97
98 #
99 # Win ASAN Rel testers
100 #
101 B('Win ASAN Tests (1)', 'win_asan_rel_tests_1', 'testers',
102 'win_asan_rel_trigger', notify_on_missing=True)
103 F('win_asan_rel_tests_1', win().ChromiumASANFactory(
104 slave_type='Tester',
105 build_url=win_asan_archive,
106 tests=list(zip(*tests_1)[1]), # extract the tests from tests_1
107 factory_properties={'asan': True,
108 'browser_total_shards': 2,
109 'browser_shard_index': 1 }))
110
111 B('Win ASAN Tests (2)', 'win_asan_rel_tests_2', 'testers',
112 'win_asan_rel_trigger', notify_on_missing=True)
113 F('win_asan_rel_tests_2', win().ChromiumASANFactory(
114 slave_type='Tester',
115 build_url=win_asan_archive,
116 tests=list(zip(*tests_2)[1]), # extract the tests from tests_2
117 factory_properties={'asan': True,
118 'browser_total_shards': 2,
119 'browser_shard_index': 2 }))
120
121 def Update(config, active_master, c):
122 return helper.Update(c)
123
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698