[Buildbot-commits] [Buildbot] #1969: How can I config GerritChangeSource trigger building?

Buildbot nobody at buildbot.net
Wed May 25 05:48:16 UTC 2011


#1969: How can I config GerritChangeSource trigger building?
----------------------------+----------------------
Reporter:  clino            |       Owner:
    Type:  support-request  |      Status:  new
Priority:  major            |   Milestone:  ongoing
 Version:  master           |  Resolution:
Keywords:  gerrit           |
----------------------------+----------------------

Comment (by dustin):

 This is probably the function you want to look at, in
 master/buildbot/schedulers/basic.py:

 {{{
 #!py
         def changeCallback(change):
             # ignore changes delivered while we're not running
             if not self._change_subscription:
                 return

             if change_filter and not change_filter.filter_change(change):
                 return
             if fileIsImportant:
                 try:
                     important = fileIsImportant(change)
                 except:
                     log.err(failure.Failure(),
                             'in fileIsImportant check for %s' % change)
                     return
             else:
                 important = True
 }}}

 If you insert a few 'print' statements at various points (probably before
 and after the change_filter check), you should be able to see what's going
 on.

 You may also want to update to the most recent commits on master - many
 bugs have been fixed since May 2.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/1969#comment:6>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list