[Buildbot-commits] buildbot ChangeLog,1.522,1.523
Brian Warner
warner at users.sourceforge.net
Sun Oct 23 05:06:04 UTC 2005
Update of /cvsroot/buildbot/buildbot
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4351
Modified Files:
ChangeLog
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-358
Creator: Brian Warner <warner at lothar.com>
fix some upgrade problems, fix the forgotten-builds problem
* buildbot/status/builder.py (BuildStatus): derive from
styles.Versioned, fix upgrade of .sourceStamp attribute. Also set
the default (i.e. unknown) .slavename to "???" instead of None,
since even unknown slavenames need to be printed eventually.
(BuilderStatus): also derive from styles.Versioned . More
importantly, determine .nextBuildNumber at creation/unpickling
time by scanning the directory of saved BuildStatus instances and
choosing one larger than the highest-numbered one found. This
should fix the problem where random errors during upgrades cause
the buildbot to forget about earlier builds. .nextBuildNumber is
no longer stored in the pickle.
(Status.builderAdded): if we can't unpickle the BuilderStatus,
at least log the error. Also call Builder.determineNextBuildNumber
once the basedir is set.
* buildbot/master.py (BuildMaster.loadChanges): do
styles.doUpgrade afterwards, in case I decide to make Changes
derived from styles.Versioned some day and forget to make this
change later.
--This line, and those below, will be ignored--
Files to commit:
<can't compute list>
This list might be incomplete or outdated if editing the log
message was not invoked from an up-to-date changes buffer!
Index: ChangeLog
===================================================================
RCS file: /cvsroot/buildbot/buildbot/ChangeLog,v
retrieving revision 1.522
retrieving revision 1.523
diff -u -d -r1.522 -r1.523
--- ChangeLog 22 Oct 2005 23:22:10 -0000 1.522
+++ ChangeLog 23 Oct 2005 05:06:02 -0000 1.523
@@ -1,5 +1,26 @@
2005-10-22 Brian Warner <warner at lothar.com>
+ * buildbot/status/builder.py (BuildStatus): derive from
+ styles.Versioned, fix upgrade of .sourceStamp attribute. Also set
+ the default (i.e. unknown) .slavename to "???" instead of None,
+ since even unknown slavenames need to be printed eventually.
+ (BuilderStatus): also derive from styles.Versioned . More
+ importantly, determine .nextBuildNumber at creation/unpickling
+ time by scanning the directory of saved BuildStatus instances and
+ choosing one larger than the highest-numbered one found. This
+ should fix the problem where random errors during upgrades cause
+ the buildbot to forget about earlier builds. .nextBuildNumber is
+ no longer stored in the pickle.
+ (Status.builderAdded): if we can't unpickle the BuilderStatus,
+ at least log the error. Also call Builder.determineNextBuildNumber
+ once the basedir is set.
+
+ * buildbot/master.py (BuildMaster.loadChanges): do
+ styles.doUpgrade afterwards, in case I decide to make Changes
+ derived from styles.Versioned some day and forget to make this
+ change later.
+
+
* buildbot/test/test_runner.py (Options.testForceOptions): skip
when running under older pythons (<2.3) in which the shlex module
doesn't have a 'split' function.
More information about the Commits
mailing list