buildbot - 使用“buildbot sendchange”命令处理构建请求时出错
问题描述
我正在使用此命令开始构建:
buildbot sendchange --master=domain:9989 --who=tom --auth=username:'xxxxxxx' --branch=testing --project="apps/project-1" --category="apps" --comment="push to build" application.yml tahani/tahani.model.py
该命令正在启动构建并出现错误:
exceptions.TypeError: unbound method _defaultCollapseRequestFn() must be called with Builder instance as first argument (got BuildMaster instance instead)
详细追溯:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 501, in errback
self._startRunCallbacks(fail)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
self._runCallbacks()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1475, in gotResult
_inlineCallbacks(r, g, status)
--- <exception caught here> ---
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/local/lib/python2.7/dist-packages/buildbot/schedulers/basic.py", line 219, in gotChange
yield BaseBasicScheduler.gotChange(self, change, important)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/local/lib/python2.7/dist-packages/buildbot/schedulers/base.py", line 286, in addBuildsetForChanges
properties=properties, **kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/local/lib/python2.7/dist-packages/buildbot/schedulers/base.py", line 323, in addBuildsetForSourceStamps
external_idstring=external_idstring, **kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/local/lib/python2.7/dist-packages/buildbot/data/buildsets.py", line 147, in addBuildset
yield BuildRequestCollapser(self.master, list(itervalues(brids))).collapse()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
result = g.send(result)
File "/usr/local/lib/python2.7/dist-packages/buildbot/process/buildrequest.py", line 82, in collapse
canCollapse = yield collapseRequestsFn(self.master, bldr, br, unclaim_br)
exceptions.TypeError: unbound method _defaultCollapseRequestFn() must be called with Builder instance as first argument (got BuildMaster instance instead)
内置机器人版本:
Buildbot version: 0.9.0b9
Twisted version: 18.9.0
解决方案
推荐阅读
- c++ - 如何在 Google Cloud Functions 上运行 C++ 文件?
- python - 如何使用 pymongo 将有序字典插入 mongodb?
- java - How can I implement Matrix multiplication with BigInteger?
- python - 如何将 SOCKS4 代理与 aiohttp session.get 一起使用?
- javascript - What is meant by parent component and child component in the sense of react and react native?
- android - 如何获取删除或插入通知领域内部列表?
- javascript - 如何排除 TypeScript 定义中声明的全局类型?
- javascript - 需要在 ng selectize 中不工作?
- excel - 更改事件中的删除产生错误 28 堆栈溢出
- angular - 使用角度 4 在表格中动态添加按钮