[Buildbot-commits] [SPAM] [Buildbot] #948: Periodic scheduler doesn't run without changes

Buildbot buildbot-devel at lists.sourceforge.net
Mon Aug 2 15:19:42 UTC 2010


#948: Periodic scheduler doesn't run without changes
---------------------+------------------------------------------------------
Reporter:  bsavelev  |       Owner:           
    Type:  defect    |      Status:  new      
Priority:  major     |   Milestone:  undecided
 Version:  0.8.1     |    Keywords:           
---------------------+------------------------------------------------------
 I have my own periodic scheduler:

 {{{
 class Taskman(buildbot.schedulers.timed.Periodic):
   def run(self):
     import datetime
     fo = open("/tmp/foo.txt", "a+")
     fo.write("%s\n" % datetime.datetime.now())
     fo.close()
     buildbot.schedulers.timed.Periodic.run(self)
 }}}

 and add to my buildbot configuration:
 {{{
 c['schedulers'].append(hacks.Taskman(name = 'task manager',
 builderNames=[], periodicBuildTimer = 60))
 }}}

 As I understood from documentation
 {{{
 This simple scheduler just triggers a build every N seconds.
 }}}

 in /tmp/foo.txt I should see new line every minute with timestamp from
 datetime.datetime.now()

 but it doesn't-(

 After about 20 minutes I saw only one line that comes after buildbot
 start.


 Next i'll try send some fake changes
 {{{
 buildbot sendchange --username 'test1' --master buildbot.i.drweb.ru:9989
 --comments 'test' foobar
 change sent successfully
 }}}

 and new line with timestamp comes to /tmp/foo.txt!

 So, periodic scheduler depends on changes, that is not good.

 I test this scheduler with 0.7.12 too, and 0.8.1 have regression for this
 feature.

-- 
Ticket URL: <http://buildbot.net/trac/ticket/948>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list