[Buildbot-commits] buildbot/buildbot interfaces.py,1.36,1.37

Brian Warner warner at users.sourceforge.net
Mon Oct 24 21:39:54 UTC 2005


Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19252/buildbot

Modified Files:
	interfaces.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-376
Creator:  Brian Warner <warner at lothar.com>

improve VC handling of old buildslaves, sometimes refuse to build

	* buildbot/process/step.py (CVS.startVC): refuse to build
	update/copy -style builds on a non-default branch with an old
	buildslave (<=0.6.6) that doesn't know how to do it properly. The
	concern is that it will do a VC 'update' in an existing tree when
	it is supposed to be switching branches (and therefore clobbering
	the tree to do a full checkout), thus building the wrong source.
	This used to be a warning, but I think the confusion it is likely
	to cause warrants making it an error.
	(SVN.startVC): same, also make mode=export on old slaves an error
	(Darcs.startVC): same
	(Git.startVC): improve error message for non-Git-enabled slaves
	(Arch.checkSlaveVersion): same. continue to emit a warning when a
	specific revision is built on a slave that doesn't pay attention
	to args['revision'], because for slowly-changing trees it will
	probably do the right thing, and because we have no way to tell
	whether we're asking it to build the most recent version or not.
	* buildbot/interfaces.py (BuildSlaveTooOldError): new exception

	* buildbot/scripts/runner.py (SlaveOptions.postOptions): assert
	that 'master' is in host:portnum format, to catch errors sooner


Index: interfaces.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/interfaces.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- interfaces.py	21 Oct 2005 08:03:39 -0000	1.36
+++ interfaces.py	24 Oct 2005 21:39:52 -0000	1.37
@@ -12,6 +12,8 @@
     pass
 class BuilderInUseError(Exception):
     pass
+class BuildSlaveTooOldError(Exception):
+    pass
 
 class IChangeSource(Interface):
     """Object which feeds Change objects to the changemaster. When files or





More information about the Commits mailing list