[users at bb.net] Missing file and argument error using GitHub web hook contrib script.

Wayne Keenan wayne at thebubbleworks.com
Tue Nov 28 18:15:46 UTC 2017


Hi,

I'm trying to setup the GitHub_buildbot.py script, it's triggering but it
throws an exception, and warns about (unexpected) missing files.

I can create a pull request and apply it and in both cases see the webhook
script is invoked and then the master runs, but the master complains about
missing data: it says there are no files and errors with 'keywords must be
strings'.

I've gave my GitHup app read/write everything (apart from single file
access), just in case.

Versions:

Buildbot version: 0.9.13
Twisted version: 17.9.0

Below are the logs for the master and the web hook script on the initial PR
creation:


master log:

2017-11-28 18:03:33+0000 [Broker,2,192.168.2.11] perspective_addChange
called
2017-11-28 18:03:33+0000 [Broker,2,192.168.2.11] No files listed in
change... bit strange, but not fatal.
2017-11-28 18:03:33+0000 [Broker,2,192.168.2.11] <bound method
ChangePerspective.perspective_addChange of
<buildbot.changes.pb.ChangePerspective object at 0x729a8c10>> didn't accept
({b'project': 'WayneKeenan/python-bleson', b'comments': 'test', b'branch':
'test16', b'files': ['tox.ini'], b'revlink': '
https://github.com/WayneKeenan/python-bleson/commit/affde813ee952817f383e4d47334f3492cd8cce6',
b'src': 'git', 'files': [], b'revision':
'affde813ee952817f383e4d47334f3492cd8cce6', b'repository': '
https://github.com/WayneKeenan/python-bleson', b'who': 'WayneKeenan <
wayne.keenan at gmail.com>'},) and {}
2017-11-28 18:03:33+0000 [Broker,2,192.168.2.11] Peer will receive
following PB traceback:
2017-11-28 18:03:33+0000 [Broker,2,192.168.2.11] Unhandled Error
Traceback (most recent call last):
 File
"/opt/thebubbleworks/rogue1/pyenv/rogue1_buildbot_master_env/lib/python3.5/site-packages/twisted/spread/banana.py",
line 173, in gotItem
   self.callExpressionReceived(item)
 File
"/opt/thebubbleworks/rogue1/pyenv/rogue1_buildbot_master_env/lib/python3.5/site-packages/twisted/spread/banana.py",
line 136, in callExpressionReceived
   self.expressionReceived(obj)
 File
"/opt/thebubbleworks/rogue1/pyenv/rogue1_buildbot_master_env/lib/python3.5/site-packages/twisted/spread/pb.py",
line 621, in expressionReceived
   method(*sexp[1:])
 File
"/opt/thebubbleworks/rogue1/pyenv/rogue1_buildbot_master_env/lib/python3.5/site-packages/twisted/spread/pb.py",
line 1025, in proto_message
   self._recvMessage(self.localObjectForID, requestID, objectID, message,
answerRequired, netArgs, netKw)
--- <exception caught here> ---
 File
"/opt/thebubbleworks/rogue1/pyenv/rogue1_buildbot_master_env/lib/python3.5/site-packages/twisted/spread/pb.py",
line 1054, in _recvMessage
   netResult = object.remoteMessageReceived(self, message, netArgs, netKw)
 File
"/opt/thebubbleworks/rogue1/pyenv/rogue1_buildbot_master_env/lib/python3.5/site-packages/twisted/spread/pb.py",
line 245, in perspectiveMessageReceived
   state = method(*args, **kw)
 File
"/opt/thebubbleworks/rogue1/pyenv/rogue1_buildbot_master_env/lib/python3.5/site-packages/buildbot/changes/pb.py",
line 94, in perspective_addChange
   d = self.master.data.updates.addChange(**changedict)
builtins.TypeError: unwindGenerator() keywords must be strings



github_buildbot script output:


2017-11-28 18:03:32,738 - DEBUG - X-GitHub-Event: 'push'
2017-11-28 18:03:32,738 - DEBUG - Payload: {u'forced': False, u'compare': u'
https://github.com/WayneKeenan/python-bleson/commit/affde813ee95',
u'pusher': {u'name': u'WayneKeenan', u'email':
u'WayneKeenan at users.noreply.github.com'}, u'sender': {u'following_url': u'
https://api.github.com/users/WayneKeenan/following{/other_user}',
u'events_url': u'https://api.github.com/users/WayneKeenan/events{/privacy}',
u'organizations_url': u'https://api.github.com/users/WayneKeenan/orgs',
u'url': u'https://api.github.com/users/WayneKeenan', u'gists_url': u'
https://api.github.com/users/WayneKeenan/gists{/gist_id}', u'html_url': u'
https://github.com/WayneKeenan', u'subscriptions_url': u'
https://api.github.com/users/WayneKeenan/subscriptions', u'avatar_url': u'
https://avatars3.githubusercontent.com/u/8313142?v=4', u'repos_url': u'
https://api.github.com/users/WayneKeenan/repos', u'received_events_url': u'
https://api.github.com/users/WayneKeenan/received_events', u'gravatar_id':
u'', u'starred_url': u'
https://api.github.com/users/WayneKeenan/starred{/owner}{/repo}',
u'site_admin': False, u'login': u'WayneKeenan', u'type': u'User', u'id':
8313142, u'followers_url': u'
https://api.github.com/users/WayneKeenan/followers'}, u'repository':
{u'issues_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/issues{/number}',
u'deployments_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/deployments',
u'stargazers_count': 0, u'forks_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/forks',
u'mirror_url': None, u'subscription_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/subscription',
u'notifications_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/notifications{?since,all,participating}',
u'collaborators_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/collaborators{/collaborator}',
u'updated_at': u'2017-11-27T12:39:22Z', u'private': False, u'pulls_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/pulls{/number}',
u'issue_comment_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/issues/comments{/number}',
u'labels_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/labels{/name}',
u'has_wiki': True, u'full_name': u'WayneKeenan/python-bleson', u'owner':
{u'following_url': u'
https://api.github.com/users/WayneKeenan/following{/other_user}',
u'events_url': u'https://api.github.com/users/WayneKeenan/events{/privacy}',
u'name': u'WayneKeenan', u'organizations_url': u'
https://api.github.com/users/WayneKeenan/orgs', u'url': u'
https://api.github.com/users/WayneKeenan', u'gists_url': u'
https://api.github.com/users/WayneKeenan/gists{/gist_id}',
u'subscriptions_url': u'
https://api.github.com/users/WayneKeenan/subscriptions', u'html_url': u'
https://github.com/WayneKeenan', u'email':
u'WayneKeenan at users.noreply.github.com', u'avatar_url': u'
https://avatars3.githubusercontent.com/u/8313142?v=4', u'repos_url': u'
https://api.github.com/users/WayneKeenan/repos', u'received_events_url': u'
https://api.github.com/users/WayneKeenan/received_events', u'gravatar_id':
u'', u'starred_url': u'
https://api.github.com/users/WayneKeenan/starred{/owner}{/repo}',
u'site_admin': False, u'login': u'WayneKeenan', u'type': u'User', u'id':
8313142, u'followers_url': u'
https://api.github.com/users/WayneKeenan/followers'}, u'statuses_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/statuses/{sha}',
u'id': 112194649, u'keys_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/keys{/key_id}',
u'description': u'Python Bluetooth LE Module', u'tags_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/tags', u'archived':
False, u'downloads_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/downloads',
u'assignees_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/assignees{/user}',
u'contents_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/contents/{+path}',
u'has_pages': False, u'git_refs_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/git/refs{/sha}',
u'open_issues_count': 1, u'has_projects': True, u'clone_url': u'
https://github.com/WayneKeenan/python-bleson.git', u'watchers_count': 0,
u'git_tags_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/git/tags{/sha}',
u'milestones_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/milestones{/number}',
u'languages_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/languages', u'size':
91, u'homepage': u'https://groups.google.com/group/python-bleson', u'fork':
True, u'commits_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/commits{/sha}',
u'releases_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/releases{/id}',
u'issue_events_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/issues/events{/number}',
u'archive_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/{archive_format}{/ref}',
u'comments_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/comments{/number}',
u'events_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/events',
u'contributors_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/contributors',
u'html_url': u'https://github.com/WayneKeenan/python-bleson', u'forks': 0,
u'compare_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/compare/{base}...{head}',
u'open_issues': 1, u'git_url': u'git://
github.com/WayneKeenan/python-bleson.git', u'svn_url': u'
https://github.com/WayneKeenan/python-bleson', u'merges_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/merges',
u'has_issues': False, u'ssh_url':
u'git at github.com:WayneKeenan/python-bleson.git',
u'blobs_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/git/blobs{/sha}',
u'master_branch': u'master', u'git_commits_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/git/commits{/sha}',
u'hooks_url': u'https://api.github.com/repos/WayneKeenan/python-bleson/hooks',
u'has_downloads': True, u'watchers': 0, u'name': u'python-bleson',
u'language': u'Python', u'url': u'
https://github.com/WayneKeenan/python-bleson', u'stargazers': 0,
u'created_at': 1511786360, u'pushed_at': 1511892212, u'forks_count': 0,
u'default_branch': u'master', u'teams_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/teams',
u'trees_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/git/trees{/sha}',
u'branches_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/branches{/branch}',
u'subscribers_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/subscribers',
u'stargazers_url': u'
https://api.github.com/repos/WayneKeenan/python-bleson/stargazers'},
u'created': True, u'deleted': False, u'commits': [{u'committer':
{u'username': u'WayneKeenan', u'name': u'Wayne Keenan', u'email':
u'wayne.keenan at gmail.com'}, u'added': [], u'author': {u'username':
u'WayneKeenan', u'name': u'Wayne Keenan', u'email': u'wayne.keenan at gmail.com'},
u'distinct': True, u'timestamp': u'2017-11-28T18:03:25Z', u'modified':
[u'tox.ini'], u'url': u'
https://github.com/WayneKeenan/python-bleson/commit/affde813ee952817f383e4d47334f3492cd8cce6',
u'tree_id': u'be4c150b4ef8b3cc7e35dc191f45d35ffe118b29', u'message':
u'test', u'removed': [], u'id':
u'affde813ee952817f383e4d47334f3492cd8cce6'}], u'after':
u'affde813ee952817f383e4d47334f3492cd8cce6', u'head_commit': {u'committer':
{u'username': u'WayneKeenan', u'name': u'Wayne Keenan', u'email':
u'wayne.keenan at gmail.com'}, u'added': [], u'author': {u'username':
u'WayneKeenan', u'name': u'Wayne Keenan', u'email': u'wayne.keenan at gmail.com'},
u'distinct': True, u'timestamp': u'2017-11-28T18:03:25Z', u'modified':
[u'tox.ini'], u'url': u'
https://github.com/WayneKeenan/python-bleson/commit/affde813ee952817f383e4d47334f3492cd8cce6',
u'tree_id': u'be4c150b4ef8b3cc7e35dc191f45d35ffe118b29', u'message':
u'test', u'removed': [], u'id':
u'affde813ee952817f383e4d47334f3492cd8cce6'}, u'installation': {u'id':
70175}, u'ref': u'refs/heads/test16', u'base_ref': None, u'before':
u'0000000000000000000000000000000000000000'}
2017-11-28 18:03:33,070 - DEBUG - addChange
<twisted.spread.pb.RemoteReference instance at 0x10cb64908>, <listiterator
object at 0x10cb09f10>
2017-11-28 18:03:33,070 - INFO - New revision: affde813
2017-11-28 18:03:33,071 - DEBUG -   files: [u'tox.ini']
2017-11-28 18:03:33,071 - DEBUG -   project: WayneKeenan/python-bleson
2017-11-28 18:03:33,071 - DEBUG -   branch: test16
2017-11-28 18:03:33,071 - DEBUG -   repository:
https://github.com/WayneKeenan/python-bleson
2017-11-28 18:03:33,071 - DEBUG -   who: WayneKeenan <wayne.keenan at gmail.com
>
2017-11-28 18:03:33,071 - DEBUG -   revlink:
https://github.com/WayneKeenan/python-bleson/commit/affde813ee952817f383e4d47334f3492cd8cce6
2017-11-28 18:03:33,071 - DEBUG -   comments: test
2017-11-28 18:03:33,071 - DEBUG -   revision:
affde813ee952817f383e4d47334f3492cd8cce6
Unhandled error in Deferred:


Has something changed or am I missing a config step?

Thanks,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20171128/273f16b6/attachment.html>


More information about the users mailing list