[users at bb.net] How to get sufficient content in Changes for filtering

Greg Bullock greg at nwra.com
Fri Jun 30 20:25:21 UTC 2017


Using
Buildbot version: 0.8.12
Twisted version: 16.2.0

I'd like to tweak the ChangeFilter(...) that's passed to the 
SingleBranchScheduler(...) in my master.cfg so it schedules builds only 
when files in specific folders change, as detected by a SVNPoller(...).

The simplest way, I think, would be to add set its codebase_re parameter 
to a compiled regular expression (e.g., 
codebase_re=re.compile(my_pattern, re.I)).

Alas, this doesn't suffice because it seems that the Changes, as 
displayed in twistd.log, don't have any useful information in the 
codebase field nor many other fields. A typical excerpt from twistd.log 
looks like

2017-05-03 16:16:07-0700 [-] Adding change revision 11107
2017-05-03 16:16:08-0700 [-] added change Change(revision=u'11107', 
who=u'username', branch=None, comments=u"Some log information for this 
revision", when=1493853367, category=None, project=u'', 
repository=u'svn://kraken/trunk/sf_code', codebase=u'') to database
2017-05-03 16:16:08-0700 [-] SVNPoller: finished polling None


I suspect this has to do with the split_file parameter of 
SVNPoller(...). It's currently not set explicitly, so as I understand 
it, the default is util.svn.split_file_alwaystrunk.

A few questions:

How to get some diagnostic information on the input and the output of 
the SVNPoller's split_file function?

How to get more content in the Changes(...)?

How to diagnose why a ChangeFilter accepts or rejects a particular Change?


-- 
Greg Bullock
NorthWest Research Associates
301 Webster St.
Monterey, CA  93940
(831) 582-4907
greg at nwra.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170630/c30a60e1/attachment.html>


More information about the users mailing list