Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3f62cca

Browse files
committedApr 28, 2016
Transition to using static builders.
Added the ability to control if dependencies are installed for a builder. This allows for AMIs with dependencies preinstalled to be used. This should speed up slave bootstrapping and provide more consistent build results.
1 parent e4289fc commit 3f62cca

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed
 

‎master/lustrefactory.py

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def do_step_build(step, name):
2121
def do_step_zfs(step):
2222
return do_step_build(step, 'buildzfs')
2323

24+
def do_step_installdeps(step):
25+
return do_step_build(step, 'installdeps')
26+
2427
@util.renderer
2528
def dependencyCommand(props):
2629
args = ["runurl"]
@@ -83,6 +86,8 @@ def getBuildFactory(gerrit_repo, **kwargs):
8386
command=dependencyCommand,
8487
decodeRC={0 : SUCCESS, 1 : FAILURE, 2 : WARNINGS, 3 : SKIPPED },
8588
haltOnFailure=True, logEnviron=False,
89+
doStepIf=do_step_installdeps,
90+
hideStepIf=lambda results, s: results==SKIPPED,
8691
description=["installing dependencies"],
8792
descriptionDone=["installed dependencies"]))
8893

‎master/master.cfg

+6-5
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def merge_dicts(*args):
7373
# of scripts to execute and which spl and zfs tags to boot strap with.
7474
global_props = {
7575
"bburl" : bb_url,
76+
"installdeps" : "no",
7677
"spltag" : "spl-0.6.5.4",
7778
"zfstag" : "zfs-0.6.5.4",
7879
}
@@ -123,35 +124,35 @@ numSlaves = 3 # number of slaves per builder
123124
CentOS_6_7_slaves = [
124125
LustreEC2Slave(
125126
name="CentOS-6.7-x86_64-buildslave%s" % (str(i+1)),
126-
ami="ami-4d5d577d"
127+
ami="ami-3a05f55a"
127128
) for i in range(0, numSlaves)
128129
]
129130

130131
CentOS_7_2_slaves = [
131132
LustreEC2Slave(
132133
name="CentOS-7.2-x86_64-buildslave%s" % (str(i+1)),
133-
ami="ami-666a7507"
134+
ami="ami-d945b5b9"
134135
) for i in range(0, numSlaves)
135136
]
136137

137138
SLES_12_1_slaves = [
138139
LustreEC2SuseSlave(
139140
name="SUSE-12.1-x86_64-buildslave%s" % (str(i+1)),
140-
ami="ami-16f61b76"
141+
ami="ami-6b77870b"
141142
) for i in range(0, numSlaves)
142143
]
143144

144145
Ubuntu_12_04_slaves = [
145146
LustreEC2Slave(
146147
name="Ubuntu-12.04-x86_64-buildslave%s" % (str(i+1)),
147-
ami="ami-155a6125"
148+
ami="ami-55788835"
148149
) for i in range(0, numSlaves)
149150
]
150151

151152
Ubuntu_14_04_slaves = [
152153
LustreEC2Slave(
153154
name="Ubuntu-14.04-x86_64-buildslave%s" % (str(i+1)),
154-
ami="ami-5189a661"
155+
ami="ami-1b76867b"
155156
) for i in range(0, numSlaves)
156157
]
157158

‎scripts/bb-dependencies.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Amazon*)
2121

2222
# Required utilties.
2323
sudo yum -y install git rpm-build wget curl lsscsi parted attr dbench \
24-
watchdog createrepo python python-pip python-docutils
24+
watchdog createrepo python python-pip python-docutils xfig transfig
2525
;;
2626

2727
CentOS*)
@@ -44,7 +44,7 @@ CentOS*)
4444

4545
# Required utilties.
4646
sudo yum -y install git rpm-build wget curl lsscsi parted attr dbench bc \
47-
watchdog createrepo mock python python-docutils mdadm
47+
watchdog createrepo mock python python-docutils mdadm xfig transfig
4848

4949
# add user to the mock group
5050
sudo usermod -a -G mock buildbot
@@ -67,7 +67,7 @@ Debian*)
6767
# Required utilties.
6868
sudo apt-get --yes install git alien fakeroot wget curl bc \
6969
lsscsi parted gdebi attr dbench watchdog createrepo \
70-
python python-pip python-docutils
70+
python python-pip python-docutils xfig transfig
7171
;;
7272

7373
Fedora*)
@@ -84,7 +84,7 @@ Fedora*)
8484

8585
# Required utilties.
8686
sudo dnf -y install git rpm-build wget curl lsscsi parted attr dbench \
87-
watchdog createrepo mock python python-pip python-docutils
87+
watchdog createrepo mock python python-pip python-docutils xfig transfig
8888

8989
# add user to the mock group
9090
sudo usermod -a -G mock buildbot
@@ -115,7 +115,7 @@ RHEL*)
115115
# Required utilties.
116116
sudo yum -y $EXTRA_REPO install git rpm-build wget curl lsscsi \
117117
parted attr dbench bc watchdog createrepo mock python \
118-
python-pip python-docutils mdadm
118+
python-pip python-docutils mdadm xfig transfig
119119

120120
# add user to the mock group
121121
sudo usermod -a -G mock buildbot
@@ -130,7 +130,7 @@ SUSE*)
130130

131131
# Required utilties.
132132
sudo zypper --non-interactive install git rpm-build wget curl \
133-
lsscsi parted attr createrepo python python-pip python-docutils
133+
lsscsi parted attr createrepo python python-pip python-docutils xfig transfig
134134

135135
# Required development packages.
136136
sudo zypper --non-interactive --plus-content debug install \
@@ -148,7 +148,7 @@ OpenSUSE*)
148148

149149
# Required utilties.
150150
sudo zypper --non-interactive install git rpm-build wget curl \
151-
lsscsi parted attr createrepo python python-pip python-docutils
151+
lsscsi parted attr createrepo python python-pip python-docutils xfig transfig
152152

153153
# Required development packages.
154154
sudo zypper --non-interactive --plus-content debug install \
@@ -165,7 +165,7 @@ Ubuntu*)
165165
# Required utilties.
166166
sudo apt-get --yes install git alien fakeroot wget curl \
167167
lsscsi parted gdebi attr dbench watchdog \
168-
python python-pip python-docutils
168+
python python-pip python-docutils xfig transfig
169169

170170
# Required development libraries
171171
sudo apt-get --yes install linux-headers-$(uname -r) \

0 commit comments

Comments
 (0)
Please sign in to comment.