All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Daniel Gollub <gollub@b1-systems.de>
Cc: Stefan Weil <sw@weilnetz.de>,
	agraf@suse.de, lcapitulino@redhat.com, qemu-devel@nongnu.org,
	Stefan Hajnoczi <stefanha@gmail.com>
Subject: Re: [Qemu-devel] buildbot failure in qemu on xen_x86_64_debian_6_0
Date: Tue, 01 Nov 2011 11:51:25 +0100	[thread overview]
Message-ID: <4EAFCF2D.1030204@redhat.com> (raw)
In-Reply-To: <201111010908.02142.gollub@b1-systems.de>

  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);

  parent reply	other threads:[~2011-11-01 10:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-01  6:19 [Qemu-devel] buildbot failure in qemu on xen_x86_64_debian_6_0 qemu
2011-11-01  7:36 ` Stefan Weil
2011-11-01  8:07   ` Daniel Gollub
2011-11-01 10:21     ` Stefan Hajnoczi
2011-11-01 10:51     ` Gerd Hoffmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-08-16  6:34 qemu
2012-08-11  6:47 qemu
2011-10-09  5:19 qemu
2011-10-04  5:03 qemu
2011-09-22  5:19 qemu
2011-09-05  5:09 qemu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EAFCF2D.1030204@redhat.com \
    --to=kraxel@redhat.com \
    --cc=agraf@suse.de \
    --cc=gollub@b1-systems.de \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=sw@weilnetz.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.