Python 如何在BuildBot中使用GitHubCommentPush
我正在尝试使用以下命令将BuildBot的自动反馈添加到github请求中 但我经常会出错:Python 如何在BuildBot中使用GitHubCommentPush,python,github,github-api,buildbot,Python,Github,Github Api,Buildbot,我正在尝试使用以下命令将BuildBot的自动反馈添加到github请求中 但我经常会出错: 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
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
根据代码,这个错误意味着我们在创建响应变量之前得到了一个异常 这段代码中的错误管理非常糟糕。 所以我想做的是在这之前编辑这一行
content = yield response.content()
为了首先打印异常详细信息。根据代码,该错误意味着我们在创建响应变量之前遇到了异常 这段代码中的错误管理非常糟糕。 所以我想做的是在这之前编辑这一行
content = yield response.content()
以首先打印异常详细信息。这是buildBot版本2.3.1的错误
修复了buildBot版本2.3.1的bug
修复了显示整个配置文件的问题!显示您的整个配置文件!这些是buildbot日志,我无法打印变量的内容这些是buildbot日志,我无法打印变量的内容