OLD | NEW |
---|---|
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 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 | 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 """Dictionary of configuration types for cbuildbot. | 5 """Dictionary of configuration types for cbuildbot. |
6 | 6 |
7 Each dictionary entry is in turn a dictionary of config_param->value. | 7 Each dictionary entry is in turn a dictionary of config_param->value. |
8 | 8 |
9 config_param's: | 9 config_param's: |
10 board -- The board of the image to build. | 10 board -- The board of the image to build. |
11 uprev -- Uprevs the local ebuilds to build new changes since last stable. | 11 |
12 build. If master then also pushes these changes on success. | |
13 master -- This bot pushes changes to the overlays. | 12 master -- This bot pushes changes to the overlays. |
14 important -- Master bot uses important bots to determine overall status. | 13 important -- Master bot uses important bots to determine overall status. |
15 i.e. if master bot succeeds and other important slaves succeed | 14 i.e. if master bot succeeds and other important slaves succeed |
16 then the master will uprev packages. This should align | 15 then the master will uprev packages. This should align |
17 with info vs. closer except for the master. | 16 with info vs. closer except for the master.and options.tests |
18 hostname -- Needed for 'important' slaves. The hostname of the bot. Should | 17 hostname -- Needed for 'important' slaves. The hostname of the bot. Should |
19 match hostname in slaves.cfg in buildbot checkout. | 18 match hostname in slaves.cfg in buildbot checkout. |
20 unittests -- Runs unittests for packages. | 19 |
21 tests -- Runs the smoke suite and au test harness in a qemu-based VM using KVM. | 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 | 22 rev_overlays -- Select what overlays to look at for revving. This can be |
23 'public', 'private' or 'both'. | 23 'public', 'private' or 'both'. |
24 push_overlays -- Select what overlays to push at. This should be a subset of | 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 | 25 rev_overlays for the particular builder. Must be None if |
26 not a master. There should only be one master bot pushing | 26 not a master. There should only be one master bot pushing |
27 changes to each overlay per branch. | 27 changes to each overlay per branch. |
28 test_mod -- Create a test mod image. (default True) | 28 |
29 factory_install_mod -- Create a factory install image. (default True) | 29 unittests -- Runs unittests for packages. |
30 factory_test_mod -- Create a factory test image. (default True) | 30 vm_tests -- Runs the smoke suite and au test harness in a qemu-based VM using KV M. |
sosa
2011/01/27 19:48:56
80 chars
dgarrett
2011/01/27 21:05:52
Done.
| |
31 | |
32 usepkg -- Use binary packages to bootstrap, when possible | |
sosa
2011/01/27 19:48:56
i'd be more specific ... pass --usepkg to emerge.
| |
33 chroot_replace -- wipe and replace chroot, but not source | |
34 | |
35 archive_build -- Do we run archive_build.sh | |
36 test_mod -- Create a test mod image for archival. | |
37 factory_install_mod -- Create a factory install image for archival. | |
38 factory_test_mod -- Create a factory test image for archival. | |
31 """ | 39 """ |
32 | 40 |
41 # TODO(dgarrett) Make test_mod, factory_install_mod, factory_test_mod options | |
42 # go away when these options work for arm. | |
43 | |
44 default = { | |
45 # 'board' No default value | |
46 | |
47 'master' : False, | |
48 'important' : False, | |
49 # 'hostname' No default value | |
50 | |
51 'uprev' : False, | |
52 'rev_overlays': 'public', | |
53 'push_overlays': None, | |
54 | |
55 'unittests' : True, | |
56 'vm_tests' : True, | |
57 | |
58 'usepkg' : True, | |
59 'chroot_replace' : False, | |
60 | |
61 'archive_build' : False, | |
62 'test_mod' : True, | |
63 'factory_install_mod' : True, | |
64 'factory_test_mod' : True, | |
65 } | |
33 | 66 |
34 config = {} | 67 config = {} |
35 config['default'] = { | 68 |
36 'board' : 'x86-generic', | 69 config['x86-generic-pre-flight-queue'] = default.copy() |
37 'uprev' : False, | 70 config['x86-generic-pre-flight-queue'].update({ |
38 'master' : False, | |
39 'important' : False, | |
40 'unittests' : False, | |
41 'tests' : False, | |
42 'rev_overlays': 'public', | |
43 'push_overlays': None, | |
44 } | |
45 config['x86-generic-pre-flight-queue'] = { | |
46 'board' : 'x86-generic', | 71 'board' : 'x86-generic', |
47 'uprev' : True, | 72 'uprev' : True, |
48 'master' : True, | 73 'master' : True, |
49 'important' : False, | |
50 'hostname' : 'chromeosbuild2', | 74 'hostname' : 'chromeosbuild2', |
51 'unittests' : True, | |
52 'tests' : True, | |
53 'rev_overlays': 'public', | 75 'rev_overlays': 'public', |
54 'push_overlays': 'public', | 76 'push_overlays': 'public', |
55 } | 77 }) |
78 | |
79 config['x86-mario-pre-flight-queue'] = default.copy() | |
56 config['x86-mario-pre-flight-queue'] = { | 80 config['x86-mario-pre-flight-queue'] = { |
sosa
2011/01/27 19:48:56
Should be .update?
dgarrett
2011/01/27 21:05:52
Done.
| |
57 'board' : 'x86-mario', | 81 'board' : 'x86-mario', |
58 'uprev' : True, | 82 'uprev' : True, |
59 'master' : True, | 83 'master' : True, |
60 'important' : False, | |
61 'unittests' : True, | |
62 'tests' : True, | |
63 'rev_overlays': 'both', | 84 'rev_overlays': 'both', |
64 'push_overlays': 'private', | 85 'push_overlays': 'private', |
65 } | 86 } |
87 | |
88 config['x86-mario-pre-flight-branch'] = default.copy() | |
66 config['x86-mario-pre-flight-branch'] = { | 89 config['x86-mario-pre-flight-branch'] = { |
sosa
2011/01/27 19:48:56
Should be .update?
dgarrett
2011/01/27 21:05:52
Done.
| |
67 'board' : 'x86-mario', | 90 'board' : 'x86-mario', |
68 'uprev' : True, | 91 'uprev' : True, |
69 'master' : True, | 92 'master' : True, |
70 'important' : False, | |
71 'unittests' : True, | |
72 'tests' : True, | |
73 'rev_overlays': 'both', | 93 'rev_overlays': 'both', |
74 'push_overlays': 'both', | 94 'push_overlays': 'both', |
75 } | 95 } |
76 config['x86_agz_bin'] = { | 96 |
97 config['x86-agz-bin'] = default.copy() | |
98 config['x86-agz-bin'] = { | |
sosa
2011/01/27 19:48:56
Should be .update?
dgarrett
2011/01/27 21:05:52
Done.
| |
77 'board' : 'x86-agz', | 99 'board' : 'x86-agz', |
78 'uprev' : True, | 100 'uprev' : True, |
79 'master' : False, | |
80 'important' : False, | |
81 'unittests' : True, | |
82 'tests' : True, | |
83 'rev_overlays': 'both', | 101 'rev_overlays': 'both', |
84 'push_overlays': None, | 102 'push_overlays': None, |
85 } | 103 } |
86 config['x86_dogfood_bin'] = { | 104 |
105 config['x86-dogfood-bin'] = default.copy() | |
106 config['x86-dogfood-bin'] = { | |
sosa
2011/01/27 19:48:56
Should be .update?
dgarrett
2011/01/27 21:05:52
Done.
| |
87 'board' : 'x86-dogfood', | 107 'board' : 'x86-dogfood', |
88 'uprev' : True, | 108 'uprev' : True, |
89 'master' : False, | |
90 'important' : False, | |
91 'unittests' : True, | |
92 'tests' : True, | |
93 'rev_overlays': 'both', | 109 'rev_overlays': 'both', |
94 'push_overlays': None, | 110 'push_overlays': None, |
95 } | 111 } |
96 config['x86_pineview_bin'] = { | 112 |
113 config['x86-pineview-bin'] = default.copy() | |
114 config['x86-pineview-bin'] = { | |
sosa
2011/01/27 19:48:56
Should be .update?
dgarrett
2011/01/27 21:05:52
Done.
| |
97 'board' : 'x86-pineview', | 115 'board' : 'x86-pineview', |
98 'uprev' : True, | 116 'uprev' : True, |
99 'master' : False, | |
100 'important' : False, | |
101 'unittests': True, | |
102 'rev_overlays': 'public', | 117 'rev_overlays': 'public', |
103 'push_overlays': None, | 118 'push_overlays': None, |
104 } | 119 } |
105 config['arm_tegra2_bin'] = { | 120 |
121 config['arm-tegra2-bin'] = default.copy() | |
122 config['arm-tegra2-bin'] = { | |
sosa
2011/01/27 19:48:56
Should be .update?
dgarrett
2011/01/27 21:05:52
Done.
| |
106 'board' : 'tegra2_dev-board', | 123 'board' : 'tegra2_dev-board', |
107 'uprev' : True, | 124 'uprev' : True, |
108 'master' : False, | |
109 'important' : False, | |
110 'unittests' : False, | 125 'unittests' : False, |
126 'vm_tests' : False, | |
111 'rev_overlays': 'public', | 127 'rev_overlays': 'public', |
112 'push_overlays': None, | |
113 'factory_install_mod' : False, | 128 'factory_install_mod' : False, |
114 'factory_test_mod' : False, | 129 'factory_test_mod' : False, |
115 } | 130 } |
116 config['arm_generic_bin'] = { | 131 |
132 config['arm-generic-bin'] = default.copy() | |
133 config['arm-generic-bin'] = { | |
sosa
2011/01/27 19:48:56
Should be .update?
dgarrett
2011/01/27 21:05:52
Done.
| |
117 'board' : 'arm-generic', | 134 'board' : 'arm-generic', |
118 'uprev' : True, | 135 'uprev' : True, |
119 'master' : False, | |
120 'important' : False, | |
121 'unittests' : False, | 136 'unittests' : False, |
122 'rev_overlays': 'public', | 137 'vm_tests' : False, |
123 'push_overlays': None, | |
124 'factory_install_mod' : False, | 138 'factory_install_mod' : False, |
125 'factory_test_mod' : False, | 139 'factory_test_mod' : False, |
126 } | 140 } |
141 | |
142 # TODO(dgarrett) delete when buildbot updated to use new names | |
143 config['x86_agz_bin'] = config['x86-agz-bin'] | |
144 config['x86_dogfood_bin'] = config['x86-dogfood-bin'] | |
145 config['x86_pineview_bin'] = config['x86-pineview-bin'] | |
146 config['arm_tegra2_bin'] = config['arm-tegra2-bin'] | |
147 config['arm_generic_bin'] = config['arm-generic-bin'] | |
OLD | NEW |