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 |
| 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. |
31 """ | 40 """ |
32 | 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 } |
33 | 67 |
34 config = {} | 68 config = {} |
35 config['default'] = { | 69 |
36 'board' : 'x86-generic', | 70 config['x86-generic-pre-flight-queue'] = default.copy() |
37 'uprev' : False, | 71 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', | 72 'board' : 'x86-generic', |
47 'uprev' : True, | 73 'uprev' : True, |
48 'master' : True, | 74 'master' : True, |
49 'important' : False, | |
50 'hostname' : 'chromeosbuild2', | 75 'hostname' : 'chromeosbuild2', |
51 'unittests' : True, | |
52 'tests' : True, | |
53 'rev_overlays': 'public', | 76 'rev_overlays': 'public', |
54 'push_overlays': 'public', | 77 'push_overlays': 'public', |
55 } | 78 }) |
56 config['x86-mario-pre-flight-queue'] = { | 79 |
| 80 config['x86-mario-pre-flight-queue'] = default.copy() |
| 81 config['x86-mario-pre-flight-queue'].update({ |
57 'board' : 'x86-mario', | 82 'board' : 'x86-mario', |
58 'uprev' : True, | 83 'uprev' : True, |
59 'master' : True, | 84 'master' : True, |
60 'important' : False, | |
61 'unittests' : True, | |
62 'tests' : True, | |
63 'rev_overlays': 'both', | 85 'rev_overlays': 'both', |
64 'push_overlays': 'private', | 86 'push_overlays': 'private', |
65 } | 87 }) |
66 config['x86-mario-pre-flight-branch'] = { | 88 |
| 89 config['x86-mario-pre-flight-branch'] = default.copy() |
| 90 config['x86-mario-pre-flight-branch'].update({ |
67 'board' : 'x86-mario', | 91 'board' : 'x86-mario', |
68 'uprev' : True, | 92 'uprev' : True, |
69 'master' : True, | 93 'master' : True, |
70 'important' : False, | |
71 'unittests' : True, | |
72 'tests' : True, | |
73 'rev_overlays': 'both', | 94 'rev_overlays': 'both', |
74 'push_overlays': 'both', | 95 'push_overlays': 'both', |
75 } | 96 }) |
76 config['x86_agz_bin'] = { | 97 |
| 98 config['x86-agz-bin'] = default.copy() |
| 99 config['x86-agz-bin'].update({ |
77 'board' : 'x86-agz', | 100 'board' : 'x86-agz', |
78 'uprev' : True, | 101 'uprev' : True, |
79 'master' : False, | |
80 'important' : False, | |
81 'unittests' : True, | |
82 'tests' : True, | |
83 'rev_overlays': 'both', | 102 'rev_overlays': 'both', |
84 'push_overlays': None, | 103 'push_overlays': None, |
85 } | 104 }) |
86 config['x86_dogfood_bin'] = { | 105 |
| 106 config['x86-dogfood-bin'] = default.copy() |
| 107 config['x86-dogfood-bin'].update({ |
87 'board' : 'x86-dogfood', | 108 'board' : 'x86-dogfood', |
88 'uprev' : True, | 109 'uprev' : True, |
89 'master' : False, | |
90 'important' : False, | |
91 'unittests' : True, | |
92 'tests' : True, | |
93 'rev_overlays': 'both', | 110 'rev_overlays': 'both', |
94 'push_overlays': None, | 111 'push_overlays': None, |
95 } | 112 }) |
96 config['x86_pineview_bin'] = { | 113 |
| 114 config['x86-pineview-bin'] = default.copy() |
| 115 config['x86-pineview-bin'].update({ |
97 'board' : 'x86-pineview', | 116 'board' : 'x86-pineview', |
98 'uprev' : True, | 117 'uprev' : True, |
99 'master' : False, | |
100 'important' : False, | |
101 'unittests': True, | |
102 'rev_overlays': 'public', | 118 'rev_overlays': 'public', |
103 'push_overlays': None, | 119 'push_overlays': None, |
104 } | 120 }) |
105 config['arm_tegra2_bin'] = { | 121 |
| 122 config['arm-tegra2-bin'] = default.copy() |
| 123 config['arm-tegra2-bin'].update({ |
106 'board' : 'tegra2_dev-board', | 124 'board' : 'tegra2_dev-board', |
107 'uprev' : True, | 125 'uprev' : True, |
108 'master' : False, | |
109 'important' : False, | |
110 'unittests' : False, | 126 'unittests' : False, |
| 127 'vm_tests' : False, |
111 'rev_overlays': 'public', | 128 'rev_overlays': 'public', |
112 'push_overlays': None, | |
113 'factory_install_mod' : False, | 129 'factory_install_mod' : False, |
114 'factory_test_mod' : False, | 130 'factory_test_mod' : False, |
115 } | 131 }) |
116 config['arm_generic_bin'] = { | 132 |
| 133 config['arm-generic-bin'] = default.copy() |
| 134 config['arm-generic-bin'].update({ |
117 'board' : 'arm-generic', | 135 'board' : 'arm-generic', |
118 'uprev' : True, | 136 'uprev' : True, |
119 'master' : False, | |
120 'important' : False, | |
121 'unittests' : False, | 137 'unittests' : False, |
122 'rev_overlays': 'public', | 138 'vm_tests' : False, |
123 'push_overlays': None, | |
124 'factory_install_mod' : False, | 139 'factory_install_mod' : False, |
125 'factory_test_mod' : False, | 140 'factory_test_mod' : False, |
126 } | 141 }) |
| 142 |
| 143 # TODO(dgarrett) delete when buildbot updated to use new names |
| 144 config['x86_agz_bin'] = config['x86-agz-bin'] |
| 145 config['x86_dogfood_bin'] = config['x86-dogfood-bin'] |
| 146 config['x86_pineview_bin'] = config['x86-pineview-bin'] |
| 147 config['arm_tegra2_bin'] = config['arm-tegra2-bin'] |
| 148 config['arm_generic_bin'] = config['arm-generic-bin'] |
OLD | NEW |