buildbot / buildbot/buildbot_travis

cannot work after install and config in GitHub EE

Open
#80 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
129
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Followed this [https://medium.com/buildbot/using-hyper-sh-to-deploy-your-buildbot-126888e1164d](https://medium.com/buildbot/using-hyper-sh-to-deploy-your-buildbot-126888e1164d) I config this by webUI, set number of local workers to 8, then generate tokens, webhook (push and PR), set payload URL, then delivery payload, github EE show me `200, success`

![screen shot 2018-01-08 at 3 59 55 pm](https://user-images.githubusercontent.com/7543300/34662637-f6c404f8-f48c-11e7-876e-476381efac58.png)

My `.travis.yml`:

```yml
script:
- echo 'test CI'
```

then, when I push to this repo, github EE webhooks show me `500, failed`

![screen shot 2018-01-08 at 4 02 13 pm](https://user-images.githubusercontent.com/7543300/34662682-47289e72-f48d-11e7-8485-f5bed19c263c.png)

This is `twistd.log`:

```log
2018-01-08 15:24:52+0800 [_GenericHTTPChannelProtocol,39,10.200.55.139] X-GitHub-Event: push
2018-01-08 15:24:52+0800 [_GenericHTTPChannelProtocol,39,10.200.55.139] New revision: 21126b0f
2018-01-08 15:24:52+0800 [_GenericHTTPChannelProtocol,39,10.200.55.139] adding changes from web hook
Traceback (most recent call last):
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/buildbot/www/hooks/github.py", line 334, in getChanges
return self.handler.process(request)
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/twisted/internet/defer.py", line 1532, in unwindGenerator
return _inlineCallbacks(None, gen, Deferred())
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
result = g.send(result)
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/buildbot/www/hooks/github.py", line 89, in process
result = yield defer.maybeDeferred(lambda: handler(payload, event_type))
--- ---
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred
result = f(*args, **kw)
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/buildbot/www/hooks/github.py", line 89, in
result = yield defer.maybeDeferred(lambda: handler(payload, event_type))
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/buildbot/www/hooks/github.py", line 149, in handle_push
event, properties)
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/buildbot/www/hooks/github.py", line 287, in _process_change
change['codebase'] = self._codebase(payload)
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/buildbot_travis/vcs/github.py", line 28, in getCodebaseForGitHubChange
return getCodebaseForRepository(payload['repository']['html_url'])
File "/Users/xxx/BuildBot/bb-travis/sandbox/lib/python3.6/site-packages/buildbot_travis/vcs/base.py", line 178, in getCodebaseForRepository
return repository_db_by_url[url].name
builtins.KeyError: u''
```

But when I force build it, builder will block, can only show `preparing worker`. And I cannot stop this builder.

Do I missing some steps?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.