Merge lp:~cjwatson/launchpad-buildd/rename-slave-prep into lp:launchpad-buildd

Proposed by Colin Watson
Status: Merged
Merged at revision: 362
Proposed branch: lp:~cjwatson/launchpad-buildd/rename-slave-prep
Merge into: lp:launchpad-buildd
Diff against target: 95 lines (+7/-7)
6 files modified
MANIFEST.in (+1/-1)
bin/builder-prep (+1/-2)
debian/changelog (+1/-0)
debian/launchpad-buildd.install (+1/-1)
lpbuildd/slave.py (+2/-2)
lpbuildd/tests/test_debian.py (+1/-1)
To merge this branch: bzr merge lp:~cjwatson/launchpad-buildd/rename-slave-prep
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+362920@code.launchpad.net

Commit message

Rename slave-prep to builder-prep.

Description of the change

Let's start moving towards terminology that doesn't make me cringe every time I read it.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'MANIFEST.in'
2--- MANIFEST.in 2017-11-24 12:26:45 +0000
3+++ MANIFEST.in 2019-02-08 15:59:57 +0000
4@@ -1,9 +1,9 @@
5 include LICENSE
6 include Makefile
7+include bin/builder-prep
8 include bin/buildrecipe
9 include bin/in-target
10 include bin/sbuild-package
11-include bin/slave-prep
12 include bin/snap-git-proxy
13 include bin/test_buildd_generatetranslationtemplates
14 include bin/test_buildd_recipe
15
16=== renamed file 'bin/slave-prep' => 'bin/builder-prep'
17--- bin/slave-prep 2017-07-26 12:01:39 +0000
18+++ bin/builder-prep 2019-02-08 15:59:57 +0000
19@@ -3,7 +3,7 @@
20 # Copyright 2009 Canonical Ltd. This software is licensed under the
21 # GNU Affero General Public License version 3 (see the file LICENSE).
22
23-# Buildd Slave initial preparation script
24+# Buildd initial preparation script
25
26 export PATH=/usr/bin:/bin:/usr/sbin:/sbin:${PATH}
27
28@@ -12,7 +12,6 @@
29 PACKAGES="launchpad-buildd python-lpbuildd sbuild bzr-builder bzr git-build-recipe git dpkg-dev python-debian"
30 KERNEL=$(uname -snrvm)
31
32-echo "Forking launchpad-buildd slave process..."
33 echo "Kernel version: $KERNEL"
34 echo -n "Buildd toolchain package versions:"
35 for package in $PACKAGES; do
36
37=== modified file 'debian/changelog'
38--- debian/changelog 2019-02-08 15:21:16 +0000
39+++ debian/changelog 2019-02-08 15:59:57 +0000
40@@ -1,6 +1,7 @@
41 launchpad-buildd (168) UNRELEASED; urgency=medium
42
43 * Remove obsolete chroot-building instructions from README.
44+ * Rename slave-prep to builder-prep.
45
46 -- Colin Watson <cjwatson@ubuntu.com> Fri, 08 Feb 2019 15:09:35 +0000
47
48
49=== modified file 'debian/launchpad-buildd.install'
50--- debian/launchpad-buildd.install 2017-09-08 16:01:37 +0000
51+++ debian/launchpad-buildd.install 2019-02-08 15:59:57 +0000
52@@ -1,7 +1,7 @@
53+bin/builder-prep usr/share/launchpad-buildd/slavebin
54 bin/buildrecipe usr/share/launchpad-buildd/slavebin
55 bin/in-target usr/share/launchpad-buildd/slavebin
56 bin/sbuild-package usr/share/launchpad-buildd/slavebin
57-bin/slave-prep usr/share/launchpad-buildd/slavebin
58 bin/snap-git-proxy usr/share/launchpad-buildd/slavebin
59 buildd-genconfig usr/share/launchpad-buildd
60 debian/upgrade-config usr/share/launchpad-buildd
61
62=== modified file 'lpbuildd/slave.py'
63--- lpbuildd/slave.py 2019-01-10 18:14:55 +0000
64+++ lpbuildd/slave.py 2019-02-08 15:59:57 +0000
65@@ -139,7 +139,7 @@
66 self._reactor = reactor
67 self._sharepath = slave._config.get("slave", "sharepath")
68 self._slavebin = os.path.join(self._sharepath, "slavebin")
69- self._preppath = os.path.join(self._slavebin, "slave-prep")
70+ self._preppath = os.path.join(self._slavebin, "builder-prep")
71 self._intargetpath = os.path.join(self._slavebin, "in-target")
72 self._subprocess = None
73 self._reaped_states = set()
74@@ -260,7 +260,7 @@
75 self.backend_name, self._buildid,
76 series=self.series, arch=self.arch_tag)
77
78- self.runSubProcess(self._preppath, ["slave-prep"])
79+ self.runSubProcess(self._preppath, ["builder-prep"])
80
81 def status(self):
82 """Return extra status for this build manager, as a dictionary.
83
84=== modified file 'lpbuildd/tests/test_debian.py'
85--- lpbuildd/tests/test_debian.py 2019-01-10 18:14:55 +0000
86+++ lpbuildd/tests/test_debian.py 2019-02-08 15:59:57 +0000
87@@ -86,7 +86,7 @@
88 self.buildmanager.initiate({}, 'chroot.tar.gz', extra_args)
89 self.assertEqual(DebianBuildState.INIT, self.getState())
90 self.assertEqual(
91- (['sharepath/slavebin/slave-prep', 'slave-prep'], None),
92+ (['sharepath/slavebin/builder-prep', 'builder-prep'], None),
93 self.buildmanager.commands[-1])
94 self.assertEqual(
95 self.buildmanager.iterate, self.buildmanager.iterators[-1])

Subscribers

People subscribed via source and target branches

to all changes: