[Buildbot-devel] Github hook, exception 'bool' object has no attribute 'get'

Raphael Merx raphaelm at captricity.com
Sun Jul 12 04:44:13 UTC 2015


Hello,

I have a buildbot master set up to trigger builds when a pull request (PR)
is opened, when we commit to a branch that has an open PR, and when a
branch is merged. My current config worked when we were on 0.8.8, but ever
since I upgraded to 0.8.12, I’m seeing the following exception in the
master logs when I open a PR:

2015-07-11 21:07:03-0700 [HTTPChannel,15,127.0.0.1] Attempting to load
module buildbot.status.web.hooks.github2015-07-11 21:07:03-0700
[HTTPChannel,15,127.0.0.1] processing changes from web hook
        Traceback (most recent call last):
        Failure: exceptions.AttributeError: 'bool' object has no attribute 'get'

Here is an excerpt from my master.cfg:

from buildbot.schedulers.basic import SingleBranchSchedulerfrom
buildbot.schedulers.forcesched import ForceSchedulerfrom
buildbot.changes import filterfrom buildbot.changes.gitpoller import
GitPollerfrom buildbot.status import htmlfrom buildbot.status.web
import authz

c = BuildmasterConfig = {}
####### CHANGESOURCES - these are events that can trigger builds
c['change_source'] = []
c['change_source'].append(GitPoller(
        'git at github.com:blah/blah.git',
        workdir='gitpoller-workdir', branches=['master'],
        pollinterval=300))
####### SCHEDULERS - These filter incoming changes

c['schedulers'] = []
c['schedulers'].append(SingleBranchScheduler(
            name='all',
            change_filter=filter.ChangeFilter(branch='master'),
            treeStableTimer=None,
            builderNames=['runtests']))

c['schedulers'].append(ForceScheduler(
            name='force',
            builderNames=['runtests']))
# This filter pull changes out for the PR builder (search change_hooks_dialects)
c['schedulers'].append(SingleBranchScheduler(
            name='PR Builder',
            builderNames=['runtests'],
            change_filter=filter.ChangeFilter(repository='https://github.com/blah/blah')
            ))
# Allow all from website (nginx will do auth)
authz_cfg=authz.Authz(
    gracefulShutdown = True,
    forceBuild = True,
    forceAllBuilds = True,
    pingBuilder = True,
    stopBuild = True,
    stopAllBuilds = True,
    cancelPendingBuild = True)

c['status'] = [
    html.WebStatus(
            http_port=8010,
            authz=authz_cfg,
            change_hook_dialects={'github':True}
    )
]

​
Thanks in advance for your help

-- 

Raphael Merx Captricity | *Technical staff*
Web <http://www.captricity.com/>  | Blog  <http://captricity.com/blog/> |
Twitter <https://twitter.com/captricity>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150711/023c1dd3/attachment.html>


More information about the devel mailing list