Hi,

> i finally took a closer look on this failed git reports. It seems like all 
> the 
> "git failed" mails are not due to a too short reply period. It is due to the 
> buildslave version used on "yuzuki" is not recent enough to perform retries 
> at 
> all.

Another git issue:  Fedora 16 fails because git 1.7.7 errors out on 'git
branch -M master'.  Guess that needs to be fixed in the GitPoller @
buildmaster?

I've also some python bits to send out the log tail with the mails, see
below.

cheers,
  Gerd

===================== [ cut here ] ========================

def kraxelMessageFormatter(mode, name, build, results, master_status):
    result = Results[results]
    defmsg = mail.defaultMessage(mode, name, build, results, master_status);
    text = list();
    text.append(defmsg['body']);

    # get log for last step
    logs = build.getLogs()
    for log in reversed(logs):
        if log.getName() == 'stdio':
            break
    content = log.getText().splitlines() # Note: can be VERY LARGE
    url = "%s/steps/%s/logs/%s" % (master_status.getURLForThing(build),
                                   log.getStep().getName(),
                                   log.getName())

    # append log info to standard message
    text.append("========== log tail ==========")
    for line in content[-32:]:
        text.append(unicode(line,'utf8'))
    text.append("")
    text.append("========== full log ==========")
    text.append(url);

    return { 'body' : "\n".join(text), 'type' : 'plain' }

[ ... ]

mn = mail.MailNotifier([ other args ]
                       messageFormatter=kraxelMessageFormatter);

Reply via email to