Ticket #384 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

exceptions.TypeError: buildFinished() takes exactly 4 arguments (2 given)

Reported by: edwin Owned by: nhemingway
Priority: major Milestone: 0.7.10
Version: 0.7.9 Keywords:
Cc:

Description

I get this exception when a build finishes successfully, and I don't get notified from the IRCbot:

2008-11-14 11:25:50+0200 [-] <Build quick-linux-x86_64>: build finished 2008-11-14 11:25:50+0200 [-] Unhandled error in Deferred: 2008-11-14 11:25:50+0200 [-] Unhandled Error

Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/buildbot/process/base.py", line 583, in buildFinished

self.build_status.buildFinished()

File "/usr/lib/python2.5/site-packages/buildbot/status/builder.py", line 1174, in buildFinished

w.callback(self)

File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in callback

self._startRunCallbacks(result)

File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks

self._runCallbacks()

--- <exception caught here> ---

File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks

self.result = callback(self.result, *args, kw)

exceptions.TypeError?: buildFinished() takes exactly 4 arguments (2 given)

2008-11-14 11:25:50+0200 [-] setting expectations for next time

Status listeners in master.cfg: cstatus?.append(html.WebStatus?(http_port=8010)) from buildbot.status.mail import MailNotifier? mn = MailNotifier?(fromaddr="buildbot@localhost",

mode = "problem", lookup="......", extraRecipients=.......?, addLogs=True)

cstatus?.append(mn) from buildbot.status import words irc = words.IRC("irc.freenode.net",".....",password=".......",

channels=.....?)

cstatus?.append(irc)

I do get mail notifications of failures though. I am using version 0.7.9-1.

Change History

comment:1 in reply to: ↑ description Changed 4 years ago by seb

I see that too with 0.7.8

comment:2 follow-up: ↓ 3 Changed 4 years ago by dafire

  • component changed from other to statusplugins

looks like changing

d.addCallback(self.parent.buildFinished)

to

d.addCallback(self.parent.watchedBuildFinished)

in file words.py in class IrcBuildRequest? fixes the problem.

comment:3 in reply to: ↑ 2 Changed 4 years ago by seb

It does indeed fix the problem for me on 0.7.8.

comment:4 Changed 4 years ago by nhemingway

  • Owner set to nhemingway
  • Status changed from new to assigned

comment:6 Changed 4 years ago by dustin

  • Keywords review removed
  • Status changed from assigned to closed
  • Resolution set to fixed

merged - thanks!

comment:7 Changed 4 years ago by dustin

  • Milestone changed from undecided to 0.7.10
Note: See TracTickets for help on using tickets.