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