[Buildbot-devel] Still having notification problems after updating to latest

Bob Hood bhood2 at comcast.net
Mon Nov 18 22:33:09 UTC 2013


I reported this issue a while back, and the consensus was that I was using
versions of things that were not compatible.  At the time I could not update
(we were in the middle of a development cycle), but I have now updated things
related to Buildbot as previously recommended.  Currently:

- We are using Python 2.7.2
- We are running Mercurial 2.5.2 through Apache2 using hgweb.
- We are using Buildbot 0.8.8, with "easy_install"s of:
    - zope.interface 4.0.5
    - Twisted 13.2.0
    - SQLAlchemy 0.7.10 (recommended for 0.8.8)
    - sqlalchemy_migrate 0.7.1

Despite this, we continue to get an issue with Twisted when pushing changesets.  The Mercurial server is using the Buildbot-provided change hook in each repository's .hg/hgrc file.  I have two independent repositories, each using a different port for notifications.  Here is one:

  [hooks]
  changegroup.buildbot = python:buildbot.changes.hgbuildbot.hook
  ...
  [hgbuildbot]
  master = localhost:9911
  auth = xxxxx:xxxxxx
  branchtype = inrepo
  fork = True

In my master.cfg, I have a PBChangeSource for each repo:

  ...
  c2 = PBChangeSource(port=9911, user='xxxxxx', passwd='xxxxxx')
  c3 = PBChangeSource(port=9912, user='xxxxxx', passwd='xxxxxx')

  c['change_source'] = [c3, c2, c1]
  ...

We STILL have spotty notification with this most-current configuration, and we are getting this error in Twisted (which is probably at fault) when pushing changesets:

...
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 2 changes to 2 files
remote: Unhandled Error
remote: Traceback (most recent call last):
remote:   File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/base.py",
line 416, in fireEvent
remote:     DeferredList(beforeResults).addCallback(self._continueFiring)
remote:   File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 306, in addCallback
remote:     callbackKeywords=kw)
remote:   File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 295, in addCallbacks
remote:     self._runCallbacks()
remote:   File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 577, in _runCallbacks
remote:     current.result = callback(current.result, *args, **kw)
remote: --- <exception caught here> ---
remote:   File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/base.py",
line 429, in _continueFiring
remote:     callable(*args, **kwargs)
remote:   File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/base.py",
line 1187, in _reallyStartRunning
remote:     self._handleSignals()
remote:   File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/posixbase.py",
line 306, in _handleSignals
remote:     self._childWaker.install()
remote:   File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/posixbase.py",
line 212, in install
remote:     _signals.installHandler(self.o)
remote:   File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/_signals.py",
line 60, in installHandler
remote:     return signal.set_wakeup_fd(fd)
remote: exceptions.ValueError: set_wakeup_fd only works in main thread
...

Should I back down the version of Twisted to something else, or is there some
other root cause here?




More information about the devel mailing list