[Buildbot-devel] My custom build step caused recursive death

Derek Graham (ML) derek.m.graham+ml at gmail.com
Tue Jan 25 17:51:42 UTC 2011


I've got the following build step as I want to add the given log files to
display as HTML*:

class MergeCoverageStep(shell.ShellCommand):
    def __init__(self, **kwargs):
        shell.ShellCommand.__init__(self, **kwargs)

    def evaluateCommand(self, cmd):
        for l in self.step_status.getLogs():
            l.hide()
            self.addHTMLLog(l.getName() + ".html", l.getText())

        return SUCCESS

fr_factory.addStep(MergeCoverageStep(
        command = merge_cov_fr_cmd,
        logfiles = {"coverage_dashboard": "some/path/dashboard.html",
                    "coverage_hierarchy": "some/path/hierarchy.html",
                    "coverage_modlist"  : "some/path/modlist.html",
                    "coverage_groups"   : "some/path/groups.html",
                    "coverage_tests"    : "some/path/tests.html"})
                   )

However, after it runs the buildmaster created about 10,000 twistd.logXXXX
files of about 1MB each and then died. Of the few twistd.log files I looked
at they contain:

2011-01-25 10:54:16+0000 [-]
addHTMLLog(coverage_tests.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.
.... etc

What am I doing wrong?

(The .hide() function is something I added to turn off display of the file
in the waterfall, which is useful when I don't want hundreds of log files
showing up in the waterfall display but do have them in the build details).

Thanks,

Derek

* It would be nice to have an attribute to the logfiles dict like 'follow':
true called 'html' to do this automatically :) How would I go about doing
this? In LoggingBuildStep perhaps?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110125/e95f027e/attachment.html>


More information about the devel mailing list