我正在尝试使用GitHubCommentPush将BuildBot的自动反馈添加到github pull请求中
但我经常会出错:
2019-07-18 09: 04: 56 + 0000 [-] Timing out client: IPv4Address (type = 'TCP', host = '86 .57.157.184 ', port = 42090)
2019-07-18 09: 04: 56 + 0000 [-] Timing out client: IPv4Address (type = 'TCP', host = '86 .57.245.94 ', port = 42086)
2019-07-18 09: 04: 56 + 0000 [-] Timing out client: IPv4Address (type = 'TCP', host = '86 .57.157.184 ', port = 42092)
2019-07-18 09: 04: 56 + 0000 [-] while invoking <bound method HttpStatusPushBase.buildStarted of <buildbot.reporters.github.GitHubCommentPush object at 0x7f4ae512aa20 >>
Traceback (most recent call last):
File "/home/andrei/bot/sandbox/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
result = g.send (result)
File "/home/andrei/bot/sandbox/lib/python3.6/site-packages/buildbot/reporters/http.py", line 80, in getMoreInfoAndSend
yield self.send (build)
File "/home/andrei/bot/sandbox/lib/python3.6/site-packages/twisted/internet/defer.py", line 1613, in unwindGenerator
return _cancellableInlineCallbacks (gen)
File "/home/andrei/bot/sandbox/lib/python3.6/site-packages/twisted/internet/defer.py", line 1529, in _cancellableInlineCallbacks
_inlineCallbacks (None, g, status)
--- <exception caught here> ---
File "/home/andrei/bot/sandbox/lib/python3.6/site-packages/buildbot/reporters/http.py", line 80, in getMoreInfoAndSend
yield self.send (build)
File "/home/andrei/bot/sandbox/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
result = g.send (result)
File "/home/andrei/bot/sandbox/lib/python3.6/site-packages/buildbot/reporters/github.py", line 177, in send
content = yield response.content ()
builtins.UnboundLocalError: local variable 'response' referenced before assignment
显然我的GitHub令牌不是有效的。你知道吗
我不知道buildbot想要什么样的令牌。你知道吗
我尝试创建OAuth应用程序(但没有在GitHub市场上发布),并将创建的应用程序的客户机机密用作令牌。
我尝试以与上面相同的方式创建GitHub应用程序,我使用Client Secret作为令牌。
我试图创建一个个人访问令牌。
这些都没有帮助我。你知道吗
有人能解释一下这是怎么回事吗?你知道吗
下面是如何连接服务的代码。你知道吗
self.masterConf ['services'] = []
self.masterConf ['secretsProviders'] = [
secrets.SecretInAFile (dirname = "/ path / to / buildBotSecret")
]
gc = reporters.GitHubCommentPush (token = util.Secret ("gitHub"),
startDescription = 'Build started.',
endDescription = 'Build done.')
self.masterConf ['services']. append (gc)
根据代码,这个错误意味着我们在创建响应变量之前遇到了一个异常。你知道吗
这段代码中的错误管理非常糟糕。 所以我要做的是在
以便首先打印异常详细信息。你知道吗
这是buildBot版本2.3.1的bug。你知道吗
固定PR
相关问题 更多 >
编程相关推荐