buildbot scheduler not working -
i have same problem discussed here buildbot scheduler not work, answer there may not apply -- possibly because i've got newer version of buildbot
>buildbot --version buildbot version: 0.8.12 twisted version: 16.2.0
running on windows 7 64-bit.
i'd svn commit trigger buildbot builders, instead, periodic scheduler (when enabled) triggers builders. log shows
2016-06-10 11:40:18-0700 [-] svnpoller: polling 2016-06-10 11:40:18-0700 [-] svnpoller: svnurl=file:///g:/buildbot/buildbot_repo/trunk/triggers_for_testing, root=file:///g:/buildbot/buildbot_repo, prefix=trunk/triggers_for_testing 2016-06-10 11:40:18-0700 [-] svnpoller: starting @ change 31 2016-06-10 11:40:18-0700 [-] svnpoller: _process_changes none .. 31 2016-06-10 11:40:18-0700 [-] svnpoller: finished polling none 2016-06-10 11:40:38-0700 [-] svnpoller: polling 2016-06-10 11:40:38-0700 [-] svnpoller: _process_changes 31 .. 32 2016-06-10 11:40:38-0700 [-] adding change revision 32 2016-06-10 11:40:38-0700 [-] svnpoller: finished polling none
but scheduler not trigger builders.
the answer @ above cited question says log should include entries "added change change(..." if svnpoller working, , advises within entries. log not include such entries.
below snip of master.cfg , (tail of) twistd.log files. appreciated.
snip of master.cfg:
# -*- python -*- # ex: set syntax=python: _test_buildbot = false # set true use configuration settings facilicate testing _poll_test_repository = true # set true enable testing of svnpoller , singlebranchscheduler monitoring local repository "file:///g:/buildbot/buildbot_repo/trunk/triggers_for_testing". _hypersensitive_svnpoller = true # set true facilicate testing of svnpoller , singlebranchscheduler, making them poll , changes *anywhere*. # sample buildmaster config file. must installed # 'master.cfg' in buildmaster's base directory. # dictionary buildmaster pays attention to. use # shorter alias save typing. c = buildmasterconfig = {} ####### steps <snipped...> ####### buildslaves buildbot import buildslave buildbot.schedulers.basic import singlebranchscheduler buildbot.changes import filter # 'slaves' list defines set of recognized buildslaves. each element # buildslave object, specifying unique slave name , password. same # slave name , password must configured on slave. c['slaves'] = [ buildslave.buildslave("win64-worker", "pass"), buildslave.buildslave("centos7-worker", "pass"), ] # 'protocols' contains information protocols master use # communicating slaves. # must define @ least 'port' option slaves connect master # protocol. # 'port' must match value configured buildslaves (with # --master option) c['protocols'] = {'pb': {'port': 9989}} ####### schedulers buildbot.schedulers.timed import periodic # configure schedulers, decide how react incoming changes. in # case, kick off 'ifort_win32_build', 'ifort_win64_build', gfortran_win64_build, , gfortran_centos7_build builds # define dynamic scheduler trunk_sf_codechanged = singlebranchscheduler(name = "trunk_sf_codechanged", change_filter = filter.changefilter( repository = "svn://kraken", branch = none if _hypersensitive_svnpoller else "trunk/sf_code", ), treestabletimer = 1 * 30 if _test_buildbot else 10 * 60, buildernames = ["ifort_win32_build", "ifort_win64_build", "gfortran_win64_build", "gfortran_centos7_build", ], ) triggers_for_testing_changed = singlebranchscheduler(name = "test_triggers_changed", change_filter = filter.changefilter( repository = "file:///g:/buildbot/buildbot_repo/trunk/triggers_for_testing", branch = none, ), treestabletimer = 1 * 20, buildernames = ["ifort_win32_build", "ifort_win64_build", "gfortran_win64_build", "gfortran_centos7_build", ], ) # define periodic scheduler periodicscheduler = periodic(name = "every 4 days", buildernames = ["ifort_win32_build", "ifort_win64_build", "gfortran_win64_build", "gfortran_centos7_build", ], periodicbuildtimer = 10*60 if _test_buildbot else 4*24*60*60, ) # define available schedulers c['schedulers'] = [ trunk_sf_codechanged, ] if _poll_test_repository: c['schedulers'].append(triggers_for_testing_changed) if _test_buildbot: c['schedulers'].append(periodicscheduler) ####### changesources buildbot.changes.svnpoller import svnpoller, split_file_branches twisted.python import log # 'change_source' setting tells buildmaster how should find out # source code changes. svn_nwra_mry_poller = svnpoller(svnurl = "svn://kraken" if _hypersensitive_svnpoller else "svn://kraken/trunk/sf_code", svnuser = "buildbot", svnpasswd = "buildbot", svnbin = 'c:/program files/tortoisesvn/bin/svn.exe', pollinterval = 1 * 20 if _test_buildbot else 10 * 60, split_file = split_file_branches) test_trigger_poller = svnpoller(svnurl = "file:///g:/buildbot/buildbot_repo/trunk/triggers_for_testing", svnuser = "buildbot", svnpasswd = "buildbot", svnbin = 'c:/program files/tortoisesvn/bin/svn.exe', pollinterval = 1 * 20, split_file = split_file_branches) c['change_source'] = [ svn_nwra_mry_poller, ] if _poll_test_repository: c['change_source'].append(test_trigger_poller) <snipped...>
tail of twistd.log:
2016-06-10 10:39:26-0700 [-] buildmaster running 2016-06-10 10:39:26-0700 [-] main loop terminated. 2016-06-10 10:39:26-0700 [-] server shut down. 2016-06-10 10:39:26-0700 [-] server shut down. 2016-06-10 11:33:48-0700 [-] loading buildbot.tac... 2016-06-10 11:33:48-0700 [-] loaded. 2016-06-10 11:33:48-0700 [-] twistd 16.2.0 (c:\users\buildbot\appdata\local\programs\winpython-64bit-2.7.10.3\python-2.7.10.amd64\python.exe 2.7.10) starting up. 2016-06-10 11:33:48-0700 [-] reactor class: twisted.internet.selectreactor.selectreactor. 2016-06-10 11:33:48-0700 [-] starting buildmaster -- buildbot.version: 0.8.12 2016-06-10 11:33:48-0700 [-] loading configuration 'g:\\buildbot\\master\\master.cfg' 2016-06-10 11:33:49-0700 [-] setting database url 'sqlite:///state.sqlite' 2016-06-10 11:33:49-0700 [-] setting database journal mode 'wal' 2016-06-10 11:33:49-0700 [-] using sqlite version (3, 6, 21) 2016-06-10 11:33:49-0700 [-] note: old version of sqlite not support wal journal mode; busy master may encounter 'database locked' errors. consider upgrading. 2016-06-10 11:33:49-0700 [-] adding 2 new changesources, removing 0 2016-06-10 11:33:49-0700 [-] adding 2 new slaves, removing 0 2016-06-10 11:33:49-0700 [-] adding 4 new builders, removing 0 2016-06-10 11:33:49-0700 [-] trying load status pickle g:\buildbot\master\ifort_win32_build\builder 2016-06-10 11:33:49-0700 [-] added builder ifort_win32_build tags none 2016-06-10 11:33:49-0700 [-] trying load status pickle g:\buildbot\master\gfortran_win64_build\builder 2016-06-10 11:33:49-0700 [-] added builder gfortran_win64_build tags none 2016-06-10 11:33:49-0700 [-] trying load status pickle g:\buildbot\master\gfortran_centos7_build\builder 2016-06-10 11:33:49-0700 [-] added builder gfortran_centos7_build tags none 2016-06-10 11:33:49-0700 [-] trying load status pickle g:\buildbot\master\ifort_win64_build\builder 2016-06-10 11:33:49-0700 [-] added builder ifort_win64_build tags none 2016-06-10 11:33:49-0700 [-] pbserverfactory starting on 9989 2016-06-10 11:33:49-0700 [-] starting factory <twisted.spread.pb.pbserverfactory instance @ 0x00000000056af508> 2016-06-10 11:33:49-0700 [-] adding scheduler 'test_triggers_changed' 2016-06-10 11:33:49-0700 [-] adding scheduler 'trunk_sf_codechanged' 2016-06-10 11:33:49-0700 [-] webstatus using (g:\buildbot\master\public_html) 2016-06-10 11:33:49-0700 [-] rotatelogsite starting on 8010 2016-06-10 11:33:49-0700 [-] starting factory <buildbot.status.web.baseweb.rotatelogsite instance @ 0x0000000005711208> 2016-06-10 11:33:49-0700 [-] setting http.log rotating 10 files of 10000000 bytes each 2016-06-10 11:33:49-0700 [-] buildmaster running 2016-06-10 11:34:09-0700 [-] svnpoller: polling 2016-06-10 11:34:09-0700 [-] svnpoller: svnurl=file:///g:/buildbot/buildbot_repo/trunk/triggers_for_testing, root=file:///g:/buildbot/buildbot_repo, prefix=trunk/triggers_for_testing 2016-06-10 11:34:09-0700 [-] svnpoller: starting @ change 30 2016-06-10 11:34:09-0700 [-] svnpoller: _process_changes none .. 30 2016-06-10 11:34:09-0700 [-] svnpoller: finished polling none 2016-06-10 11:34:29-0700 [broker,0,192.168.77.222] slave 'centos7-worker' attaching ipv4address(tcp, '192.168.77.222', 53458) 2016-06-10 11:34:29-0700 [broker,0,192.168.77.222] got slaveinfo 'centos7-worker' 2016-06-10 11:34:29-0700 [broker,0,192.168.77.222] starting buildslave keepalive timer 'centos7-worker' 2016-06-10 11:34:29-0700 [broker,0,192.168.77.222] bot attached 2016-06-10 11:34:29-0700 [broker,0,192.168.77.222] buildslave centos7-worker attached gfortran_centos7_build 2016-06-10 11:34:29-0700 [-] svnpoller: polling 2016-06-10 11:34:29-0700 [-] svnpoller: no changes 2016-06-10 11:34:29-0700 [-] svnpoller: _process_changes 30 .. 30 2016-06-10 11:34:29-0700 [-] svnpoller: finished polling none 2016-06-10 11:34:49-0700 [-] svnpoller: polling 2016-06-10 11:34:49-0700 [-] svnpoller: no changes 2016-06-10 11:34:49-0700 [-] svnpoller: _process_changes 30 .. 30 2016-06-10 11:34:49-0700 [-] svnpoller: finished polling none 2016-06-10 11:35:09-0700 [-] svnpoller: polling 2016-06-10 11:35:09-0700 [-] svnpoller: _process_changes 30 .. 31 2016-06-10 11:35:09-0700 [-] adding change revision 31 2016-06-10 11:35:09-0700 [-] svnpoller: finished polling none 2016-06-10 11:35:26-0700 [broker,1,169.254.203.227] slave 'win64-worker' attaching ipv4address(tcp, '169.254.203.227', 53461) 2016-06-10 11:35:26-0700 [broker,1,169.254.203.227] got slaveinfo 'win64-worker' 2016-06-10 11:35:26-0700 [broker,1,169.254.203.227] starting buildslave keepalive timer 'win64-worker' 2016-06-10 11:35:26-0700 [broker,1,169.254.203.227] bot attached 2016-06-10 11:35:26-0700 [broker,1,169.254.203.227] buildslave win64-worker attached ifort_win32_build 2016-06-10 11:35:26-0700 [broker,1,169.254.203.227] buildslave win64-worker attached gfortran_win64_build 2016-06-10 11:35:26-0700 [broker,1,169.254.203.227] buildslave win64-worker attached ifort_win64_build 2016-06-10 11:35:29-0700 [-] svnpoller: polling 2016-06-10 11:35:29-0700 [-] svnpoller: no changes 2016-06-10 11:35:29-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:35:29-0700 [-] svnpoller: finished polling none 2016-06-10 11:35:49-0700 [-] svnpoller: polling 2016-06-10 11:35:49-0700 [-] svnpoller: no changes 2016-06-10 11:35:49-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:35:49-0700 [-] svnpoller: finished polling none 2016-06-10 11:36:09-0700 [-] svnpoller: polling 2016-06-10 11:36:09-0700 [-] svnpoller: no changes 2016-06-10 11:36:09-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:36:09-0700 [-] svnpoller: finished polling none 2016-06-10 11:36:29-0700 [-] svnpoller: polling 2016-06-10 11:36:29-0700 [-] svnpoller: no changes 2016-06-10 11:36:29-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:36:29-0700 [-] svnpoller: finished polling none 2016-06-10 11:36:49-0700 [-] svnpoller: polling 2016-06-10 11:36:49-0700 [-] svnpoller: no changes 2016-06-10 11:36:49-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:36:49-0700 [-] svnpoller: finished polling none 2016-06-10 11:37:09-0700 [-] svnpoller: polling 2016-06-10 11:37:09-0700 [-] svnpoller: no changes 2016-06-10 11:37:09-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:37:09-0700 [-] svnpoller: finished polling none 2016-06-10 11:37:29-0700 [-] svnpoller: polling 2016-06-10 11:37:29-0700 [-] svnpoller: no changes 2016-06-10 11:37:29-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:37:29-0700 [-] svnpoller: finished polling none 2016-06-10 11:37:49-0700 [-] svnpoller: polling 2016-06-10 11:37:49-0700 [-] svnpoller: no changes 2016-06-10 11:37:49-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:37:49-0700 [-] svnpoller: finished polling none 2016-06-10 11:38:09-0700 [-] svnpoller: polling 2016-06-10 11:38:09-0700 [-] svnpoller: no changes 2016-06-10 11:38:09-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:38:09-0700 [-] svnpoller: finished polling none 2016-06-10 11:38:29-0700 [-] svnpoller: polling 2016-06-10 11:38:29-0700 [-] svnpoller: no changes 2016-06-10 11:38:29-0700 [-] svnpoller: _process_changes 31 .. 31 2016-06-10 11:38:29-0700 [-] svnpoller: finished polling none 2016-06-10 11:38:32-0700 [-] received sigint, shutting down. 2016-06-10 11:38:32-0700 [-] (tcp port 8010 closed) 2016-06-10 11:38:32-0700 [-] stopping factory <buildbot.status.web.baseweb.rotatelogsite instance @ 0x0000000005711208> 2016-06-10 11:38:32-0700 [broker,0,192.168.77.222] buildslave.detached(centos7-worker) 2016-06-10 11:38:32-0700 [broker,0,192.168.77.222] releaselocks(<buildslave 'centos7-worker'>): [] 2016-06-10 11:38:32-0700 [broker,0,192.168.77.222] buildslave centos7-worker detached gfortran_centos7_build 2016-06-10 11:38:32-0700 [broker,1,169.254.203.227] buildslave.detached(win64-worker) 2016-06-10 11:38:32-0700 [broker,1,169.254.203.227] releaselocks(<buildslave 'win64-worker'>): [] 2016-06-10 11:38:32-0700 [broker,1,169.254.203.227] buildslave win64-worker detached ifort_win32_build 2016-06-10 11:38:32-0700 [broker,1,169.254.203.227] buildslave win64-worker detached gfortran_win64_build 2016-06-10 11:38:32-0700 [broker,1,169.254.203.227] buildslave win64-worker detached ifort_win64_build 2016-06-10 11:38:32-0700 [-] (tcp port 9989 closed) 2016-06-10 11:38:32-0700 [-] stopping factory <twisted.spread.pb.pbserverfactory instance @ 0x00000000056af508> 2016-06-10 11:38:32-0700 [-] main loop terminated. 2016-06-10 11:38:32-0700 [-] server shut down. 2016-06-10 11:38:32-0700 [-] server shut down. 2016-06-10 11:39:56-0700 [-] loading buildbot.tac... 2016-06-10 11:39:57-0700 [-] loaded. 2016-06-10 11:39:57-0700 [-] twistd 16.2.0 (c:\users\buildbot\appdata\local\programs\winpython-64bit-2.7.10.3\python-2.7.10.amd64\python.exe 2.7.10) starting up. 2016-06-10 11:39:57-0700 [-] reactor class: twisted.internet.selectreactor.selectreactor. 2016-06-10 11:39:57-0700 [-] starting buildmaster -- buildbot.version: 0.8.12 2016-06-10 11:39:57-0700 [-] loading configuration 'g:\\buildbot\\master\\master.cfg' 2016-06-10 11:39:57-0700 [-] setting database url 'sqlite:///state.sqlite' 2016-06-10 11:39:57-0700 [-] setting database journal mode 'wal' 2016-06-10 11:39:57-0700 [-] using sqlite version (3, 6, 21) 2016-06-10 11:39:57-0700 [-] note: old version of sqlite not support wal journal mode; busy master may encounter 'database locked' errors. consider upgrading. 2016-06-10 11:39:58-0700 [-] adding 2 new changesources, removing 0 2016-06-10 11:39:58-0700 [-] adding 2 new slaves, removing 0 2016-06-10 11:39:58-0700 [-] adding 4 new builders, removing 0 2016-06-10 11:39:58-0700 [-] trying load status pickle g:\buildbot\master\ifort_win32_build\builder 2016-06-10 11:39:58-0700 [-] added builder ifort_win32_build tags none 2016-06-10 11:39:58-0700 [-] trying load status pickle g:\buildbot\master\gfortran_win64_build\builder 2016-06-10 11:39:58-0700 [-] added builder gfortran_win64_build tags none 2016-06-10 11:39:58-0700 [-] trying load status pickle g:\buildbot\master\gfortran_centos7_build\builder 2016-06-10 11:39:58-0700 [-] added builder gfortran_centos7_build tags none 2016-06-10 11:39:58-0700 [-] trying load status pickle g:\buildbot\master\ifort_win64_build\builder 2016-06-10 11:39:58-0700 [-] added builder ifort_win64_build tags none 2016-06-10 11:39:58-0700 [-] pbserverfactory starting on 9989 2016-06-10 11:39:58-0700 [-] starting factory <twisted.spread.pb.pbserverfactory instance @ 0x000000000575e8c8> 2016-06-10 11:39:58-0700 [-] adding scheduler 'test_triggers_changed' 2016-06-10 11:39:58-0700 [-] adding scheduler 'trunk_sf_codechanged' 2016-06-10 11:39:58-0700 [-] webstatus using (g:\buildbot\master\public_html) 2016-06-10 11:39:58-0700 [-] rotatelogsite starting on 8010 2016-06-10 11:39:58-0700 [-] starting factory <buildbot.status.web.baseweb.rotatelogsite instance @ 0x00000000057bb0c8> 2016-06-10 11:39:58-0700 [-] setting http.log rotating 10 files of 10000000 bytes each 2016-06-10 11:39:58-0700 [-] buildmaster running 2016-06-10 11:40:03-0700 [broker,0,169.254.203.227] slave 'win64-worker' attaching ipv4address(tcp, '169.254.203.227', 53479) 2016-06-10 11:40:03-0700 [broker,0,169.254.203.227] got slaveinfo 'win64-worker' 2016-06-10 11:40:03-0700 [broker,0,169.254.203.227] starting buildslave keepalive timer 'win64-worker' 2016-06-10 11:40:03-0700 [broker,0,169.254.203.227] bot attached 2016-06-10 11:40:03-0700 [broker,0,169.254.203.227] buildslave win64-worker attached ifort_win32_build 2016-06-10 11:40:03-0700 [broker,0,169.254.203.227] buildslave win64-worker attached gfortran_win64_build 2016-06-10 11:40:03-0700 [broker,0,169.254.203.227] buildslave win64-worker attached ifort_win64_build 2016-06-10 11:40:05-0700 [broker,1,192.168.77.222] slave 'centos7-worker' attaching ipv4address(tcp, '192.168.77.222', 53480) 2016-06-10 11:40:05-0700 [broker,1,192.168.77.222] got slaveinfo 'centos7-worker' 2016-06-10 11:40:05-0700 [broker,1,192.168.77.222] starting buildslave keepalive timer 'centos7-worker' 2016-06-10 11:40:05-0700 [broker,1,192.168.77.222] bot attached 2016-06-10 11:40:05-0700 [broker,1,192.168.77.222] buildslave centos7-worker attached gfortran_centos7_build 2016-06-10 11:40:18-0700 [-] svnpoller: polling 2016-06-10 11:40:18-0700 [-] svnpoller: svnurl=file:///g:/buildbot/buildbot_repo/trunk/triggers_for_testing, root=file:///g:/buildbot/buildbot_repo, prefix=trunk/triggers_for_testing 2016-06-10 11:40:18-0700 [-] svnpoller: starting @ change 31 2016-06-10 11:40:18-0700 [-] svnpoller: _process_changes none .. 31 2016-06-10 11:40:18-0700 [-] svnpoller: finished polling none 2016-06-10 11:40:38-0700 [-] svnpoller: polling 2016-06-10 11:40:38-0700 [-] svnpoller: _process_changes 31 .. 32 2016-06-10 11:40:38-0700 [-] adding change revision 32 2016-06-10 11:40:38-0700 [-] svnpoller: finished polling none 2016-06-10 11:40:58-0700 [-] svnpoller: polling 2016-06-10 11:40:58-0700 [-] svnpoller: no changes 2016-06-10 11:40:58-0700 [-] svnpoller: _process_changes 32 .. 32 2016-06-10 11:40:58-0700 [-] svnpoller: finished polling none 2016-06-10 11:41:18-0700 [-] svnpoller: polling 2016-06-10 11:41:18-0700 [-] svnpoller: no changes 2016-06-10 11:41:18-0700 [-] svnpoller: _process_changes 32 .. 32 2016-06-10 11:41:18-0700 [-] svnpoller: finished polling none 2016-06-10 11:41:38-0700 [-] svnpoller: polling
i managed solve problem deleting altogether the
split_file = split_file_branches
argument 2 svnpoller constructors. seems split_file not necessary polling single branch in repository organized mine.
Comments
Post a Comment