<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Sorry. I forgot to append this snippet from the master.cfg file:</p>
<p>trunk_sf_codechanged = SingleBranchScheduler(name =
"trunk_sf_codechanged",<br>
change_filter =
filter.ChangeFilter(<br>
repository
= <a class="moz-txt-link-rfc2396E" href="svn://kraken">"svn://kraken"</a> if _hypersensitive_SVNPoller else
<a class="moz-txt-link-rfc2396E" href="svn://kraken/trunk/sf_code">"svn://kraken/trunk/sf_code"</a>,<br>
branch =
None,<br>
#
codebase_re=re.compile(gpsii_src_dirs_pat, re.I),<br>
# --
Filtering with codebase_re didn't work because typical Changes<br>
# has
empty codebase (and other) fields, e.g.,<br>
#
Change(revision=u'11381', <br>
#
who=u'greg', <br>
#
branch=None, <br>
#
comments=u"blah, blah, blah...", <br>
#
when=1498780626, <br>
#
category=None, <br>
#
project=u'', <br>
#
repository=u'<a class="moz-txt-link-freetext" href="svn://kraken/trunk/sf_code">svn://kraken/trunk/sf_code</a>', <br>
#
codebase=u'')<br>
),<br>
treeStableTimer = 1 * 30 if
_test_buildbot else 10 * 60,<br>
builderNames =
all_gpsii_builders,<br>
)<br>
<br>
<br>
c['schedulers'] = [<br>
force_scheduler,<br>
]<br>
<br>
####### CHANGESOURCES<br>
from buildbot.changes.svnpoller import SVNPoller<br>
from twisted.python import log<br>
<br>
# the 'change_source' setting tells the buildmaster how it should
find out<br>
# about source code changes.<br>
<br>
svn_nwra_mry_poller = SVNPoller(<br>
svnurl = <a class="moz-txt-link-rfc2396E" href="svn://kraken">"svn://kraken"</a> if
_hypersensitive_SVNPoller else <a class="moz-txt-link-rfc2396E" href="svn://kraken/trunk/sf_code">"svn://kraken/trunk/sf_code"</a>,<br>
svnuser = "buildbot",<br>
svnpasswd = "buildbot",<br>
svnbin = 'C:/Program
Files/TortoiseSVN/bin/svn.exe',<br>
pollinterval = 1 * 60 if
_hypersensitive_SVNPoller else 10 * 60,<br>
pollAtLaunch = True,<br>
)<br>
<br>
<br>
c['change_source'] = [<br>
svn_nwra_mry_poller,<br>
]</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 6/30/2017 1:25 PM, Greg Bullock
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:035d828d-0711-049c-b9a8-2f9555b84bd3@nwra.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Using <br>
Buildbot version: 0.8.12<br>
Twisted version: 16.2.0
<p>I'd like to tweak the <font face="Courier New, Courier,
monospace">ChangeFilter(...)</font> that's passed to the <font
face="Courier New, Courier, monospace">SingleBranchScheduler(...)</font>
in my master.cfg so it schedules builds only when files in
specific folders change, as detected by a <font face="Courier
New, Courier, monospace">SVNPoller(...)</font>.</p>
<p>The simplest way, I think, would be to add set its codebase_re
parameter to a compiled regular expression (e.g., <font
face="Courier New, Courier, monospace">codebase_re=re.compile(my_pattern,
re.I)</font>).</p>
<p>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</p>
<p>2017-05-03 16:16:07-0700 [-] Adding change revision 11107<br>
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'<a
class="moz-txt-link-freetext"
href="svn://kraken/trunk/sf_code" moz-do-not-send="true">svn://kraken/trunk/sf_code</a>',
codebase=u'') to database<br>
2017-05-03 16:16:08-0700 [-] SVNPoller: finished polling None</p>
<p><br>
</p>
<p>I suspect this has to do with the split_file parameter of <font
face="Courier New, Courier, monospace">SVNPoller(...)</font>.
It's currently not set explicitly, so as I understand it, the
default is <font face="Courier New, Courier, monospace">util.svn.split_file_alwaystrunk</font>.</p>
<p>A few questions:</p>
<p>How to get some diagnostic information on the input and the
output of the <font face="Courier New, Courier, monospace">SVNPoller</font>'s
split_file function?</p>
<p>How to get more content in the <font face="Courier New,
Courier, monospace">Changes(...)</font>?</p>
<p>How to diagnose why a <font face="Courier New, Courier,
monospace">ChangeFilter</font> accepts or rejects a particular
<font face="Courier New, Courier, monospace">Change</font>?<br>
</p>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Greg Bullock
NorthWest Research Associates
301 Webster St.
Monterey, CA 93940
(831) 582-4907
<a class="moz-txt-link-abbreviated" href="mailto:greg@nwra.com" moz-do-not-send="true">greg@nwra.com</a></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@buildbot.net">users@buildbot.net</a>
<a class="moz-txt-link-freetext" href="https://lists.buildbot.net/mailman/listinfo/users">https://lists.buildbot.net/mailman/listinfo/users</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Greg Bullock
NorthWest Research Associates
301 Webster St.
Monterey, CA 93940
(831) 582-4907
<a class="moz-txt-link-abbreviated" href="mailto:greg@nwra.com">greg@nwra.com</a></pre>
</body>
</html>