Opened 4 years ago

Last modified 2 months ago

#946 new defect

BzrPoller Unhandled Error

Reported by: Hbot Owned by:
Priority: patches-accepted Milestone: 0.9.+
Version: 0.8.1 Keywords: bzr database docs
Cc:

Description (last modified by dustin)

buildbot 0.8.1 bzr_buildbot.py from git Python 2.7 Bazaar (bzr) 2.2b4 Debian GNU/Linux 5.0.3

from bzr_buildbot import BzrPoller
bzr_poller = BzrPoller(
    url="lp:stellarium",
    poll_interval=5*60,
)
c['change_source'] = [ bzr_poller ]
2010-07-31 16:34:44+0200 [-] adding 1 new changesources, removing 0
2010-07-31 16:34:44+0200 [-] BzrPoller(bzr+ssh://bazaar.launchpad.net/stellarium) starting
2010-07-31 16:34:44+0200 [-] Unhandled Error
        Traceback (most recent call last):
          File "/home/stellarium/lib/python2.7/buildbot/master.py", line 889, in <lambda>
            d.addCallback(lambda res: self.loadConfig_Sources(change_sources))
          File "/home/stellarium/lib/python2.7/buildbot/master.py", line 988, in loadConfig_Sources
            d.addCallback(addNewOnes)
          File "/home/stellarium/lib/python2.7/twisted/internet/defer.py", line 260, in addCallback
            callbackKeywords=kw)
          File "/home/stellarium/lib/python2.7/twisted/internet/defer.py", line 249, in addCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File "/home/stellarium/lib/python2.7/twisted/internet/defer.py", line 441, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/home/stellarium/lib/python2.7/buildbot/master.py", line 986, in addNewOnes
            [self.change_svc.addSource(s) for s in added_sources]
          File "/home/stellarium/lib/python2.7/buildbot/changes/manager.py", line 91, in addSource
            source.setServiceParent(self)
          File "/home/stellarium/lib/python2.7/twisted/application/service.py", line 185, in setServiceParent
            self.parent.addService(self)
          File "/home/stellarium/lib/python2.7/twisted/application/service.py", line 305, in addService
            service.startService()
          File "/home/stellarium/buildmaster/bzr_buildbot.py", line 243, in startService
            for change in reversed(self.parent.changes):
        exceptions.AttributeError: ChangeManager instance has no attribute 'changes'

Attachments (1)

bzr_buildbot.patch (6.4 KB) - added by tom.prince 2 years ago.
Uniffied diff version

Download all attachments as: .zip

Change History (11)

comment:1 Changed 4 years ago by Hbot

And for python2.5 :

2010-07-31 20:21:42+0200 [-] Unhandled Error
        Traceback (most recent call last):
          File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 757, in gotResult
            _inlineCallbacks(r, g, deferred)
          File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 735, in _inlineCallbacks
            result = result.throwExceptionIntoGenerator(g)
          File "/usr/lib/python2.5/site-packages/twisted/python/failure.py", line 331, in throwExceptionIntoGenerator
            return g.throw(self.type, self.value, self.tb)
        --- <exception caught here> ---
          File "/home/stellarium/buildmaster/bzr_buildbot.py", line 273, in poll
            self.getRawChanges)
          File "/usr/lib/python2.5/site-packages/twisted/internet/threads.py", line 24, in _putResultInDeferred
            result = f(*args, **kwargs)
          File "/home/stellarium/buildmaster/bzr_buildbot.py", line 288, in getRawChanges
            branch = bzrlib.branch.Branch.open_containing(self.url)[0]
          File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 190, in open_containing
            possible_transports)
          File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 899, in open_containing
            return BzrDir.open_containing_from_transport(transport)
          File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 920, in open_containing_from_transport
            result = BzrDir.open_from_transport(a_transport)
          File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 879, in open_from_transport
            return format.open(transport, _found=True)
          File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 2065, in open
            return self._open(transport)
          File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 3294, in _open
            return remote.RemoteBzrDir(transport, self)
          File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 114, in __init__
            response = self._call('BzrDir.open', path)
          File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 52, in _call
            return self._client.call(method, *args)
          File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 129, in call
            result, protocol = self.call_expecting_body(method, *args)
          File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 142, in call_expecting_body
            method, args, expect_response_body=True)
          File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 90, in _call_and_read_response
            expect_body=expect_response_body)
          File "/usr/lib/python2.5/site-packages/bzrlib/smart/message.py", line 299, in read_response_tuple
            self._wait_for_response_args()
          File "/usr/lib/python2.5/site-packages/bzrlib/smart/message.py", line 264, in _wait_for_response_args
            self._read_more()
          File "/usr/lib/python2.5/site-packages/bzrlib/smart/message.py", line 286, in _read_more
            "Unexpected end of message. "
        bzrlib.errors.ConnectionReset: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist. 
Last edited 4 years ago by dustin (previous) (diff)

comment:2 Changed 4 years ago by dustin

  • Description modified (diff)
  • Keywords bzr added; BzrPoller removed

Looks like the bzr_buildbot.py needs to get updated to work with the new schedulerdb stuff - changes are no longer available as a simple list. While we're at it, it should get merged into Buildbot proper. And tested. And documented.

comment:3 Changed 4 years ago by dustin

  • Keywords database docs added

I'd like to see this done in 0.8.2, but 0.8.3 is fine if that's what it comes to

comment:4 Changed 4 years ago by dustin

  • Milestone changed from 0.8.2 to 0.8.3

comment:5 Changed 4 years ago by ayust

  • Milestone changed from 0.8.3 to 0.8.+

comment:6 Changed 4 years ago by dustin

c.f. #1755, which has a workaround.

Bzr support is currently orphaned, so this is unlikely to be fixed until a Bzr maintainer steps forward.

Changed 2 years ago by tom.prince

Uniffied diff version

comment:7 Changed 2 years ago by tom.prince

patch originally by hsorby

comment:8 Changed 2 years ago by tom.prince

  • Priority changed from critical to minor

Changing to minor, as we don't have a bzr maintainer.

comment:9 Changed 19 months ago by tom.prince

  • Priority changed from minor to patches-accepted

comment:10 Changed 2 months ago by dustin

  • Milestone changed from 0.8.+ to 0.9.+

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.