<div dir="ltr">Hi,<div>What you need is a logobserver.</div><div><a href="http://docs.buildbot.net/latest/developer/cls-logobserver.html">http://docs.buildbot.net/latest/developer/cls-logobserver.html</a><br></div><div><br></div><div>There is a <span style="background-color:rgb(246,246,246);font-family:monospace;font-size:14.625px;font-weight:700">LineConsumerLogObserver </span>which can be used to read the logs one line by one line.</div><div>This component is optimised to manage the data on the flow, and avoid consuming lots of memory by loading the log in memory.</div><div><br></div><div>Regards</div><div>Pierre</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 19, 2018 at 3:54 AM Hugh Sorby <<a href="mailto:h.sorby@auckland.ac.nz">h.sorby@auckland.ac.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi All,<br>
</p>
<p><br>
</p>
<p>I'm trying to update an old buildstep to the 'new-style'.  What I used to do was pass the stdio log line by line looking for a matching string.  Now using the 'run' method I have<br>
</p>
<p><br>
</p>
<div>    @defer.inlineCallbacks</div>
<div>    def run(self):</div>
<div>        command = self.command</div>
<div><br>
</div>
<div>        cmd = yield self.makeRemoteShellCommand(command=command, collectStdout=True, stdioLogName="stdoutLog")</div>
<div><br>
</div>
<div>        yield self.runCommand(cmd)</div>
<div><br>
</div>
<div>        defer.returnValue(cmd.results())<br>
</div>
<div><br>
</div>
<div>but I'm unsure of how or when I should parse the log and set the result.  I don't actually think I need to collect stdout but I have left it in here as I was testing out some ideas.<br>
</div>
<div><br>
</div>
<div>Many thanks for any help or pointers,<br>
</div>
<div>Hugh.<br>
</div>
<p><br>
</p>
</div>

_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div>