OLD | NEW |
| (Empty) |
1 # Copyright (c) 2010 The Chromium OS 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 """Dictionary of configuration types for cbuildbot. | |
6 | |
7 Each dictionary entry is in turn a dictionary of config_param->value. | |
8 | |
9 config_param's: | |
10 board -- The board of the image to build. | |
11 | |
12 master -- This bot pushes changes to the overlays. | |
13 important -- Master bot uses important bots to determine overall status. | |
14 i.e. if master bot succeeds and other important slaves succeed | |
15 then the master will uprev packages. This should align | |
16 with info vs. closer except for the master.and options.tests | |
17 hostname -- Needed for 'important' slaves. The hostname of the bot. Should | |
18 match hostname in slaves.cfg in buildbot checkout. | |
19 | |
20 uprev -- Uprevs the local ebuilds to build new changes since last stable. | |
21 build. If master then also pushes these changes on success. | |
22 rev_overlays -- Select what overlays to look at for revving. This can be | |
23 'public', 'private' or 'both'. | |
24 push_overlays -- Select what overlays to push at. This should be a subset of | |
25 rev_overlays for the particular builder. Must be None if | |
26 not a master. There should only be one master bot pushing | |
27 changes to each overlay per branch. | |
28 | |
29 unittests -- Runs unittests for packages. | |
30 vm_tests -- Runs the smoke suite and au test harness in a qemu-based VM | |
31 using KVM. | |
32 | |
33 usepkg -- Use binary packages to bootstrap, when possible. (emerge --usepkg) | |
34 chroot_replace -- wipe and replace chroot, but not source. | |
35 | |
36 archive_build -- Do we run archive_build.sh | |
37 test_mod -- Create a test mod image for archival. | |
38 factory_install_mod -- Create a factory install image for archival. | |
39 factory_test_mod -- Create a factory test image for archival. | |
40 """ | |
41 | |
42 # TODO(dgarrett) Make test_mod, factory_install_mod, factory_test_mod options | |
43 # go away when these options work for arm. | |
44 | |
45 default = { | |
46 # 'board' No default value | |
47 | |
48 'master' : False, | |
49 'important' : False, | |
50 # 'hostname' No default value | |
51 | |
52 'uprev' : False, | |
53 'rev_overlays': 'public', | |
54 'push_overlays': None, | |
55 | |
56 'unittests' : True, | |
57 'vm_tests' : True, | |
58 | |
59 'usepkg' : True, | |
60 'chroot_replace' : False, | |
61 | |
62 'archive_build' : False, | |
63 'test_mod' : True, | |
64 'factory_install_mod' : True, | |
65 'factory_test_mod' : True, | |
66 } | |
67 | |
68 arm = { | |
69 # VM/tests are broken on arm. | |
70 'unittests' : False, | |
71 'vm_tests' : False, | |
72 | |
73 # These images don't work for arm. | |
74 'factory_install_mod' : False, | |
75 'factory_test_mod' : False, | |
76 } | |
77 | |
78 full = { | |
79 # Full builds are test build to show that we can build from scratch, | |
80 # so use settings to build from scratch, and archive the results. | |
81 'usepkg' : False, | |
82 'chroot_replace' : True, | |
83 | |
84 'archive_build' : True | |
85 } | |
86 | |
87 | |
88 config = {} | |
89 | |
90 config['x86-generic-pre-flight-queue'] = default.copy() | |
91 config['x86-generic-pre-flight-queue'].update({ | |
92 'board' : 'x86-generic', | |
93 'master' : True, | |
94 'hostname' : 'chromeosbuild2', | |
95 | |
96 'uprev' : True, | |
97 'rev_overlays': 'public', | |
98 'push_overlays': 'public', | |
99 }) | |
100 | |
101 config['x86-generic-chrome-pre-flight-queue'] = default.copy() | |
102 config['x86-generic-chrome-pre-flight-queue'].update({ | |
103 'board' : 'x86-generic', | |
104 'master' : True, | |
105 | |
106 'uprev' : False, | |
107 'rev_overlays': 'public', | |
108 'push_overlays': 'public', | |
109 }) | |
110 | |
111 | |
112 config['x86-mario-pre-flight-queue'] = default.copy() | |
113 config['x86-mario-pre-flight-queue'].update({ | |
114 'board' : 'x86-mario', | |
115 'master' : True, | |
116 | |
117 'uprev' : True, | |
118 'rev_overlays': 'both', | |
119 'push_overlays': 'private', | |
120 }) | |
121 | |
122 config['x86-mario-pre-flight-branch'] = default.copy() | |
123 config['x86-mario-pre-flight-branch'].update({ | |
124 'board' : 'x86-mario', | |
125 'master' : True, | |
126 | |
127 'uprev' : True, | |
128 'rev_overlays': 'both', | |
129 'push_overlays': 'both', | |
130 }) | |
131 | |
132 config['x86-agz-bin'] = default.copy() | |
133 config['x86-agz-bin'].update({ | |
134 'board' : 'x86-agz', | |
135 | |
136 'uprev' : True, | |
137 'rev_overlays': 'both', | |
138 'push_overlays': None, | |
139 }) | |
140 | |
141 config['x86-dogfood-bin'] = default.copy() | |
142 config['x86-dogfood-bin'].update({ | |
143 'board' : 'x86-dogfood', | |
144 | |
145 'uprev' : True, | |
146 'rev_overlays': 'both', | |
147 'push_overlays': None, | |
148 }) | |
149 | |
150 config['x86-pineview-bin'] = default.copy() | |
151 config['x86-pineview-bin'].update({ | |
152 'board' : 'x86-pineview', | |
153 | |
154 'uprev' : True, | |
155 'rev_overlays': 'public', | |
156 'push_overlays': None, | |
157 }) | |
158 | |
159 config['arm-tegra2-bin'] = default.copy() | |
160 config['arm-tegra2-bin'].update(arm) | |
161 config['arm-tegra2-bin'].update({ | |
162 'board' : 'tegra2_dev-board', | |
163 | |
164 'uprev' : True, | |
165 'rev_overlays': 'public', | |
166 'push_overlays': None, | |
167 }) | |
168 | |
169 config['arm-generic-bin'] = default.copy() | |
170 config['arm-generic-bin'].update(arm) | |
171 config['arm-generic-bin'].update({ | |
172 'board' : 'arm-generic', | |
173 | |
174 'uprev' : True, | |
175 'rev_overlays': 'public', | |
176 'push_overlays': None, | |
177 }) | |
178 | |
179 config['arm-generic-full'] = default.copy() | |
180 config['arm-generic-full'].update(arm) | |
181 config['arm-generic-full'].update(full) | |
182 config['arm-generic-full'].update({ | |
183 'board' : 'arm-generic', | |
184 }) | |
185 | |
186 config['arm-tegra2-full'] = default.copy() | |
187 config['arm-tegra2-full'].update(arm) | |
188 config['arm-tegra2-full'].update(full) | |
189 config['arm-tegra2-full'].update({ | |
190 'board' : 'tegra2_dev-board', | |
191 }) | |
192 | |
193 config['arm-tegra2-seaboard-full'] = default.copy() | |
194 config['arm-tegra2-seaboard-full'].update(arm) | |
195 config['arm-tegra2-seaboard-full'].update(full) | |
196 config['arm-tegra2-seaboard-full'].update({ | |
197 'board' : 'tegra2_seaboard', | |
198 }) | |
199 | |
200 config['x86-generic-full'] = default.copy() | |
201 config['x86-generic-full'].update(full) | |
202 config['x86-generic-full'].update({ | |
203 'board' : 'x86-generic', | |
204 }) | |
205 | |
206 config['x86-pineview-full'] = default.copy() | |
207 config['x86-pineview-full'].update(full) | |
208 config['x86-pineview-full'].update({ | |
209 'board' : 'x86-pineview', | |
210 }) | |
211 | |
212 # TODO(dgarrett) delete when buildbot updated to use new names | |
213 config['x86_agz_bin'] = config['x86-agz-bin'] | |
214 config['x86_dogfood_bin'] = config['x86-dogfood-bin'] | |
215 config['x86_pineview_bin'] = config['x86-pineview-bin'] | |
216 config['arm_tegra2_bin'] = config['arm-tegra2-bin'] | |
217 config['arm_generic_bin'] = config['arm-generic-bin'] | |
OLD | NEW |