[Buildbot-devel] Question about mail notifier.
shiny knight
theshinyknight at me.com
Mon Apr 21 03:53:55 UTC 2014
The main issue, for me, has always been how to find the step that failed. Found at least a couple of solution, but none that is explained on the manual.
If you have for example 4 steps, and the 2nd will fail; you need to go backward in the logs to find the log of that specific step. Because the example on the manual grab the last step logs and print the last X lines from it, so it never tells you how you actually access the log object.
One way is to search for an "error" log; but if 2 or more steps fail in the same builder, then it won't work, because it would just take the last one. Otherwise you need to loop trough the whole log object and extrapolate the error lines, building a custom createSummary function in your step, that search for whatever error you need to convey.
AFAIK, the documentation do not mention how can you access to specific logs for a specific step, nor if you can find the status of a specific test. If this info is there; is not really pointed out.
Examples on the topic would be highly appreciated on the manual. There are plenty of config tips, but on the customization, the amount of info on the manual is not enough.
Would be possible to activate a wiki on the Buildbot page, so people can contribute? Mailing lists are awesome but search trough them is a jump in the unknown :)
On Apr 18, 2014, at 10:09 AM, Dan Kegel <dank at kegel.com> wrote:
> Yes. In the past, I think I was able to do this by searching
> backwards in the list
> of steps in my custom message formatter. Don't have that code handy,
> but I don't think it took too long to figure out...
>
> On Fri, Apr 18, 2014 at 5:22 AM, Kevin <kevin.mansang at mhcomm.fr> wrote:
>> Hello,
>>
>> I am using the html_message_formatter from the buildbot doc for my MailNotifier and I have one question.
>> Can I get the logs from the last failed step ? By default this formatter puts the logs of the last build step in the mail, but this doesn't suit me.
>> Unfortunately my last step generates a report file, will almost always succeed outputs no interesting message and my mail notifier sends his empty log.
>>
>> The report, that I generate in the last step depends on the second last step and has even to be executed when the second last step failed
>>
>>
>> Thanks for any suggestions
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/NeoTech
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
More information about the devel
mailing list