[Buildbot] #3461: getChangesForBuild: 'NoneType' object has no attribute '__getitem__'

Buildbot trac trac at buildbot.net
Mon Feb 22 11:09:47 UTC 2016


#3461: getChangesForBuild:  'NoneType' object has no attribute '__getitem__'
---------------------+-------------------
Reporter:  tardyp    |      Owner:
    Type:  defect    |     Status:  new
Priority:  critical  |  Milestone:  0.9.0
 Version:  0.9.0b7   |   Keywords:
---------------------+-------------------
 {{{
 08:41 <cmouse> hi!
 08:41 <cmouse> with 0.9.0b6 i'm seeing this in twistd.log
 08:41 <cmouse> http://p.ip.fi/bGgW
 }}}
 {{{
 2016-02-22 09:40:16+0200 [-] substantiating slave <LatentSlaveBuilder
 builder=u'core-ci' slave=u'docker-jessie-01'>
 2016-02-22 09:40:16+0200 [-] while handling API request
         Traceback (most recent call last):
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/www/rest.py", line 406, in renderRest
             request.write(data)
           File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
             self.gen.throw(type, value, traceback)
         --- <exception caught here> ---
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/www/rest.py", line 123, in handleErrors
             yield
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/www/rest.py", line 338, in renderRest
             data = yield ep.get(rspec, kwargs)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/data/changes.py", line 73, in get
             changes = yield
 self.master.db.changes.getChangesForBuild(buildid)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
             result = g.send(result)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/db/changes.py", line 197, in getChangesForBuild
             while ((toChanges.get(cb, {}).get('changeid') not in
 change['parent_changeids']) and
         exceptions.TypeError: 'NoneType' object has no attribute
 '__getitem__'

 2016-02-22 09:40:16+0200 [-] <RemoteShellCommand '['git', '--version']'>:
 RemoteCommand.run [9]
 2016-02-22 09:40:16+0200 [-] command '['git', '--version']' in dir
 'build/core'
 2016-02-22 09:40:16+0200 [Broker,1,10.217.1.111] <RemoteShellCommand
 '['git', '--version']'> rc=0
 2016-02-22 09:40:16+0200 [-] while handling API request
         Traceback (most recent call last):
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/www/rest.py", line 406, in renderRest
             request.write(data)
           File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
             self.gen.throw(type, value, traceback)
         --- <exception caught here> ---
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/www/rest.py", line 123, in handleErrors
             yield
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/www/rest.py", line 338, in renderRest
             data = yield ep.get(rspec, kwargs)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/data/changes.py", line 73, in get
             changes = yield
 self.master.db.changes.getChangesForBuild(buildid)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
             result = g.send(result)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/db/changes.py", line 197, in getChangesForBuild
             while ((toChanges.get(cb, {}).get('changeid') not in
 change['parent_changeids']) and
         exceptions.TypeError: 'NoneType' object has no attribute
 '__getitem__'

 2016-02-22 09:40:16+0200 [-] <RemoteCommand 'stat' at 140463483370768>:
 RemoteCommand.run [10]
 }}}

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


More information about the bugs mailing list