使用“ 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",self.tb)
      File "/usr/local/lib/python2.7/dist-packages/buildbot/schedulers/base.py",line 286,in addBuildsetForChanges
        properties=properties,line 323,in addBuildsetForSourceStamps
        external_idstring=external_idstring,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)
builbot版本:
Buildbot version: 0.9.0b9
Twisted version: 18.9.0

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)