[cig-commits] r7550 - cs/buildbot/trunk/buildbot
leif at geodynamics.org
leif at geodynamics.org
Thu Jun 28 12:31:30 PDT 2007
Author: leif
Date: 2007-06-28 12:31:30 -0700 (Thu, 28 Jun 2007)
New Revision: 7550
Modified:
cs/buildbot/trunk/buildbot/config.py
cs/buildbot/trunk/buildbot/lines.py
Log:
Run nightly builds throughout the night, instead of scheduling them
all for 3 am. The Macs in particular have difficulty running all the
builds at once, leading to sporadic failures.
Modified: cs/buildbot/trunk/buildbot/config.py
===================================================================
--- cs/buildbot/trunk/buildbot/config.py 2007-06-28 19:04:10 UTC (rev 7549)
+++ cs/buildbot/trunk/buildbot/config.py 2007-06-28 19:31:30 UTC (rev 7550)
@@ -237,8 +237,9 @@
### for line in lines
+ hour = 0
for line in self.lines:
- line.postGenerate()
+ hour = line.postGenerate(hour)
self.collectSchedulers()
Modified: cs/buildbot/trunk/buildbot/lines.py
===================================================================
--- cs/buildbot/trunk/buildbot/lines.py 2007-06-28 19:04:10 UTC (rev 7549)
+++ cs/buildbot/trunk/buildbot/lines.py 2007-06-28 19:31:30 UTC (rev 7550)
@@ -65,7 +65,7 @@
return
- def postGenerate(self):
+ def postGenerate(self, hour):
# If I depend upon another project, trigger a build of me
# every time a build of the other project completes
@@ -81,9 +81,10 @@
# If other projects depend upon me, make sure I am installed
# on all slaves eventually (within a 24-hour period).
if self.isDependency:
- self.schedulers.append(self.newNightlyScheduler())
+ self.schedulers.append(self.newNightlyScheduler(hour))
+ hour = hour + 1
- return
+ return hour
def newBuilder(self, buildEnv, buildConfig):
@@ -219,8 +220,8 @@
return s
- def newNightlyScheduler(self):
- return Nightly("nightly " + self.fullName(), self.builderNames, hour=3, minute=0)
+ def newNightlyScheduler(self, hour):
+ return Nightly("nightly " + self.fullName(), self.builderNames, hour=hour, minute=0)
class Trunk(Line):
More information about the cig-commits
mailing list