unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Cyril Roelandt <tipecaml@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Guix review bot
Date: Wed, 19 Aug 2015 01:26:58 +0200	[thread overview]
Message-ID: <55D3BF42.4040702@gmail.com> (raw)
In-Reply-To: <871tf0r58i.fsf@gnu.org>

On 08/18/2015 05:22 PM, Ludovic Courtès wrote:
> Guix-Bot <tipecaml@gmail.com> skribis:
> 
>> This is Guix-Bot, a bot meant to put Guix reviewers out of a job. I reviewed
>> your patch, and here is what I can tell you about it:
>>
>> PATCH: /home/cyril/guix/0001-gnu-Add-xscreenshot.patch:
>> - The patch can be applied on top of master.
>> - The compilation succeeded.
>> - Guix lint failed:
>> gnu/packages/suckless.scm:220:5: xscreenshot-1.0: sentences in description should be followed by two spaces; possible infraction at 42
> 
> That sounds neat!  Could you tell us more about it?
> 

Well, I wanted to have automatic reviews for certain patches, so I wrote
a quick and dirty piece of Python code that, given an email, extracts a
patch from it, applies it on top of master, and runs "make" and "guix
lint <pkg>".

The idea was to use offlineimap to check my guix directory on a regular
basis, and inotify to trigger the Python code whenever a new mail was
fetched.

In the end, it is a bit more complex than what I thought, because there
are lots of ways to send a patch: there are different possible
encodings, one might send a patch attached to an email, or attach a
patch generated using git format-patch, or use git send-email... Also,
the code I wrote is Guix-centric, and it might be nice to have an
agnostic tool instead.

I think patchwork[1] does a nice job of keeping track of threads in
mailing-lists (which my tool cannot do at the moment), but I don't know
if it can trigger a CI build. Also, Qemu seems to have some sort of
email-based CI, but I am not sure what version is the "right" one (there
are forks at https://github.com/aliguori/patches,
https://github.com/stefanha/patches/tree/stefanha-tweaks and probably
some other places). There is also https://github.com/famz/patchew, but
it seems to require Docker...


tl;dr: I'm not sure exactly what the right tool to use is :)

Cyril.

[1] http://jk.ozlabs.org/projects/patchwork/

  reply	other threads:[~2015-08-18 23:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27 17:50 [PATCH] xscreenshot and imagefile Orchidaceae Phalaenopsis
2015-07-28 23:33 ` Guix-Bot
2015-08-18 15:22   ` Guix review bot Ludovic Courtès
2015-08-18 23:26     ` Cyril Roelandt [this message]
2015-08-25 21:31       ` Ludovic Courtès
2015-07-28 23:34 ` [PATCH] xscreenshot and imagefile Guix-Bot
2015-07-28 23:41 ` Guix-Bot
2015-07-28 23:42 ` Guix-Bot
2015-07-29 15:51 ` Mark H Weaver
2015-07-29 18:24   ` Alex Kost
2015-07-30  2:58   ` Mark H Weaver
2015-07-30  7:04     ` Pjotr Prins
2015-07-30 22:41       ` Cyril Roelandt
2015-07-31 17:59       ` Andreas Enge
2015-08-01  8:09         ` Pjotr Prins
2015-07-30  9:10     ` Mathieu Lirzin
2015-07-30 19:31     ` Packaging vs. Maintaining (was: [PATCH] xscreenshot and imagefile) Jeff Mickey
2015-07-31  1:51     ` [PATCH] xscreenshot and imagefile Mark H Weaver
2015-08-18 15:13       ` Ludovic Courtès
2015-07-29 17:48 ` Alex Kost

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=55D3BF42.4040702@gmail.com \
    --to=tipecaml@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).