Mercurial > octave-buildbot
annotate master.cfg @ 34:dccb2d57f79d
remove old builder configs and update current worker IDs
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 25 Aug 2021 22:23:04 -0400 |
parents | 227454cf16f8 |
children | ba54973baf45 |
rev | line source |
---|---|
0 | 1 ## -*- python -*- |
2 ## ex: set syntax=python: | |
3 | |
4 ## This is a sample buildmaster config file. It must be installed as | |
5 ## 'master.cfg' in your buildmaster's base directory. | |
6 | |
7 ## This is the dictionary that the buildmaster pays attention to. We | |
8 ## also use a shorter alias to save typing. | |
9 | |
10 c = BuildmasterConfig = {} | |
11 | |
12 ## WORKERS | |
13 | |
14 ## The 'worker' list defines the set of recognized workers. Each | |
15 ## element is a Worker object, specifying a unique worker name and | |
16 ## password. The same worker name and password must be configured on | |
17 ## the worker. | |
18 | |
19 from buildbot.worker import Worker | |
20 | |
8
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
21 ## The octave_buildbot_config file imported below is not in hg archive because |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
22 ## it contains password and system configuration info. |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
23 ## |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
24 ## This file defines two variables, workers and master_id_and_pass, with |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
25 ## the following format: |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
26 ## |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
27 ## workers = {"worker-name-0": |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
28 ## {"pass": "worker-0-password", |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
29 ## "max_builds": 3, |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
30 ## "desc": "info about worker-0"}, |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
31 ## "worker-name-1": |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
32 ## {"pass": "worker-1-password", |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
33 ## "max_builds": 3, |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
34 ## "desc": "info about worker-1"}, |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
35 ## ...} |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
36 ## |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
37 ## master_id_and_pass = {"master-login-id" : "master-password"} |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
38 |
0 | 39 import octave_buildbot_config |
40 | |
41 c["workers"] = [] | |
42 | |
14
24e67c30e215
syntax update for buildbot 2.7
John W. Eaton <jwe@octave.org>
parents:
13
diff
changeset
|
43 for worker, info in octave_buildbot_config.workers.items (): |
0 | 44 c["workers"].append (Worker (worker, info["pass"], max_builds = info["max_builds"])) |
45 | |
46 ## 'protocols' contains information about protocols which master will | |
47 ## use for communicating with workers. You must define at least 'port' | |
48 ## option that workers could connect to your master with this protocol. | |
49 ## 'port' must match the value configured into the workers (with | |
50 ## their --master option) | |
51 | |
52 c["protocols"] = { "pb" : { "port" : 9990 }} | |
53 | |
54 ## SOURCES | |
55 | |
56 ## The main mercurial repository server. This machines pings the | |
57 ## PBChangeSource. The workers should pull from it, to make | |
58 ## sure they are in sync. | |
59 | |
60 octave_hg_repo = "https://hg.savannah.gnu.org/hgweb/octave" | |
16
b2e9c6f7d3e5
use savannah for both stable and default branches of octave
John W. Eaton <jwe@octave.org>
parents:
15
diff
changeset
|
61 stable_octave_hg_repo = "https://hg.savannah.gnu.org/hgweb/octave" |
0 | 62 mxe_octave_hg_repo = "http://hg.octave.org/mxe-octave" |
63 | |
64 ## CHANGESOURCES | |
65 | |
66 ## the 'change_source' setting tells the buildmaster how it should | |
67 ## find out about source code changes. Here we point to the buildbot | |
68 ## clone of Octave. | |
69 | |
70 from buildbot.changes.hgpoller import HgPoller | |
71 | |
72 c["change_source"] = [] | |
73 | |
74 c["change_source"].append (HgPoller (project = "octave", | |
75 repourl = octave_hg_repo, | |
76 workdir = "octave-hg-repo", | |
77 pollinterval = 5*60)) | |
78 | |
79 c["change_source"].append (HgPoller (project = "stable octave", | |
80 branch = "stable", | |
81 repourl = stable_octave_hg_repo, | |
82 workdir = "stable-octave-hg-repo", | |
83 pollinterval = 5*60)) | |
84 | |
85 c["change_source"].append (HgPoller (project = "mxe-octave", | |
86 repourl = mxe_octave_hg_repo, | |
87 workdir = "mxe-octave-hg-repo", | |
88 pollinterval = 15*60)) | |
89 | |
90 ## FILTERS | |
91 | |
92 from buildbot.changes import filter | |
93 | |
94 octave_default_filter = filter.ChangeFilter (project = "octave", branch = "default") | |
95 | |
96 octave_stable_filter = filter.ChangeFilter (project = "stable octave", branch = "stable") | |
97 | |
98 mxe_octave_default_filter = filter.ChangeFilter (project = "mxe-octave", branch = "default") | |
99 | |
100 ## SCHEDULERS | |
101 | |
102 ## Configure the Schedulers, which decide how to react to incoming | |
103 ## changes. | |
104 | |
105 from buildbot.schedulers.basic import SingleBranchScheduler | |
106 from buildbot.schedulers.forcesched import ForceScheduler | |
107 from buildbot.schedulers import timed | |
108 | |
109 all_default_octave_builders = []; | |
110 all_default_octave_builders.append ("gcc-6-debian") # mtmx | |
34
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
111 all_default_octave_builders.append ("gcc-debian") # jwe-3 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
112 all_default_octave_builders.append ("gcc-lto-debian") # jwe-4 |
0 | 113 all_default_octave_builders.append ("gcc-fedora") # das |
114 all_default_octave_builders.append ("gcc-lto-fedora") # das | |
34
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
115 all_default_octave_builders.append ("no-extras-debian") # jwe-4 |
0 | 116 all_default_octave_builders.append ("clang-3.9-debian") # mtmx |
34
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
117 all_default_octave_builders.append ("clang-debian") # jwe-0 |
0 | 118 all_default_octave_builders.append ("clang-fedora") # das |
119 all_default_octave_builders.append ("clang-osx") # simone | |
120 | |
121 all_stable_octave_builders = []; | |
34
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
122 all_stable_octave_builders.append ("stable-gcc-debian") # jwe-3 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
123 all_stable_octave_builders.append ("stable-gcc-lto-debian") # jwe-4 |
0 | 124 all_stable_octave_builders.append ("stable-gcc-fedora") # das |
34
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
125 all_stable_octave_builders.append ("stable-no-extras-debian") # jwe-4 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
126 all_stable_octave_builders.append ("stable-clang-debian") # jwe-0 |
13
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
127 all_stable_octave_builders.append ("stable-clang-fedora") # das |
0 | 128 all_stable_octave_builders.append ("stable-clang-osx") # simone |
129 | |
130 all_mxe_octave_builders = []; | |
34
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
131 all_mxe_octave_builders.append ("w32-on-debian") # jwe-0 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
132 all_mxe_octave_builders.append ("w64-32-on-debian") # jwe-1 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
133 all_mxe_octave_builders.append ("w64-64-on-debian") # jwe-4 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
134 all_mxe_octave_builders.append ("w32-release-on-debian") # jwe-0 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
135 all_mxe_octave_builders.append ("w64-32-release-on-debian") # jwe-1 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
136 all_mxe_octave_builders.append ("w64-64-release-on-debian") # jwe-4 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
137 all_mxe_octave_builders.append ("w32-stable-on-debian") # jwe-0 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
138 all_mxe_octave_builders.append ("w64-32-stable-on-debian") # jwe-1 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
139 all_mxe_octave_builders.append ("w64-64-stable-on-debian") # jwe-4 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
140 all_mxe_octave_builders.append ("mxe-native-on-debian") # jwe-3 |
dccb2d57f79d
remove old builder configs and update current worker IDs
John W. Eaton <jwe@octave.org>
parents:
33
diff
changeset
|
141 all_mxe_octave_builders.append ("mxe-native-all-on-debian") # jwe-3 |
0 | 142 |
143 c["schedulers"] = [] | |
144 | |
145 c["schedulers"].append (SingleBranchScheduler (name = "default octave", | |
146 change_filter = octave_default_filter, | |
147 treeStableTimer = 5*60, | |
148 builderNames = all_default_octave_builders)) | |
149 | |
20 | 150 ### DISABLED because there doesn't seem to be a way to limit this |
151 ### action to users logged in to the web interface; instead, forcing | |
152 ### builds is allowed for anyone. WTF!?! | |
153 ### c["schedulers"].append (ForceScheduler (name = "force_default_octave", builderNames = all_default_octave_builders)) | |
0 | 154 |
155 c["schedulers"].append (SingleBranchScheduler (name = "stable octave", | |
156 change_filter = octave_stable_filter, | |
157 treeStableTimer = 5*60, | |
158 builderNames = all_stable_octave_builders)) | |
159 | |
20 | 160 ### DISABLED because there doesn't seem to be a way to limit this |
161 ### action to users logged in to the web interface; instead, forcing | |
162 ### builds is allowed for anyone. WTF!?! | |
163 ### c["schedulers"].append (ForceScheduler (name = "force_stable_octave", builderNames = all_stable_octave_builders)) | |
0 | 164 |
165 ## Here, branch is the mxe-octave branch. | |
166 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32", | |
167 branch = "default", | |
168 change_filter = mxe_octave_default_filter, | |
169 builderNames = ["w32-on-debian"], | |
170 hour = 0)) | |
171 | |
172 ## Here, branch is the mxe-octave branch. | |
173 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32", | |
174 branch = "default", | |
175 change_filter = mxe_octave_default_filter, | |
176 builderNames = ["w64-32-on-debian"], | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
177 hour = 0)) |
0 | 178 |
179 ## Here, branch is the mxe-octave branch. | |
180 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64", | |
181 branch = "default", | |
182 change_filter = mxe_octave_default_filter, | |
183 builderNames = ["w64-64-on-debian"], | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
184 hour = 0)) |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
185 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
186 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
187 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32-release", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
188 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
189 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
190 builderNames = ["w32-release-on-debian"], |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
191 hour = 8)) |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
192 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
193 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
194 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32-release", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
195 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
196 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
197 builderNames = ["w64-32-release-on-debian"], |
27
6e6cec148a95
load balancing changes for jwe workers
John W. Eaton <jwe@octave.org>
parents:
26
diff
changeset
|
198 hour = 8)) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
199 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
200 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
201 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64-release", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
202 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
203 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
204 builderNames = ["w64-64-release-on-debian"], |
27
6e6cec148a95
load balancing changes for jwe workers
John W. Eaton <jwe@octave.org>
parents:
26
diff
changeset
|
205 hour = 8)) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
206 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
207 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
208 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32-stable", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
209 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
210 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
211 builderNames = ["w32-stable-on-debian"], |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
212 hour = 16)) |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
213 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
214 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
215 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32-stable", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
216 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
217 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
218 builderNames = ["w64-32-stable-on-debian"], |
27
6e6cec148a95
load balancing changes for jwe workers
John W. Eaton <jwe@octave.org>
parents:
26
diff
changeset
|
219 hour = 16)) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
220 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
221 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
222 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64-stable", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
223 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
224 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
225 builderNames = ["w64-64-stable-on-debian"], |
27
6e6cec148a95
load balancing changes for jwe workers
John W. Eaton <jwe@octave.org>
parents:
26
diff
changeset
|
226 hour = 16)) |
0 | 227 |
228 ## Here, branch is the mxe-octave branch. | |
229 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native", | |
230 branch = "default", | |
231 change_filter = mxe_octave_default_filter, | |
232 builderNames = ["mxe-native-on-debian"], | |
28
8d18da2f836f
minor tweak for mxe-native start times
John W. Eaton <jwe@octave.org>
parents:
27
diff
changeset
|
233 hour = 8)) |
0 | 234 |
235 ## Here, branch is the mxe-octave branch. | |
236 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native-all", | |
237 branch = "default", | |
238 change_filter = mxe_octave_default_filter, | |
239 builderNames = ["mxe-native-all-on-debian"], | |
28
8d18da2f836f
minor tweak for mxe-native start times
John W. Eaton <jwe@octave.org>
parents:
27
diff
changeset
|
240 hour = 0)) |
0 | 241 |
20 | 242 ### DISABLED because there doesn't seem to be a way to limit this |
243 ### action to users logged in to the web interface; instead, forcing | |
244 ### builds is allowed for anyone. WTF!?! | |
245 ### c["schedulers"].append (ForceScheduler (name = "force_mxe_octave", builderNames = all_mxe_octave_builders)) | |
0 | 246 |
247 ## BUILDERS | |
248 | |
249 ## The 'builders' list defines the Builders, which tell Buildbot how | |
250 ## to perform a build: what steps, and which workers can execute them. | |
251 ## Note that any particular build will only take place on one worker. | |
252 | |
253 from buildbot.process.factory import BuildFactory | |
254 from buildbot.steps.source.mercurial import Mercurial | |
255 from buildbot.steps.shell import ShellCommand | |
256 from buildbot.steps.shell import Configure | |
257 from buildbot.steps.shell import Compile | |
258 from buildbot.steps.shell import Test | |
259 | |
260 ## Steps we may use in more than one build factory. | |
261 | |
262 def build_cmd_list (cmd, nice = 0, opts = []): | |
263 cmd_list = [] | |
264 | |
265 if nice != 0: | |
266 cmd_list.extend (["nice", "-n", str (nice)]) | |
267 | |
268 if isinstance (cmd, list): | |
269 cmd_list.extend (cmd) | |
270 else: | |
271 cmd_list.append (cmd) | |
272 | |
273 if isinstance (opts, list): | |
274 cmd_list.extend (opts) | |
275 else: | |
276 cmd_list.append (opts) | |
277 | |
278 return cmd_list | |
279 | |
280 | |
281 build_env = { "PATH" : "${HOME}/bin:${PATH}" }; | |
282 | |
283 def mk_octave_hg_update_step (repo, branch): | |
284 return Mercurial (repourl = repo, | |
285 defaultBranch = branch, branchType = "inrepo", | |
286 workdir = "src", mode = "full", method = "fresh", | |
287 haltOnFailure = True) | |
288 | |
289 def mk_octave_bootstrap_step (nice = 0): | |
290 boot_cmd = build_cmd_list ("./bootstrap", nice = nice) | |
291 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env, | |
292 description = "bootstrap") | |
293 | |
294 sh_rm_build_dir = ShellCommand (command = ["rm", "-rf", "build"], workdir = ".", | |
295 env = build_env, description = "clean build dir") | |
296 | |
297 sh_mk_build_dir = ShellCommand (command = ["mkdir", "build"], | |
298 description = "create build dir") | |
299 | |
300 def mk_octave_configure_step (nice = 0, opts = []): | |
301 conf_cmd = build_cmd_list ("../src/configure", nice = nice, opts = opts) | |
302 return Configure (command = conf_cmd, workdir = "build", env = build_env) | |
303 | |
304 | |
305 def mk_octave_compile_step (nice = 0, opts = []): | |
306 make_cmd = build_cmd_list (["make", "V=1"], nice = nice, opts = opts) | |
307 return Compile (command = make_cmd, workdir = "build", env = build_env, | |
308 warningPattern = ":[0-9][0-9]*:[0-9][0-9]*:warning: ") | |
309 | |
310 import re | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
311 from buildbot.process import logobserver |
0 | 312 from buildbot.process.results import SUCCESS |
313 from buildbot.process.results import FAILURE | |
314 from buildbot.process.results import WARNINGS | |
315 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
316 class octave_test_observer (logobserver.LogLineObserver): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
317 |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
318 def __init__ (self, warningPattern): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
319 logobserver.LogLineObserver.__init__ (self) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
320 if warningPattern: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
321 self.warningPattern = re.compile (warningPattern) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
322 else: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
323 self.warningPattern = None |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
324 self.rc = SUCCESS |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
325 self.total = 0 |
2 | 326 self.passed = 0 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
327 self.failed = 0 |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
328 self.warnings = 0 |
12
318c34f152fb
attempt to also notice segfaults as errors
Markus Mützel <markus.muetzel@gmx.de>
parents:
11
diff
changeset
|
329 self.errors = 0 |
2 | 330 self.summary_found = False |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
331 self.complete = False |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
332 |
2 | 333 summaryRe = re.compile (r"^Summary: *$") |
334 testsRe = re.compile (r"^ *(PASS|FAIL|REGRESSION|XFAIL|SKIP)[^\d]*(\d+)") | |
21
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
335 fatalRe = re.compile (r"[Ff][Aa][Tt][Aa][Ll]") |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
336 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
337 def outLineReceived (self, line): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
338 if self.warningPattern.match (line): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
339 self.warnings += 1 |
2 | 340 |
341 if not self.summary_found: | |
342 mo = self.summaryRe.search (line) | |
343 if mo: | |
344 self.summary_found = True | |
345 return | |
346 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
347 mo = self.testsRe.search (line) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
348 if mo: |
2 | 349 typ = mo.group(1) |
350 num = int (mo.group(2)) | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
351 self.total += num |
2 | 352 if typ == "PASS": |
353 self.passed += num | |
354 if typ == "FAIL" or typ == "REGRESSION": | |
355 if num > 0: | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
356 self.rc = FAILURE |
2 | 357 self.failed += num |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
358 |
19
e7bc00398e25
Make "errLineReceived" a method of "octave_test_observer" (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
18
diff
changeset
|
359 def errLineReceived (self, line): |
21
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
360 mo = self.fatalRe.search (line) |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
361 if mo: |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
362 self.total += 1 |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
363 self.errors += 1 |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
364 self.rc = FAILURE |
19
e7bc00398e25
Make "errLineReceived" a method of "octave_test_observer" (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
18
diff
changeset
|
365 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
366 |
0 | 367 class octave_test (Test): |
368 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
369 def __init__ (self, *args, **kwargs): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
370 Test.__init__ (self, *args, **kwargs) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
371 self.observer = octave_test_observer (warningPattern = self.warningPattern) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
372 self.addLogObserver ('stdio', self.observer) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
373 |
0 | 374 def evaluateCommand (self, cmd): |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
375 if self.observer.total: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
376 passed = self.observer.total - self.observer.failed |
0 | 377 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
378 self.setTestResults (total = self.observer.total, |
12
318c34f152fb
attempt to also notice segfaults as errors
Markus Mützel <markus.muetzel@gmx.de>
parents:
11
diff
changeset
|
379 failed = self.observer.failed + self.observer.errors, |
2 | 380 passed = self.observer.passed, |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
381 warnings = self.observer.warnings) |
0 | 382 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
383 rc = self.observer.rc |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
384 if rc == SUCCESS and self.observer.warnings: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
385 rc = WARNINGS |
0 | 386 return rc |
387 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
388 |
0 | 389 def mk_octave_test_step (nice = 0, xvfb = True): |
390 if xvfb: | |
391 cmd = ["xvfb-run", "-a", "-s", "-screen 0 640x480x24"] | |
392 else: | |
393 cmd = [] | |
394 cmd.extend (["make", "V=1", "check"]) | |
395 test_cmd = build_cmd_list (cmd, nice = nice) | |
396 return octave_test (command = test_cmd, workdir = "build", env = build_env) | |
397 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
398 |
0 | 399 def mk_octave_factory (nice, configure_opts, compile_opts, branch, xvfb = True): |
400 factory = BuildFactory () | |
401 | |
402 factory.addStep (mk_octave_hg_update_step (octave_hg_repo, branch)) | |
403 factory.addStep (mk_octave_bootstrap_step (nice = nice)) | |
404 factory.addStep (sh_rm_build_dir) | |
405 factory.addStep (sh_mk_build_dir) | |
406 factory.addStep (mk_octave_configure_step (nice = nice, opts = configure_opts)) | |
407 factory.addStep (mk_octave_compile_step (nice = nice, opts = compile_opts)) | |
408 factory.addStep (mk_octave_test_step (nice = nice, xvfb = xvfb)) | |
409 | |
410 return factory | |
411 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
412 |
0 | 413 def mk_gcc_factory (nice, compile_opts, branch): |
414 return mk_octave_factory (nice, [], compile_opts, branch) | |
415 | |
416 | |
417 def mk_gcc_4_9_factory (nice, compile_opts, branch): | |
418 return mk_octave_factory (nice, | |
419 ["CC=gcc-4.9", "CXX=g++-4.9", "F77=gfortran-4.9", "--without-magick"], | |
420 compile_opts, branch) | |
421 | |
422 | |
423 ## Default build. | |
424 def mk_gcc_5_factory (nice, compile_opts, branch): | |
425 return mk_octave_factory (nice, | |
426 ["CC=gcc-5", "CXX=g++-5", "F77=gfortran-5"], | |
427 compile_opts, branch) | |
428 | |
429 | |
430 def mk_gcc_6_factory (nice, compile_opts, branch): | |
431 return mk_octave_factory (nice, | |
432 ["CC=gcc-6", "CXX=g++-6", "F77=gfortran-6"], | |
433 compile_opts, branch) | |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
434 |
0 | 435 |
436 def mk_gcc_7_factory (nice, compile_opts, branch): | |
437 return mk_octave_factory (nice, | |
438 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7"], | |
439 compile_opts, branch) | |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
440 |
0 | 441 |
442 def mk_gcc_7_lto_factory (nice, compile_opts, branch): | |
443 return mk_octave_factory (nice, | |
444 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7", | |
445 "CFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
446 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
447 "FFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
448 "LDFLAGS=-flto=4", | |
449 "NM=gcc-nm-7", "AR=gcc-ar-7", "RANLIB=gcc-ranlib-7"], | |
450 compile_opts, branch) | |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
451 |
0 | 452 |
453 def mk_gcc_lto_factory (nice, compile_opts, branch): | |
454 return mk_octave_factory (nice, | |
455 ["CFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
456 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
457 "FFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
458 "LDFLAGS=-flto=4", | |
459 "NM=gcc-nm", "AR=gcc-ar", "RANLIB=gcc-ranlib"], | |
460 compile_opts, branch) | |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
461 |
0 | 462 |
463 no_extras = ["--disable-docs", | |
464 "--disable-fftw-threads", | |
465 "--disable-java", | |
466 "--disable-jit", | |
467 "--disable-openmp", | |
468 "--disable-readline", | |
29
819a898b1960
no-extras factory: Add more switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28
diff
changeset
|
469 "--disable-rapidjson", |
0 | 470 "--without-amd", |
471 "--without-arpack", | |
472 "--without-bz2", | |
473 "--without-camd", | |
474 "--without-ccolamd", | |
475 "--without-cholmod", | |
476 "--without-colamd", | |
477 "--without-curl", | |
478 "--without-cxsparse", | |
479 "--without-fftw3", | |
480 "--without-fftw3f", | |
481 "--without-fltk", | |
17
cfa6aaf2a7eb
use --without-fontconfig and --without-freetype for no-extras builds
John W. Eaton <jwe@octave.org>
parents:
16
diff
changeset
|
482 "--without-fontconfig", |
0 | 483 "--without-framework-opengl", |
17
cfa6aaf2a7eb
use --without-fontconfig and --without-freetype for no-extras builds
John W. Eaton <jwe@octave.org>
parents:
16
diff
changeset
|
484 "--without-freetype", |
0 | 485 "--without-glpk", |
486 "--without-hdf5", | |
487 "--without-klu", | |
488 "--without-magick", | |
489 "--without-opengl", | |
490 "--without-openssl", | |
491 "--without-portaudio", | |
492 "--without-qhull", | |
29
819a898b1960
no-extras factory: Add more switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28
diff
changeset
|
493 "--without-qhull_r", |
0 | 494 "--without-qrupdate", |
495 "--without-qscintilla", | |
496 "--without-qt", | |
497 "--without-sndfile", | |
29
819a898b1960
no-extras factory: Add more switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28
diff
changeset
|
498 "--without-spqr", |
0 | 499 "--without-sundials_ida", |
500 "--without-sundials_nvecserial", | |
501 "--without-umfpack", | |
502 "--without-x", | |
503 "--without-z"] | |
504 | |
505 def mk_no_extras_factory (nice, compile_opts, branch): | |
506 return mk_octave_factory (nice, no_extras, compile_opts, branch) | |
507 | |
508 | |
509 def mk_clang_3_8_factory (nice, compile_opts, branch): | |
510 return mk_octave_factory (nice, | |
511 ["CC=clang-3.8", "CXX=clang++-3.8"], | |
512 compile_opts, branch) | |
513 | |
514 | |
515 def mk_clang_3_9_factory (nice, compile_opts, branch): | |
516 return mk_octave_factory (nice, | |
517 ["CC=clang-3.9", "CXX=clang++-3.9"], | |
518 compile_opts, branch) | |
519 | |
520 def mk_clang_4_0_factory (nice, compile_opts, branch): | |
521 return mk_octave_factory (nice, | |
522 ["CC=clang-4.0", "CXX=clang++-4.0"], | |
523 compile_opts, branch) | |
524 | |
525 def mk_clang_5_0_factory (nice, compile_opts, branch): | |
526 return mk_octave_factory (nice, | |
527 ["CC=clang-5.0", "CXX=clang++-5.0"], | |
528 compile_opts, branch) | |
529 | |
530 def mk_clang_factory (nice, compile_opts, branch): | |
531 return mk_octave_factory (nice, | |
532 ["CC=clang", "CXX=clang++"], | |
533 compile_opts, branch) | |
534 | |
535 def mk_clang_osx_factory (nice, compile_opts, branch): | |
536 ## The linker does search /usr/local/lib, but it does so after | |
537 ## searching /usr/lib. That selects a readline library that is not | |
538 ## fully compatible with GNU readline. | |
539 return mk_octave_factory (nice, | |
540 ["CC=clang", | |
541 "CXX=clang++", | |
542 "CPPFLAGS=-I/opt/X11/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include", | |
543 "LDFLAGS=-L/usr/local/lib -L/opt/X11/lib -L/usr/local/opt/qt/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/texinfo/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/openblas/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib", | |
544 "PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/qt/lib/pkgconfig", | |
545 "--enable-link-all-dependencies", | |
546 "--with-x=no", | |
547 "--without-osmesa", | |
548 "--with-blas=openblas"], | |
549 compile_opts, branch, xvfb = False) | |
550 | |
551 from buildbot.config import BuilderConfig | |
552 | |
553 c["builders"] = [] | |
554 | |
555 c["builders"].append (BuilderConfig (name = "gcc-6-debian", | |
556 workernames = ["mtmx-debian-x86_64"], | |
557 factory = mk_gcc_6_factory (10, "-j2", "default"))) | |
558 | |
23
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
559 c["builders"].append (BuilderConfig (name = "gcc-debian", |
9 | 560 workernames = ["jwe-debian-x86_64-3"], |
23
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
561 factory = mk_gcc_factory (19, "-j8", "default"))) |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
562 |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
563 c["builders"].append (BuilderConfig (name = "stable-gcc-debian", |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
564 workernames = ["jwe-debian-x86_64-3"], |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
565 factory = mk_gcc_factory (19, "-j8", "stable"))) |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
566 |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
567 c["builders"].append (BuilderConfig (name = "gcc-lto-debian", |
31
08ec2af0065b
temporarily move jobs from jwe-2 to jwe-4
John W. Eaton <jwe@octave.org>
parents:
30
diff
changeset
|
568 workernames = ["jwe-debian-x86_64-4"], |
32 | 569 factory = mk_gcc_lto_factory (19, "-j16", "default"))) |
23
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
570 |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
571 c["builders"].append (BuilderConfig (name = "stable-gcc-lto-debian", |
31
08ec2af0065b
temporarily move jobs from jwe-2 to jwe-4
John W. Eaton <jwe@octave.org>
parents:
30
diff
changeset
|
572 workernames = ["jwe-debian-x86_64-4"], |
32 | 573 factory = mk_gcc_lto_factory (19, "-j16", "stable"))) |
0 | 574 |
575 c["builders"].append (BuilderConfig (name = "gcc-fedora", | |
576 workernames = ["das_fc25-x86_64"], | |
11 | 577 factory = mk_gcc_factory (0, "-j4", "default"))) |
0 | 578 |
579 c["builders"].append (BuilderConfig (name = "stable-gcc-fedora", | |
580 workernames = ["das_fc25-x86_64"], | |
11 | 581 factory = mk_gcc_factory (0, "-j4", "stable"))) |
0 | 582 |
583 c["builders"].append (BuilderConfig (name = "gcc-lto-fedora", | |
584 workernames = ["das_fc25-x86_64"], | |
11 | 585 factory = mk_gcc_lto_factory (10, "-j4", "default"))) |
0 | 586 |
587 c["builders"].append (BuilderConfig (name = "no-extras-debian", | |
31
08ec2af0065b
temporarily move jobs from jwe-2 to jwe-4
John W. Eaton <jwe@octave.org>
parents:
30
diff
changeset
|
588 workernames = ["jwe-debian-x86_64-4"], |
32 | 589 factory = mk_no_extras_factory (19, "-j16", "default"))) |
0 | 590 |
591 c["builders"].append (BuilderConfig (name = "stable-no-extras-debian", | |
31
08ec2af0065b
temporarily move jobs from jwe-2 to jwe-4
John W. Eaton <jwe@octave.org>
parents:
30
diff
changeset
|
592 workernames = ["jwe-debian-x86_64-4"], |
32 | 593 factory = mk_no_extras_factory (19, "-j16", "stable"))) |
0 | 594 |
595 c["builders"].append (BuilderConfig (name = "clang-3.9-debian", | |
596 workernames = ["mtmx-debian-x86_64"], | |
597 factory = mk_clang_3_9_factory (19, "-j2", "default"))) | |
598 | |
23
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
599 c["builders"].append (BuilderConfig (name = "clang-debian", |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
600 workernames = ["jwe-debian-x86_64-0"], |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
601 factory = mk_clang_factory (19, "-j6", "default"))) |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
602 |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
603 c["builders"].append (BuilderConfig (name = "stable-clang-debian", |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
604 workernames = ["jwe-debian-x86_64-0"], |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
605 factory = mk_clang_factory (19, "-j6", "stable"))) |
0 | 606 |
607 c["builders"].append (BuilderConfig (name = "clang-fedora", | |
608 workernames = ["das_fc25-x86_64"], | |
11 | 609 factory = mk_clang_factory (19, "-j4", "default"))) |
0 | 610 |
611 | |
13
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
612 c["builders"].append (BuilderConfig (name = "stable-clang-fedora", |
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
613 workernames = ["das_fc25-x86_64"], |
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
614 factory = mk_clang_factory (19, "-j4", "stable"))) |
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
615 |
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
616 |
0 | 617 c["builders"].append (BuilderConfig (name = "clang-osx", |
618 workernames = ["epfl-elcapitan-x86_64"], | |
619 factory = mk_clang_osx_factory (0, "-j4", "default"))) | |
620 | |
621 c["builders"].append (BuilderConfig (name = "stable-clang-osx", | |
622 workernames = ["epfl-elcapitan-x86_64"], | |
623 factory = mk_clang_osx_factory (0, "-j4", "stable"))) | |
624 | |
625 | |
626 def mk_mxe_octave_hg_update_step (repo): | |
627 return Mercurial (repourl = repo, | |
628 defaultBranch = "default", branchType = "inrepo", | |
629 workdir = "src", mode = "full", method = "fresh", | |
630 haltOnFailure = True) | |
631 | |
632 | |
633 def mk_mxe_octave_bootstrap_step (nice = 0): | |
10
c1bb39356540
master.cfg: Run bootstrap script for MXE Octave builders (bug #55802).
Markus Mützel <markus.muetzel@gmx.de>
parents:
9
diff
changeset
|
634 boot_cmd = build_cmd_list ("./bootstrap", nice = nice) |
0 | 635 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env, |
636 description = "bootstrap") | |
637 | |
638 | |
639 def mk_mxe_octave_configure_step (nice = 0, branch = "default", opts = []): | |
640 conf_cmd = build_cmd_list (["./configure", | |
641 "--with-pkg-dir=../../mxe-pkg-src", | |
642 "--with-ccache", "--enable-octave=" + branch, | |
643 "--enable-binary-packages"], | |
644 nice = nice, opts = opts) | |
645 return Configure (command = conf_cmd, workdir = "src", env = build_env) | |
646 | |
647 | |
648 def mk_mxe_octave_clean_step (nice = 0): | |
649 boot_cmd = build_cmd_list (["make", "clean"], nice = nice) | |
650 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env, | |
651 description = "clean") | |
652 | |
653 | |
654 ## Timeout is large for these steps because mxe-octave currently only | |
655 ## prints a status update for each package, not detailed output from | |
656 ## make. The way the dependencies currently work, making | |
657 ## hg-octave-dist will also cause all the build tools to be updated, | |
658 ## and some of those make take significant time to build, especially | |
659 ## if the build is running on a heavily loaded system and this step | |
660 ## has a high nice value. | |
661 | |
662 def mk_mxe_octave_hg_tarball_step (nice = 0, jobs = 8, branch = "default"): | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
663 |
4
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
664 make_cmd = build_cmd_list (["make", "JOBS=" + str (jobs), "hg-octave-dist", "hg-octave-branch=" + branch], |
0 | 665 nice = nice) |
666 return Compile (command = make_cmd, workdir = "src", env = build_env, | |
667 timeout = 14400) | |
668 | |
669 | |
670 def mk_mxe_octave_compile_step (nice = 0, jobs = 8, opts = []): | |
671 make_cmd = build_cmd_list (["make", "JOBS=" + str (jobs)], | |
672 nice = nice, opts = opts) | |
673 return Compile (command = make_cmd, workdir = "src", env = build_env, | |
674 timeout = 14400) | |
675 | |
676 | |
677 def mk_mxe_octave_factory (nice, jobs, branch, configure_opts, compile_opts): | |
678 factory = BuildFactory () | |
679 | |
680 factory.addStep (mk_mxe_octave_hg_update_step (mxe_octave_hg_repo)) | |
681 factory.addStep (mk_mxe_octave_bootstrap_step (nice = nice)) | |
682 ## Must run configure to ensure clean target will work, then must | |
683 ## run configure again to recreate makefile. | |
684 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch, | |
685 opts = configure_opts)) | |
686 factory.addStep (mk_mxe_octave_clean_step (nice = nice)) | |
687 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch, | |
688 opts = configure_opts)) | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
689 |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
690 factory.addStep (mk_mxe_octave_compile_step (nice = nice, jobs = jobs, |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
691 opts = "prerequisites")) |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
692 |
4
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
693 if branch != "release": |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
694 ## Create a tarball file from an hg checkout, then build from that. |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
695 ## This also builds all dependencies for Octave, so it can take a |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
696 ## while. Using ccache should help us significantly since we are |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
697 ## typically rebuilding the same sets of packages repeatedly. |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
698 |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
699 factory.addStep (mk_mxe_octave_hg_tarball_step (nice = nice, jobs = jobs, |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
700 branch = branch)) |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
701 |
0 | 702 factory.addStep (mk_mxe_octave_compile_step (nice = nice, jobs = jobs, |
703 opts = compile_opts)) | |
4
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
704 |
0 | 705 ## factory.addStep (mk_mxe_octave_test_step (nice = nice)) |
706 | |
707 return factory | |
708 | |
709 | |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
710 def mk_w32_factory (nice, jobs, branch, configure_opts, compile_opts): |
0 | 711 return mk_mxe_octave_factory (nice, jobs, branch, |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
712 configure_opts + |
0 | 713 ["--enable-qt5", |
714 "--enable-devel-tools", | |
715 "--disable-windows-64", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
716 "--disable-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
717 "--disable-fortran-int64", |
0 | 718 "--disable-system-opengl"], |
719 compile_opts) | |
720 | |
721 | |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
722 def mk_w64_32_factory (nice, jobs, branch, configure_opts, compile_opts): |
0 | 723 return mk_mxe_octave_factory (nice, jobs, branch, |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
724 configure_opts + |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
725 ["--enable-qt5", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
726 "--enable-devel-tools", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
727 "--enable-windows-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
728 "--enable-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
729 "--disable-fortran-int64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
730 "--disable-system-opengl"], |
0 | 731 compile_opts) |
732 | |
733 | |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
734 def mk_w64_64_factory (nice, jobs, branch, configure_opts, compile_opts): |
0 | 735 return mk_mxe_octave_factory (nice, jobs, branch, |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
736 configure_opts + |
0 | 737 ["--enable-qt5", |
738 "--enable-devel-tools", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
739 "--enable-windows-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
740 "--enable-64", |
0 | 741 "--enable-fortran-int64", |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
742 "--disable-system-opengl"], |
0 | 743 compile_opts) |
744 | |
745 | |
746 def mk_native_factory (nice, jobs, branch, compile_opts): | |
747 return mk_mxe_octave_factory (nice, jobs, branch, | |
748 ["--enable-native-build", | |
749 "--enable-qt5", | |
750 "--enable-lib64-directory", | |
751 "--enable-pic-flag", | |
752 "--disable-devel-tools", | |
753 "--enable-system-x11-libs", | |
754 "--enable-system-fontconfig", | |
755 "--enable-system-gcc", | |
756 "gnu-linux"], | |
757 compile_opts) | |
758 | |
759 | |
760 def mk_native_all_factory (nice, jobs, branch, compile_opts): | |
761 return mk_mxe_octave_factory (nice, jobs, branch, | |
762 ["--enable-native-build", | |
763 "--enable-qt5", | |
764 "--enable-lib64-directory", | |
765 "--enable-pic-flag", | |
766 "--disable-devel-tools", | |
767 "--disable-system-x11-libs", | |
768 "--disable-system-fontconfig", | |
769 "--disable-system-gcc", | |
770 "--disable-system-opengl", | |
771 "gnu-linux"], | |
772 compile_opts) | |
773 | |
774 | |
775 c["builders"].append (BuilderConfig (name = "w32-on-debian", | |
9 | 776 workernames = ["jwe-debian-x86_64-0"], |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
777 factory = mk_w32_factory (19, 8, "default", |
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
778 ["--enable-system-octave"], |
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
779 ["nsis-installer", "7z-dist"]))) |
0 | 780 |
781 c["builders"].append (BuilderConfig (name = "w64-32-on-debian", | |
9 | 782 workernames = ["jwe-debian-x86_64-1"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
783 factory = mk_w64_32_factory (19, 8, "default", |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
784 ["--enable-system-octave"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
785 ["nsis-installer", "7z-dist"]))) |
0 | 786 |
787 c["builders"].append (BuilderConfig (name = "w64-64-on-debian", | |
31
08ec2af0065b
temporarily move jobs from jwe-2 to jwe-4
John W. Eaton <jwe@octave.org>
parents:
30
diff
changeset
|
788 workernames = ["jwe-debian-x86_64-4"], |
33
227454cf16f8
increase job limit for mxe builds on jwe-4
John W. Eaton <jwe@octave.org>
parents:
32
diff
changeset
|
789 factory = mk_w64_64_factory (19, 16, "default", |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
790 ["--enable-system-octave"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
791 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
792 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
793 c["builders"].append (BuilderConfig (name = "w32-release-on-debian", |
9 | 794 workernames = ["jwe-debian-x86_64-0"], |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
795 factory = mk_w32_factory (19, 8, "release", |
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
796 ["--disable-system-octave"], |
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
797 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
798 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
799 c["builders"].append (BuilderConfig (name = "w64-32-release-on-debian", |
9 | 800 workernames = ["jwe-debian-x86_64-1"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
801 factory = mk_w64_32_factory (19, 8, "release", |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
802 ["--disable-system-octave"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
803 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
804 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
805 c["builders"].append (BuilderConfig (name = "w64-64-release-on-debian", |
31
08ec2af0065b
temporarily move jobs from jwe-2 to jwe-4
John W. Eaton <jwe@octave.org>
parents:
30
diff
changeset
|
806 workernames = ["jwe-debian-x86_64-4"], |
33
227454cf16f8
increase job limit for mxe builds on jwe-4
John W. Eaton <jwe@octave.org>
parents:
32
diff
changeset
|
807 factory = mk_w64_64_factory (19, 16, "release", |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
808 ["--disable-system-octave"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
809 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
810 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
811 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
812 c["builders"].append (BuilderConfig (name = "w32-stable-on-debian", |
9 | 813 workernames = ["jwe-debian-x86_64-0"], |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
814 factory = mk_w32_factory (19, 8, "stable", |
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
815 ["--enable-system-octave"], |
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
816 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
817 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
818 c["builders"].append (BuilderConfig (name = "w64-32-stable-on-debian", |
9 | 819 workernames = ["jwe-debian-x86_64-1"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
820 factory = mk_w64_32_factory (19, 8, "stable", |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
821 ["--enable-system-octave"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
822 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
823 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
824 c["builders"].append (BuilderConfig (name = "w64-64-stable-on-debian", |
31
08ec2af0065b
temporarily move jobs from jwe-2 to jwe-4
John W. Eaton <jwe@octave.org>
parents:
30
diff
changeset
|
825 workernames = ["jwe-debian-x86_64-4"], |
33
227454cf16f8
increase job limit for mxe builds on jwe-4
John W. Eaton <jwe@octave.org>
parents:
32
diff
changeset
|
826 factory = mk_w64_64_factory (19, 16, "stable", |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
827 ["--enable-system-octave"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
828 ["nsis-installer", "7z-dist"]))) |
0 | 829 |
830 c["builders"].append (BuilderConfig (name = "mxe-native-on-debian", | |
27
6e6cec148a95
load balancing changes for jwe workers
John W. Eaton <jwe@octave.org>
parents:
26
diff
changeset
|
831 workernames = ["jwe-debian-x86_64-3"], |
0 | 832 factory = mk_native_factory (19, 8, "default", "tar-dist"))) |
833 | |
834 c["builders"].append (BuilderConfig (name = "mxe-native-all-on-debian", | |
27
6e6cec148a95
load balancing changes for jwe workers
John W. Eaton <jwe@octave.org>
parents:
26
diff
changeset
|
835 workernames = ["jwe-debian-x86_64-3"], |
0 | 836 factory = mk_native_all_factory (19, 8, "default", "tar-dist"))) |
837 | |
838 | |
839 ## PROJECT IDENTITY | |
840 | |
841 ## the 'title' string will appear at the top of this buildbot | |
842 ## installation's html.WebStatus home page (linked to the 'titleURL') | |
843 ## and is embedded in the title of the waterfall HTML page. | |
844 | |
845 c["title"] = "GNU Octave Buildbot" | |
846 c["titleURL"] = "https://octave.org" | |
847 | |
848 # The 'buildbotURL' string should point to the location where the buildbot's | |
849 # internal web server is visible. This typically uses the port number set in | |
850 # the 'www' entry below, but with an externally-visible host name which the | |
851 # buildbot cannot figure out without some help. | |
852 | |
5
0b956eea0df3
move master web server back to port 8010
John W. Eaton <jwe@octave.org>
parents:
4
diff
changeset
|
853 c['buildbotURL'] = "http://buildbot.octave.org:8010/" |
0 | 854 |
855 ## Minimalistic config to activate new web UI | |
856 | |
857 from buildbot.plugins import util | |
858 | |
859 c['www'] = { | |
5
0b956eea0df3
move master web server back to port 8010
John W. Eaton <jwe@octave.org>
parents:
4
diff
changeset
|
860 "port" : 8010, |
0 | 861 "plugins" : { "waterfall_view" : True } |
862 } | |
863 | |
15 | 864 c['www']['ui_default_config'] = { |
865 "Waterfall.scaling_waterfall": 0.02, | |
25
180e9db46fa3
omit old builders from waterfall view by default
John W. Eaton <jwe@octave.org>
parents:
24
diff
changeset
|
866 "Waterfall.lazy_limit_waterfall": 400, |
180e9db46fa3
omit old builders from waterfall view by default
John W. Eaton <jwe@octave.org>
parents:
24
diff
changeset
|
867 ## A bug makes this setting the opposite of what it appears. |
180e9db46fa3
omit old builders from waterfall view by default
John W. Eaton <jwe@octave.org>
parents:
24
diff
changeset
|
868 "Waterfall.show_old_builders": True |
15 | 869 } |
870 | |
20 | 871 ### HOW TF is this supposed to work to limit access to things like forcing or |
872 ### stopping builds through the web interface. Nothing seems to limit the | |
873 ### force actions to users who are logged in. WTF!?! | |
874 ## authz = util.Authz ( | |
875 ## stringsMatcher = util.fnmatchStrMatcher, | |
876 ## allowRules = [ | |
877 ## util.AnyEndpointMatcher (role = "admins", defaultDeny = False), | |
878 ## # admins can do anything, | |
879 ## # defaultDeny = False: if user does not have the admin role, we continue parsing rules | |
880 ## util.StopBuildEndpointMatcher (role = "admins"), | |
881 ## util.ForceBuildEndpointMatcher (role = "admins"), | |
882 ## # if future Buildbot implement new control, we are safe with this last rule | |
883 ## util.AnyControlEndpointMatcher (role = "admins") | |
884 ## ], | |
885 ## roleMatchers = [ | |
886 ## # role owner is granted when property owner matches the email of the user | |
887 ## util.RolesFromOwner (role = "owner") | |
888 ## ] | |
889 ## ) | |
890 | |
891 auth = util.UserPasswordAuth (octave_buildbot_config.master_id_and_pass) | |
892 | |
893 c['www']['auth'] = auth | |
894 ## c['www']['authz'] = authz | |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
895 |
0 | 896 ## DB URL |
897 | |
898 ## This specifies what database buildbot uses to store its state. You | |
899 ## can leave this at its default for all but the largest installations. | |
900 | |
901 c["db"] = { "db_url" : "sqlite:///state.sqlite" } | |
902 | |
903 ## NOTIFICATIONS | |
904 | |
905 from buildbot.plugins import reporters | |
906 | |
907 c["services"] = [] | |
908 | |
909 m = reporters.MailNotifier (fromaddr = "NO-REPLY@octave.org", | |
910 sendToInterestedUsers = False, | |
911 extraRecipients = ["octave-buildbot@gnu.org"], | |
912 mode = "failing") | |
913 c["services"].append (m) |