[Buildbot] #3533: API request handling failure

Buildbot trac trac at buildbot.net
Sat Apr 23 01:47:57 UTC 2016

#3533: API request handling failure
Reporter:  cmouse     |       Owner:
    Type:  undecided  |      Status:  new
Priority:  major      |   Milestone:  undecided
 Version:  master     |  Resolution:
Keywords:             |

Comment (by rayalan):

 It also happens with building periodically (via rebuild). Problem is in
 line 196 in buildbot/db/changes.py where the line should read `if change
 and change['changeid'] != (toChanges.get(cb) or {}).get('changeid'):`
 rather than the current `if change and change['changeid'] !=
 toChanges.get(cb, {}).get('changeid')`

 There are a couple ways that the codebase can set to None (such as the
 `toChanges[cb] = {'changeid': None}` line on 192), and the line just
 errors out when those are hit.

 I'm working on a patch; the fix is much easier than proving it with a unit
 test change.

Ticket URL: <http://trac.buildbot.net/ticket/3533#comment:1>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation

More information about the bugs mailing list