Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Portability fixups (second try). This is the bad side of using buildbots: each try...
[simgrid.git] / build / buildbot / master.cfg
1 # -*- python -*-
2 # ex: set syntax=python:
3
4 ###################################################################################
5 # This is the file configuration of the buildmaster used in the Simgrid project.
6
7 #from os import environ
8 #environ['LC_ALL'] = "C"
9
10 # The buildmaster configuration object.
11
12 c = BuildmasterConfig = {}
13
14 # Gets bot from account module
15 from account import bots
16 c['bots'] = bots
17
18
19 # Port number used by slaves
20 c['slavePortnum'] = 9989
21
22
23 ####### CHANGESOURCES
24
25 # the 'sources' list tells the buildmaster how it should find out about
26 # source code changes. Any class which implements IChangeSource can be added
27 # to this list: there are several in buildbot/changes/*.py to choose from.
28
29 c['sources'] = []
30
31 # For example, if you had CVSToys installed on your repository, and your
32 # CVSROOT/freshcfg file had an entry like this:
33 #pb = ConfigurationSet([
34 #    (None, None, None, PBService(userpass=('foo', 'bar'), port=4519)),
35 #    ])
36
37 # then you could use the following buildmaster Change Source to subscribe to
38 # the FreshCVS daemon and be notified on every commit:
39 #
40 #from buildbot.changes.freshcvs import FreshCVSSource
41 #fc_source = FreshCVSSource("cvs.example.com", 4519, "foo", "bar")
42 #c['sources'].append(fc_source)
43
44 # or, use a PBChangeSource, and then have your repository's commit script run
45 # 'buildbot sendchange', or contrib/svn_buildbot.py, or
46 # contrib/arch_buildbot.py :
47 #
48 #from buildbot.changes.pb import PBChangeSource
49 #c['sources'].append(PBChangeSource())
50
51
52
53 ####################################################################################
54 ## Scheduler configuration
55
56 # We use only one scheduling right now, a nightly one, which reruns everything
57
58 # TODO: setup a rebuilder in response to SVN commits
59 # TODO: Define a list of all slaves and use it here and in the definition of c['builders']
60
61 from buildbot.scheduler import Scheduler, Nightly, Periodic
62
63 nightly_scheduler = Nightly(
64        "nightly", 
65        ["linux_amd64_pthreads_O3",
66        "linux_amd64_ucontext_O3",
67        "linux_i386_pthreads_O3",
68        "linux_i386_ucontext_O3",
69        "mac_os_x_pthreads",
70        "mac_os_x_ucontext",
71        "windows_builder"], 
72        hour=[12,24], 
73        minute=15)          
74 c['schedulers'] = [nightly_scheduler]
75
76 now = Periodic("now", [
77       "linux_amd64_pthreads_O3",
78       "linux_amd64_ucontext_O3",
79       "linux_i386_pthreads_O3",
80       "linux_i386_ucontext_O3",
81       "mac_os_x_pthreads",
82       "mac_os_x_ucontext",
83       "windows_builder"
84       ], 60*20*1)
85 c['schedulers'] = [nightly_scheduler]
86
87
88
89 ####################################################################################
90 # builders declarations
91
92 from extensions import CustomSVN, CustomConfigure, CustomCheck
93 from buildbot.process import step, factory
94 from buildbot.process.step import ShellCommand
95
96 # factories
97 pthreads_factory_O3= factory.BuildFactory()
98 pthreads_factory_O3.addStep(CustomSVN, name ="{svn update}", baseURL='svn://scm.gforge.inria.fr/svn/simgrid/simgrid/', defaultBranch='trunk', mode="update")
99 pthreads_factory_O3.addStep(step.ShellCommand,name = "{svn revert}",description = "running svn revert",descriptionDone = "svn revert",
100                             environ={"LC_ALL":"C"}, haltOnFailure = True,command=["svn" ,"revert","-R","build"])
101 pthreads_factory_O3.addStep(step.ShellCommand,name = "{configure}", description="running configure",   descriptionDone="configure",
102                             environ={"LC_ALL":"C"}, haltOnFailure = True,command=["./configure",  "--with-pthread","--enable-compile-warnings","--enable-compile-optimizations","--enable-botbuild"])
103 pthreads_factory_O3.addStep(step.ShellCommand,name = "{make clean}",description = "running make clean",descriptionDone = "make clean",
104                             environ={"LC_ALL":"C"}, haltOnFailure = True,command=["make", "clean"])
105 pthreads_factory_O3.addStep(step.ShellCommand,name = "{make}",      description = "running make",      descriptionDone = "make",
106                             environ={"LC_ALL":"C"}, haltOnFailure = True,command=["make","-j","4"])
107 pthreads_factory_O3.addStep(CustomCheck,name ="{check all}",        description = "running check all", descriptionDone ="check all",
108                             haltOnFailure = True,command=["./checkall"])
109
110 ucontext_factory_O3= factory.BuildFactory()
111 ucontext_factory_O3.addStep(CustomSVN, name ="{svn update}",baseURL='svn://scm.gforge.inria.fr/svn/simgrid/simgrid/', defaultBranch='trunk', mode="update")
112 ucontext_factory_O3.addStep(step.ShellCommand,name = "{svn revert}",description = "running svn revert",descriptionDone = "svn revert",
113                             environ={"LC_ALL":"C"}, haltOnFailure = True,command=["svn" ,"revert","-R","build"])
114 ucontext_factory_O3.addStep(CustomConfigure,name ="{configure}",description="running configure",descriptionDone="configure",
115                             environ={"LC_ALL":"C"}, haltOnFailure = True,command=["./configure", "--with-context=ucontext","--enable-compile-warnings","--enable-compile-optimizations","--enable-botbuild"]) # Main difference with pthread_factory
116 ucontext_factory_O3.addStep(step.ShellCommand,name = "{make}",description = "running make",descriptionDone = "make",
117                             environ={"LC_ALL":"C"}, haltOnFailure = True,command=["make"])
118 ucontext_factory_O3.addStep(CustomCheck,name = "{check all}",description = "running check all",descriptionDone ="check all",
119                             environ={"LC_ALL":"C"}, haltOnFailure = True,command=["./checkall"])
120
121
122 windows_factory= factory.BuildFactory()
123 windows_factory.addStep(step.SVN, name ="{svn update}",baseURL='svn://scm.gforge.inria.fr/svn/simgrid/simgrid/', defaultBranch='trunk', mode="update")
124 windows_factory.addStep(step.ShellCommand,name = "{make}",description = "running make",descriptionDone = "make",haltOnFailure = True,command=["C:\\buildslave\\projects\\simgrid\\builddir\\buildMake", "C:\\buildslave\\projects\\simgrid\\builddir\\make_all.tst"])
125 windows_factory.addStep(step.ShellCommand,name = "{test suite}",description= "running test suite",descriptionDone ="test suite",haltOnFailure = True,command=["C:\\buildslave\\projects\\simgrid\\builddir\\Test", "C:\\buildslave\\projects\\simgrid\\builddir\\test_all.tst"])
126
127
128 # One lock per machine since some tests open sockets on fixed ports
129 from buildbot import locks
130 bob_lock = locks.MasterLock("bob_lock")
131 artimon_lock = locks.MasterLock("artimon_lock")
132 fastnet_lock = locks.MasterLock("fastnet_lock")
133
134 # builders
135 c['builders'] = [    
136      {'name':'linux_amd64_pthreads_O3',
137      'slavename':'bob_pthreads',
138      'builddir':'/var/lib/buildbot/simgrid/linux_amd64_pthreads/builddir_O3',
139      'factory':pthreads_factory_O3,
140      'locks': [bob_lock]},
141        
142      {'name':'linux_amd64_ucontext_O3',
143      'slavename':'bob_ucontext',
144      'builddir':'/var/lib/buildbot/simgrid/linux_amd64_ucontext/builddir_O3',
145      'factory':ucontext_factory_O3,
146      'locks': [bob_lock]},
147
148
149      
150      {'name':'linux_i386_pthreads_O3',
151      'slavename':'artimon_pthreads',
152      'builddir':'/var/lib/buildbot/simgrid/linux_i386_pthreads/builddir_O3',
153      'factory':pthreads_factory_O3,
154      'locks': [artimon_lock]},
155               
156      {'name':'linux_i386_ucontext_O3',
157      'slavename':'artimon_ucontext',
158      'builddir':'/var/lib/buildbot/simgrid/linux_i386_ucontext/builddir_O3',
159      'factory':ucontext_factory_O3,
160      'locks': [artimon_lock]},
161      
162      
163      
164      {'name':'mac_os_x_pthreads',
165      'slavename':'fastnet_pthreads',
166      'builddir':'/var/buildbot/simgrid/mac_os_x_pthreads/builddir',
167      'factory':pthreads_factory_O3,
168      'locks': [fastnet_lock]},
169        
170      {'name':'mac_os_x_ucontext',
171      'slavename':'fastnet_ucontext',    
172      'factory':ucontext_factory_O3,
173      'builddir':'/var/buildbot/simgrid/mac_os_x_ucontext/builddir',
174      'locks': [fastnet_lock]},
175      
176      
177      
178      {'name':'windows_builder',
179      'slavename':'windows_slave',
180      'builddir':"C:\\buildslave\\projects\\simgrid\\builddir",
181      'factory':windows_factory}
182      ]
183
184
185 # status html page
186
187 c['status'] = []
188
189 from buildbot.status import html
190 w = html.Waterfall(http_port=8010)
191
192 c['status'].append(w)
193
194 # status smtp request
195
196 from buildbot.status import mail
197
198 c['status'].append(mail.MailNotifier(builders=['mac_os_x_pthreads'],
199   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
200   subject = "Error occured during pthread build of SimGrid on fastnet",
201   extraRecipients=["malek.cherier@loria.fr","martin.quinson@loria.fr"],
202   sendToInterestedUsers=True))
203
204 c['status'].append(mail.MailNotifier(builders=['mac_os_x_ucontext'],
205   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
206   subject = "Error occured during ucontext build of SimGrid on fastnet",
207   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
208   sendToInterestedUsers=True))
209
210
211 c['status'].append(mail.MailNotifier(builders=['linux_amd64_pthreads'],
212   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
213   subject = "Error occured during pthread build of SimGrid on bob",
214   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
215   sendToInterestedUsers=True))
216                                       
217 c['status'].append(mail.MailNotifier(builders=['linux_amd64_pthreads_O0'],
218   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
219   subject = "Error occured during pthread build of SimGrid on bob (compiler optimizations O0 enabled)",
220   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
221   sendToInterestedUsers=True))
222                                       
223 c['status'].append(mail.MailNotifier(builders=['linux_amd64_pthreads_O3'],
224   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
225   subject = "Error occured during pthread build of SimGrid on bob (compiler optimizations O3 enabled)",
226   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
227   sendToInterestedUsers=True))
228
229 c['status'].append(mail.MailNotifier(builders=['linux_amd64_ucontext'],
230   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
231   subject = "Error occured during ucontext build of SimGrid on bob",
232   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
233   sendToInterestedUsers=True))  
234                                       
235 c['status'].append(mail.MailNotifier(builders=['linux_amd64_ucontext_O0'],
236   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing (compiler optimizations O0 enabled)",
237   subject = "Error occured during ucontext build of SimGrid on bob",
238   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
239   sendToInterestedUsers=True))  
240                                       
241 c['status'].append(mail.MailNotifier(builders=['linux_amd64_ucontext_O3'],
242   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
243   subject = "Error occured during ucontext build of SimGrid on bob  (compiler optimizations O3 enabled)",
244   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
245   sendToInterestedUsers=True))  
246                                      
247 c['status'].append(mail.MailNotifier(builders=['windows_builder'],
248   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
249   subject = "An error occurs during the build of SimGRID on Windows platform",
250   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
251   sendToInterestedUsers=True))
252                                       
253 c['status'].append(mail.MailNotifier(builders=['linux_i386_pthreads'],
254   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
255   subject = "An error occurs during the build of SimGRID on artimon platform",
256   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
257   sendToInterestedUsers=True))
258                                       
259                                       
260 c['status'].append(mail.MailNotifier(builders=['linux_i386_pthreads_O0'],
261   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
262   subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O0 enabled)" ,
263   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
264   sendToInterestedUsers=True))
265                                       
266 c['status'].append(mail.MailNotifier(builders=['linux_i386_pthreads_O3'],
267   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
268   subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O3 enabled)" ,
269   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
270   sendToInterestedUsers=True))
271                                       
272                                       
273 c['status'].append(mail.MailNotifier(builders=['linux_i386_ucontext'],
274   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
275   subject = "An error occurs during the build of SimGRID on artimon platform",
276   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
277   sendToInterestedUsers=True))
278                                       
279 c['status'].append(mail.MailNotifier(builders=['linux_i386_ucontext_O0'],
280   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
281   subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O0 enabled)",
282   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
283   sendToInterestedUsers=True))
284                                       
285 c['status'].append(mail.MailNotifier(builders=['linux_i386_ucontext_O3'],
286   fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
287   subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O3 enabled)",
288   extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
289   sendToInterestedUsers=True))                                                                            
290
291 # Project informations
292
293 c['projectName'] = "SimGrid compilation status"
294 c['projectURL']= "http://simgrid.gforge.inria.fr/"
295 c['buildbotURL'] = "http://bob.loria.fr:8010/"