Chromium Code Reviews| 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. |
| 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 archive_build -- Do we run archive_build.sh |
| 30 factory_test_mod -- Create a factory test image. (default True) | 30 |
| 31 autotests -- Run autotests in build_package | |
|
sosa
2011/01/27 00:50:55
Build autotests in build_package (not run)
dgarrett
2011/01/27 01:35:02
Um... how do they get run in cbuild? Perhaps the s
dgarrett
2011/01/27 01:43:20
Is it fair to say that autotests should be true if
| |
| 32 unittests -- Runs unittests for packages. | |
| 33 tests -- Runs the smoke suite and au test harness in a qemu-based VM using KVM. | |
| 34 | |
| 35 usepkg -- Use binary packages to bootstrap, when possible | |
| 36 chroot_replace -- wipe and replace chroot, but not source | |
| 37 | |
| 38 test_mod -- Create a test mod image. | |
|
sosa
2011/01/27 00:50:55
Why are these currently set at all? Don't these o
dgarrett
2011/01/27 01:35:02
Ah, I made a mistake. The only affect builds that
| |
| 39 factory_install_mod -- Create a factory install image. | |
| 40 factory_test_mod -- Create a factory test image. | |
| 31 """ | 41 """ |
| 32 | 42 |
| 43 default = { | |
| 44 # 'board' No default value | |
|
sosa
2011/01/27 00:50:55
Why not purposefully set to None instead of commen
dgarrett
2011/01/27 01:35:02
For hostname, I know of a case where not setting i
| |
| 45 | |
| 46 'master' : False, | |
| 47 'important' : False, | |
| 48 # 'hostname' No default value | |
| 49 | |
| 50 'uprev' : False, | |
| 51 'rev_overlays': 'public', | |
| 52 'push_overlays': None, | |
| 53 | |
| 54 'archive_build' : False, | |
| 55 | |
| 56 'autotests' : True, | |
| 57 'unittests' : True, | |
| 58 'tests' : True, | |
| 59 | |
| 60 'usepkg' : True, | |
| 61 'chroot_replace' : False, | |
| 62 | |
| 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 }) |
| 79 | |
| 80 config['x86-mario-pre-flight-queue'] = default.copy() | |
| 56 config['x86-mario-pre-flight-queue'] = { | 81 config['x86-mario-pre-flight-queue'] = { |
| 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 } |
| 88 | |
| 89 config['x86-mario-pre-flight-branch'] = default.copy() | |
| 66 config['x86-mario-pre-flight-branch'] = { | 90 config['x86-mario-pre-flight-branch'] = { |
| 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'] = { | |
| 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'] = { | |
| 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'] = { | |
| 97 'board' : 'x86-pineview', | 116 'board' : 'x86-pineview', |
| 98 'uprev' : True, | 117 'uprev' : True, |
|
sosa
2011/01/27 00:50:55
Does not run autotests currently (doesn't work) th
| |
| 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'] = { | |
| 106 'board' : 'tegra2_dev-board', | 124 'board' : 'tegra2_dev-board', |
| 107 'uprev' : True, | 125 'uprev' : True, |
|
sosa
2011/01/27 00:50:55
autotest settings are wrong
| |
| 108 'master' : False, | |
| 109 'important' : False, | |
| 110 'unittests' : False, | 126 'unittests' : False, |
| 111 'rev_overlays': 'public', | 127 'rev_overlays': 'public', |
| 112 'push_overlays': None, | 128 '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'] = { | |
| 117 'board' : 'arm-generic', | 135 'board' : 'arm-generic', |
|
sosa
2011/01/27 00:50:55
autotest settings are wrong
| |
| 118 'uprev' : True, | 136 'uprev' : True, |
| 119 'master' : False, | |
| 120 'important' : False, | |
| 121 'unittests' : False, | 137 'unittests' : False, |
| 122 'rev_overlays': 'public', | |
| 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 |