qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] buildbot failure in qemu on xen_x86_64_debian_6_0


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] buildbot failure in qemu on xen_x86_64_debian_6_0
Date: Tue, 01 Nov 2011 11:51:25 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110927 Red Hat/3.1.15-1.el6_1 Thunderbird/3.1.15

  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

[Prev in Thread] Current Thread [Next in Thread]