# We use only one scheduling right now, a nightly one, which reruns everything
-# TODO: setup a rebuilder in response to CVS commits
+# TODO: setup a rebuilder in response to SVN commits
# TODO: Define a list of all slaves and use it here and in the definition of c['builders']
from buildbot.scheduler import Scheduler, Nightly, Periodic
nightly_scheduler = Nightly(
- "nightly",
- ["linux_amd64_pthreads_O3",
- "linux_amd64_ucontext_O3",
- "linux_i386_pthreads_O3",
- "linux_i386_ucontext_O3",
- "mac_os_x_pthreads",
- "mac_os_x_ucontext",
- "windows_builder"],
- hour=[12,24],
- minute=15)
-
-
-
+ "nightly",
+ ["linux_amd64_pthreads_O3",
+ "linux_amd64_ucontext_O3",
+ "linux_i386_pthreads_O3",
+ "linux_i386_ucontext_O3",
+ "mac_os_x_pthreads",
+ "mac_os_x_ucontext",
+ "windows_builder"],
+ hour=[12,24],
+ minute=15)
c['schedulers'] = [nightly_scheduler]
now = Periodic("now", [
- "linux_amd64_pthreads_O3",
- "linux_amd64_ucontext_O3",
- "linux_i386_pthreads_O3",
- "linux_i386_ucontext_O3",
- "mac_os_x_pthreads",
- "mac_os_x_ucontext",
- "windows_builder"
- ], 60*20*1)
+ "linux_amd64_pthreads_O3",
+ "linux_amd64_ucontext_O3",
+ "linux_i386_pthreads_O3",
+ "linux_i386_ucontext_O3",
+ "mac_os_x_pthreads",
+ "mac_os_x_ucontext",
+ "windows_builder"
+ ], 60*20*1)
c['schedulers'] = [nightly_scheduler]
####################################################################################
# builders declarations
-from buildbot import locks
-from buildbot.process import step, factory
from extensions import CustomSVN, CustomConfigure, CustomCheck
+from buildbot.process import step, factory
from buildbot.process.step import ShellCommand
-
-# the following lock manages the builds of the machine bob
-bob_lock = locks.MasterLock("bob_lock")
-
-# the following lock manages the builds of the machine artimon
-artimon_lock = locks.MasterLock("artimon_lock")
-
-# the following lock manages the builds of the machine blase
-blaise_lock = locks.MasterLock("blaise_lock")
-
-# the following lock manages the builds of the machine fastnet
-fastnet_lock = locks.MasterLock("fastnet_lock")
-
# factories
-
-
pthreads_factory_O3= factory.BuildFactory()
pthreads_factory_O3.addStep(CustomSVN, name ="{svn update}", baseURL='svn://scm.gforge.inria.fr/svn/simgrid/simgrid/', defaultBranch='trunk', mode="update")
pthreads_factory_O3.addStep(step.ShellCommand,name = "{svn revert}",description = "running svn revert",descriptionDone = "svn revert",
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"])
-# builders
+# One lock per machine since some tests open sockets on fixed ports
+from buildbot import locks
+bob_lock = locks.MasterLock("bob_lock")
+artimon_lock = locks.MasterLock("artimon_lock")
+fastnet_lock = locks.MasterLock("fastnet_lock")
-c['builders'] = [
- {'name':'linux_amd64_pthreads_O3',
- 'slavename':'bob_pthreads',
- 'builddir':'/var/lib/buildbot/simgrid/linux_amd64_pthreads/builddir_O3',
- 'factory':pthreads_factory_O3,
- 'locks': [bob_lock]},
-
-
-
- {'name':'linux_amd64_ucontext_O3',
- 'slavename':'bob_ucontext',
- 'builddir':'/var/lib/buildbot/simgrid/linux_amd64_ucontext/builddir_O3',
- 'factory':ucontext_factory_O3,
- 'locks': [bob_lock]},
-
-
- {'name':'mac_os_x_pthreads',
- 'slavename':'fastnet_pthreads',
- 'builddir':'/var/buildbot/simgrid/mac_os_x_pthreads/builddir',
- 'factory':pthreads_factory_O3,
- 'locks': [fastnet_lock]},
-
- {'name':'mac_os_x_ucontext',
- 'slavename':'fastnet_ucontext',
- 'factory':ucontext_factory_O3,
- 'builddir':'/var/buildbot/simgrid/mac_os_x_ucontext/builddir',
- 'locks': [fastnet_lock]},
-
-
- {'name':'windows_builder',
- 'slavename':'windows_slave',
- 'builddir':"C:\\buildslave\\projects\\simgrid\\builddir",
- 'factory':windows_factory},
-
-
- {'name':'linux_i386_pthreads_O3',
- 'slavename':'artimon_pthreads',
- 'builddir':'/var/lib/buildbot/simgrid/linux_i386_pthreads/builddir_O3',
- 'factory':pthreads_factory_O3,
- 'locks': [artimon_lock]},
-
-
- {'name':'linux_i386_ucontext_O3',
- 'slavename':'artimon_ucontext',
- 'builddir':'/var/lib/buildbot/simgrid/linux_i386_ucontext/builddir_O3',
- 'factory':ucontext_factory_O3,
- 'locks': [artimon_lock]}
- ]
+# builders
+c['builders'] = [
+ {'name':'linux_amd64_pthreads_O3',
+ 'slavename':'bob_pthreads',
+ 'builddir':'/var/lib/buildbot/simgrid/linux_amd64_pthreads/builddir_O3',
+ 'factory':pthreads_factory_O3,
+ 'locks': [bob_lock]},
+
+ {'name':'linux_amd64_ucontext_O3',
+ 'slavename':'bob_ucontext',
+ 'builddir':'/var/lib/buildbot/simgrid/linux_amd64_ucontext/builddir_O3',
+ 'factory':ucontext_factory_O3,
+ 'locks': [bob_lock]},
+
+
+
+ {'name':'linux_i386_pthreads_O3',
+ 'slavename':'artimon_pthreads',
+ 'builddir':'/var/lib/buildbot/simgrid/linux_i386_pthreads/builddir_O3',
+ 'factory':pthreads_factory_O3,
+ 'locks': [artimon_lock]},
+
+ {'name':'linux_i386_ucontext_O3',
+ 'slavename':'artimon_ucontext',
+ 'builddir':'/var/lib/buildbot/simgrid/linux_i386_ucontext/builddir_O3',
+ 'factory':ucontext_factory_O3,
+ 'locks': [artimon_lock]},
+
+
+
+ {'name':'mac_os_x_pthreads',
+ 'slavename':'fastnet_pthreads',
+ 'builddir':'/var/buildbot/simgrid/mac_os_x_pthreads/builddir',
+ 'factory':pthreads_factory_O3,
+ 'locks': [fastnet_lock]},
+
+ {'name':'mac_os_x_ucontext',
+ 'slavename':'fastnet_ucontext',
+ 'factory':ucontext_factory_O3,
+ 'builddir':'/var/buildbot/simgrid/mac_os_x_ucontext/builddir',
+ 'locks': [fastnet_lock]},
+
+
+
+ {'name':'windows_builder',
+ 'slavename':'windows_slave',
+ 'builddir':"C:\\buildslave\\projects\\simgrid\\builddir",
+ 'factory':windows_factory}
+ ]
# status html page
from buildbot.status import mail
-
c['status'].append(mail.MailNotifier(builders=['mac_os_x_pthreads'],
-fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
-subject = "Error occured during pthread build of SimGrid on fastnet",
-extraRecipients=["malek.cherier@loria.fr","martin.quinson@loria.fr"],
-sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "Error occured during pthread build of SimGrid on fastnet",
+ extraRecipients=["malek.cherier@loria.fr","martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['mac_os_x_ucontext'],
-fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
-subject = "Error occured during ucontext build of SimGrid on fastnet",
-extraRecipients=["malek.cherier@loria.fr",
-"martin.quinson@loria.fr"],sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "Error occured during ucontext build of SimGrid on fastnet",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_amd64_pthreads'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "Error occured during pthread build of SimGrid on bob",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "Error occured during pthread build of SimGrid on bob",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_amd64_pthreads_O0'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "Error occured during pthread build of SimGrid on bob (compiler optimizations O0 enabled)",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "Error occured during pthread build of SimGrid on bob (compiler optimizations O0 enabled)",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_amd64_pthreads_O3'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "Error occured during pthread build of SimGrid on bob (compiler optimizations O3 enabled)",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "Error occured during pthread build of SimGrid on bob (compiler optimizations O3 enabled)",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_amd64_ucontext'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "Error occured during ucontext build of SimGrid on bob",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "Error occured during ucontext build of SimGrid on bob",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_amd64_ucontext_O0'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing (compiler optimizations O0 enabled)",
- subject = "Error occured during ucontext build of SimGrid on bob",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing (compiler optimizations O0 enabled)",
+ subject = "Error occured during ucontext build of SimGrid on bob",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_amd64_ucontext_O3'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "Error occured during ucontext build of SimGrid on bob (compiler optimizations O3 enabled)",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "Error occured during ucontext build of SimGrid on bob (compiler optimizations O3 enabled)",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['windows_builder'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "An error occurs during the build of SimGRID on Windows platform",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "An error occurs during the build of SimGRID on Windows platform",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_i386_pthreads'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "An error occurs during the build of SimGRID on artimon platform",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "An error occurs during the build of SimGRID on artimon platform",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_i386_pthreads_O0'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O0 enabled)" ,
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O0 enabled)" ,
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_i386_pthreads_O3'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O3 enabled)" ,
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O3 enabled)" ,
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_i386_ucontext'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "An error occurs during the build of SimGRID on artimon platform",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "An error occurs during the build of SimGRID on artimon platform",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_i386_ucontext_O0'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O0 enabled)",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O0 enabled)",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
c['status'].append(mail.MailNotifier(builders=['linux_i386_ucontext_O3'],
- fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
- subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O3 enabled)",
- extraRecipients=["malek.cherier@loria.fr",
- "martin.quinson@loria.fr"],
- sendToInterestedUsers=True))
-
-
-
-
+ fromaddr="bob@loria.fr",relayhost="smtp.loria.fr",mode="failing",
+ subject = "An error occurs during the build of SimGRID on artimon platform (compiler optimizations O3 enabled)",
+ extraRecipients=["malek.cherier@loria.fr", "martin.quinson@loria.fr"],
+ sendToInterestedUsers=True))
# Project informations