[Buildbot-devel] Twisted exception with Buildbot 0.8.5 + Mercurial hook

Bob Hood bhood2 at comcast.net
Fri May 24 13:27:26 UTC 2013


On 5/24/2013 1:40 AM, Benoît Allard wrote:
> [resending, forgot to CC the list]
>
>> -----Original Message-----
>> From: Bob Hood [mailto:bhood2 at comcast.net]
>> Sent: Friday, May 24, 2013 2:46 AM
>> To: Buildbot Mailing List
>> Subject: [Buildbot-devel] Twisted exception with Buildbot 0.8.5 + Mercurial
>> hook
>>
>> I recently migrated our Buildbot 0.8.5 + Twisted 12.0.0 + zope 3.6.1 to a new
>> Debian Linux instance that is running x64 and Python 2.7.3.  We are using
>> Mercurial with the changegroup.buildbot hook, i.e.:
>>
>>     [hooks]
>>     changegroup.buildbot = python:buildbot.changes.hgbuildbot.hook
>>
>> I'm now getting an exception in Twisted that I wasn't getting before whenever
>> a change is pushed to the Mercurial server:
>>
>> pushing to https://...
>> searching for changes
>> remote: adding changesets
>> remote: adding manifests
>> remote: adding file changes
>> remote: added 1 changesets with 1 changes to 1 files
>> remote: Unhandled Error
>> remote: Traceback (most recent call last):
> [...]
>> remote:   File
>> "/usr/local/lib/python2.7/dist-packages/Twisted-12.0.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-12.0.0-py2.7-linux-
>> x86_64.egg/twisted/internet/_signals.py",
>> line 132, in _installHandlerUsingSetWakeup
>> remote:     return set_wakeup_fd(fd)
>> remote: exceptions.ValueError: set_wakeup_fd only works in main thread
>> remote: rev 0e77c7bd37a38b14658eaa9e62bc0763723bde1b sent
>
> Have you tried forking the buildbot hook ? 
>
> http://docs.buildbot.net/latest/manual/cfg-changesources.html#compatibility
>
> Regards
> Benoît.

Thanks for the interesting suggestion, Benoît.  I actually tried this, and the
push to Mercurial reported that Buildbot was notified:

  [default] $ hg push
  pushing to https://...
  searching for changes
  remote: adding changesets
  remote: adding manifests
  remote: adding file changes
  remote: added 1 changesets with 1 changes to 1 files
  remote: Notifying buildbot...

Unfortunately, the notification never actually showed up in Buildbot (and,
thus, no build was triggered).

But thanks for replying.  :)




More information about the devel mailing list