[Buildbot-commits] [Buildbot] #2564: "change contains codebase [...] that isnot processed by scheduler" log message broken
Buildbot trac
trac at buildbot.net
Sat Sep 14 07:25:27 UTC 2013
#2564: "change contains codebase [...] that isnot processed by scheduler" log
message broken
--------------------+--------------------------------
Reporter: dcoshea | Owner:
Type: defect | Status: new
Priority: minor | Milestone: undecided
Version: master | Keywords: schedulers logging
--------------------+--------------------------------
I'm running a Buildbot master from the Git master branch. I noticed that
I have a SingleBranchScheduler whose change_filter accepts changes from
multiple codebases, but whose codebases list did not include all of the
codebases. I checked twistd.log to see if any messages had been logged
about this and found this message:
2013-09-14 08:45:33+0930 [-] Invalid format string or unformattable object
in log message: 'change contains codebase %(codebase)s that isnot
processed by scheduler %(scheduler)s', {'name': 'HIDDEN-1', 'format':
'change contains codebase %(codebase)s that isnot processed by scheduler
%(scheduler)s', 'system': '-', 'codebase': u'HIDDEN-2', 'time':
1379114133.5368111, 'message': (), 'isError': 0}
It looks like both the master and nine branches have this bad code in
buildbot/schedulers/base.py:
{{{
if change.codebase not in self.codebases:
log.msg(format='change contains codebase %(codebase)s that
is'
'not processed by scheduler %(scheduler)s',
codebase=change.codebase, name=self.name)
}}}
Note the two issues with the message:
1. Format string specifies %(scheduler)s but actual parameter has the name
"name".
2. No space between "is" and "not".
Sorry I can't contribute a pull request right now.
--
Ticket URL: <http://trac.buildbot.net/ticket/2564>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list