Merge lp:~gary/charms/oneiric/buildbot-slave/extra-packages into lp:~yellow/charms/oneiric/buildbot-slave/trunk

Proposed by Gary Poster
Status: Merged
Merged at revision: 23
Proposed branch: lp:~gary/charms/oneiric/buildbot-slave/extra-packages
Merge into: lp:~yellow/charms/oneiric/buildbot-slave/trunk
Diff against target: 50 lines (+14/-0)
3 files modified
config.yaml (+8/-0)
examples/lpbuildbot.yaml (+1/-0)
hooks/config-changed (+5/-0)
To merge this branch: bzr merge lp:~gary/charms/oneiric/buildbot-slave/extra-packages
Reviewer Review Type Date Requested Status
Benji York (community) code Approve
Review via email: mp+93515@code.launchpad.net

Description of the change

This branch moves over the extra-packages feature from the buildbot-master. LP needs it for parallel testing, as shown by the included config change.

To post a comment you must log in.
Revision history for this message
Benji York (benji) wrote :

This looks good.

A small redundancy: there's no need for the .strip() because the split
will remove any leading, trailing, or duplicate whitespace around the
package names.

review: Approve (code)
15. By Gary Poster

[r=bac] move HACKING to README per review

16. By Francesco Banconi

[r=gmb] Added revision file. Removed juju_wrapper.

17. By Brad Crittenden

[r=frankban] Install python-shell-toolbox in the install hook. Temporarily add copies of helpers.py and local.py until a proper sharing solution is implemented. These files are to be edited in the buildbot-master and kept in sync.

18. By Benji York

correct the buildbot home dir

19. By Benji York

[r=gary] add a work-around to a bug in LXC

20. By Francesco Banconi

[r=gmb] upgrade-charm hook.

21. By Benji York

- tweak the lpbuildbot example config to specify alternate key names
- make the buildbot group creation unconditional
- add a --yes when adding a repository

22. By Benji York

merge from trunk

23. By Gary Poster

add extra-packages functionality, as with buildbot-master. We need it to include testrepository.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config.yaml'
--- config.yaml 2012-02-09 14:02:35 +0000
+++ config.yaml 2012-03-10 14:01:17 +0000
@@ -36,6 +36,14 @@
36 ones added previously will not be removed. An example would be:36 ones added previously will not be removed. An example would be:
37 deb http://us.archive.ubuntu.com/ubuntu/ lucid main universe37 deb http://us.archive.ubuntu.com/ubuntu/ lucid main universe
38 type: string38 type: string
39 extra-packages:
40 description: |
41 A space-separated list of packages to be installed. The
42 repositories to use in getting these packages should have been
43 set prior to setting this value. Calling multiple times will
44 install the newly specified packages while leaving the previous
45 ones installed.
46 type: string
39 installdir:47 installdir:
40 description: |48 description: |
41 The directory where the Buildbot slave will be installed.49 The directory where the Buildbot slave will be installed.
4250
=== modified file 'examples/lpbuildbot.yaml'
--- examples/lpbuildbot.yaml 2012-03-06 18:23:20 +0000
+++ examples/lpbuildbot.yaml 2012-03-10 14:01:17 +0000
@@ -8,3 +8,4 @@
8 script-args: "-u buildbot -e launchpad-pqm@canonical.com -f 'Launchpad PQM' -s launchpad_lxc_id_rsa {installdir}"8 script-args: "-u buildbot -e launchpad-pqm@canonical.com -f 'Launchpad PQM' -s launchpad_lxc_id_rsa {installdir}"
9 extra-repository: deb http://us.archive.ubuntu.com/ubuntu/ lucid main universe9 extra-repository: deb http://us.archive.ubuntu.com/ubuntu/ lucid main universe
10 buildbot-pkg: buildbot/lucid10 buildbot-pkg: buildbot/lucid
11 extra-packages: testrepository
1112
=== modified file 'hooks/config-changed'
--- hooks/config-changed 2012-02-29 22:45:07 +0000
+++ hooks/config-changed 2012-03-10 14:01:17 +0000
@@ -33,6 +33,7 @@
3333
34 buildbot_pkg = config.get('buildbot-pkg')34 buildbot_pkg = config.get('buildbot-pkg')
35 extra_repo = config.get('extra-repository')35 extra_repo = config.get('extra-repository')
36 extra_pkgs = config.get('extra-packages')
36 buildbot_dir = config.get('installdir')37 buildbot_dir = config.get('installdir')
3738
38 if extra_repo and 'extra-repository' in diff.added_or_changed:39 if extra_repo and 'extra-repository' in diff.added_or_changed:
@@ -43,6 +44,10 @@
43 log(e)44 log(e)
44 raise45 raise
4546
47 if extra_pkgs and 'extra-packages' in diff.added_or_changed:
48 apt_get_install(
49 *(pkg.strip() for pkg in extra_pkgs.split()))
50
46 if buildbot_pkg and 'buildbot-pkg' in diff.added_or_changed:51 if buildbot_pkg and 'buildbot-pkg' in diff.added_or_changed:
47 log('Installing ' + buildbot_pkg)52 log('Installing ' + buildbot_pkg)
48 apt_get_install(buildbot_pkg)53 apt_get_install(buildbot_pkg)

Subscribers

People subscribed via source and target branches

to all changes: