CI工具buildbot在构建期间报告了异常。 Twistd.log中的异常err信息如下所示:
49558 2019-03-14 15:13:11+0800 [-] Timing out client: IPv4Address(type='TCP', host='1.1.1.1', port=50000)
49559 2019-03-14 15:13:38+0800 [-] Timing out client: IPv4Address(type='TCP', host='1.1.1.2', port=50001)
49560 2019-03-14 15:13:57+0800 [Broker,11,1.1.1.3] <RemoteShellCommand '['python', 'Package_xxx.py', 505]'> rc=-1
49561 2019-03-14 15:13:57+0800 [-] BuildStep.failed; traceback follows
49562 Traceback (most recent call last):
49563 File "/home/yujie01/.local/lib/python3.6/site-packages/twisted/internet/defer.py", line 501, in errback
49564 self._startRunCallbacks(fail)
49565 File "/home/yujie01/.local/lib/python3.6/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
49566 self._runCallbacks()
49567 File "/home/yujie01/.local/lib/python3.6/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
49568 current.result = callback(current.result, *args, **kw)
49569 File "/home/yujie01/.local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1475, in gotResult
49570 _inlineCallbacks(r, g, status)
49571 --- <exception caught here> ---
49572 File "/usr/local/lib/python3.6/site-packages/buildbot-2019.3.5-py3.6.egg/buildbot/process/buildstep.py", line 567, in startStep
49573 self.results = yield self.run()
49574 File "/usr/local/lib/python3.6/site-packages/buildbot-2019.3.5-py3.6.egg/buildbot/process/buildstep.py", line 697, in run
49575 results = yield self._start_deferred
49576 File "/home/yujie01/.local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
49577 result = g.send(result)
49578 File "/usr/local/lib/python3.6/site-packages/buildbot-2019.3.5-py3.6.egg/buildbot/process/buildstep.py", line 697, in run
49579 results = yield self._start_deferred
49580 buildbot.process.remotecommand.RemoteException: b'builtins.RuntimeError': SIGKILL failed to kill process
49581 Traceback (most recent call last):
49582 Failure: builtins.RuntimeError: SIGKILL failed to kill process
49583
49584
49585 2019-03-14 15:13:58+0800 [-] releaseLocks(ShellCommand(haltOnFailure=True, name='python Package_Fplus', command=['python', 'Package_xxx.py', Property(buildnumber)], timeout=1800)): []
此错误并非每次都发生,并且发生概率约为2/10。
谁能帮我修复它。谢谢!