Fix GerritStatusPush 'startCB' not work#1570
Fix GerritStatusPush 'startCB' not work#1570stanzgy wants to merge 1 commit intobuildbot:masterfrom stanzgy:master
Conversation
Fix GerritStatusPush 'startCB' not work with Gerrit+Git. GerritStatusPush 'startCB' triggers before buildsteps start. But the condition 'startCB' decide to send code reviews is the property 'gerrit_branch' which is set during the buildbot.steps.source.gerrit.Gerrit buildstep. So use property 'event.change.id' instead of 'gerrit_branch' to verify Gerrit source to ensure 'startCB' works properly. The property 'got_revision' here also has same problem when 'startCB' triggers.
|
Tests are failing: |
|
This plugin is to be rewritten completely in buildbot nine. Even if I'm not convinced that the startCB is a feature people should enable (that's too much email spam for your users), this still makes a good usecase for the new reporter framework. So this has to be fixed in eight branch, not master. |
|
People want that in the beginning then you will get all your developers Le mar. 3 mars 2015 08:49, stanzgy notifications@github.com a écrit :
|
|
yeah, in most times the massive emails from gerrit CI bots are really On Tue, Mar 3, 2015 at 3:53 PM, Pierre Tardy notifications@github.com
Best Regards, Zhang Gengyuan |
|
As we agreed, this particular change is eight specific. |
Fix GerritStatusPush 'startCB' not work with Gerrit+Git.
GerritStatusPush 'startCB' triggers before buildsteps start. But the condition
'startCB' decide to send code reviews is the property 'gerrit_branch' which is
set during the buildbot.steps.source.gerrit.Gerrit buildstep. So use property
'event.change.id' instead of 'gerrit_branch' to verify Gerrit source to ensure
'startCB' works properly.
The property 'got_revision' here also has same problem when 'startCB' triggers.