[Buildbot-commits] [Buildbot] #1737: Scheduler: treeStableTimer=None is not really immediate

Buildbot buildbot-devel at lists.sourceforge.net
Wed Dec 15 05:41:21 UTC 2010


#1737: Scheduler: treeStableTimer=None is not really immediate
------------------------+---------------------------------------------------
Reporter:  PiotrSikora  |       Owner:           
    Type:  defect       |      Status:  new      
Priority:  minor        |   Milestone:  undecided
 Version:  0.8.2        |    Keywords:           
------------------------+---------------------------------------------------
 Below are two changes received at the same time from Gerrit:

 {{{
 2010-12-15 04:58:15+0000 [-] gerrit: {"type":"ref-
 updated","submitter":{"name":"Piotr
 Sikora","email":"piotr.sikora at ..."},"refUpdate":{"oldRev":"a32a9172783eb3eb36b1188f49f764db092c8d46","newRev":"84dc23cb8f2f7fef2b0fbbfcfc68ba6c4b757390","refName":"master","project":"test001"}}
 2010-12-15 04:58:15+0000 [-] adding change, who Piotr Sikora
 <piotr.sikora at ...>, 1 files, rev=84dc23cb8f2f7fef2b0fbbfcfc68ba6c4b757390,
 branch=master, repository=, comments Gerrit: patchset(s) merged., category
 ref-updated, project test001
 2010-12-15 04:58:15+0000 [-] gerrit: {"type":"change-
 merged","change":{"project":"test001","branch":"master","id":"I84dc23cb8f2f7fef2b0fbbfcfc68ba6c4b757390","number":"123","subject":"xxx","owner":{"name":"Piotr
 Sikora","email":"piotr.sikora at ..."},"url":"..."},"patchSet":{"number":"1","revision":"84dc23cb8f2f7fef2b0fbbfcfc68ba6c4b757390","ref":"refs/changes/23/123/1","uploader":{"name":"Piotr
 Sikora","email":"piotr.sikora at ..."}},"submitter":{"name":"Piotr
 Sikora","email":"piotr.sikora at ..."}}
 2010-12-15 04:58:15+0000 [-] adding change, who Piotr Sikora
 <piotr.sikora at ...>, 1 files, rev=84dc23cb8f2f7fef2b0fbbfcfc68ba6c4b757390,
 branch=master, repository=, comments xxx, category change-merged, project
 test001
 2010-12-15 04:58:15+0000 [-] starting build <Build OpenBSD-test001> using
 slave <SlaveBuilder builder='OpenBSD-test001' slave='OpenBSD'>
 }}}

 Both changes have the same:[[BR]]
 - who,[[BR]]
 - project,[[BR]]
 - branch,[[BR]]
 - revision.

 However, they have different:[[BR]]
 - revlink,[[BR]]
 - comments,[[BR]]
 - category.

 Using Scheduler with '''treeStableTimer=None''' and following filter
 '''will trigger only single build''' (using latest change for "change-
 merged"), '''instead of expected two builds''':

 {{{
 filter = ChangeFilter(project="test001", branch="master")
 Scheduler(name="OpenBSD-test001", builderNames="OpenBSD-test001",
 change_filter=filter, treeStableTimer=None)
 }}}

 After changing filter to trigger only on "ref-updated", it will trigger
 single build (using change for "ref-updated"), which makes me sure that
 this error isn't configuration issue:

 {{{
 filter = ChangeFilter(project="test001", branch="master", category="ref-
 updated")
 }}}

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


More information about the Commits mailing list