All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: qemu-devel@nongnu.org, "Peter Maydell" <peter.maydell@linaro.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Eric Blake" <eblake@redhat.com>,
	"Laurent Vivier" <lvivier@redhat.com>,
	"Eduardo Habkost" <ehabkost@redhat.com>,
	"Cornelia Huck" <cornelia.huck@de.ibm.com>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Fam Zheng" <famz@redhat.com>
Subject: Re: [Qemu-devel] [RFC PATCH 0/4] travis: run all coccinelle scripts
Date: Tue, 27 Jun 2017 10:12:16 +0200	[thread overview]
Message-ID: <87podpluhr.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20170625192950.17677-1-f4bug@amsat.org> ("Philippe Mathieu-Daudé"'s message of "Sun, 25 Jun 2017 16:29:46 -0300")

Philippe Mathieu-Daudé <f4bug@amsat.org> writes:

> Another item from my 'automated testing' list: use travis-ci to run coccinelle
> scripts. This series is more of a PoC. The idea would be to run it once a day
> only on /master.
>
> Patch 1 is here only to speedup travis testing.
>
> Patch 3 add a script which run each cocci script sequencially. If the script
> modified any file from the repo, changes are commited. If the script generated
> some output (i.e. using python), this output is logged in an empty commit.
> Spatch is run thru a debian-based Docker image.
>
> Patch 4 is the travis job: it calls the previous script. To respect travis time
> limit timeout, each script is limited to <10min. If any commit were
> generated, they are pushed to my gh-repo:
>
> https://github.com/philmd/qemu/compare/travis-cocci_v1...philmd:autogenerated-coccinelle-20170625-126
>
> Build output (Ran for 23 min 7 sec):
> https://travis-ci.org/philmd/qemu/builds/246848085
>
> Any idea is welcome :)

Are we sure all the Coccinelle scripts always produce desirable and
correct results?  I often use Coccinelle to do the tedious 95% of the
job, followed by a bit of manual cleanup.  What if manual cleanup is
required to make things compile cleanly?  Say because the transformation
leaves unused variables behind.  What if the transformation is wanted in
19 out of 20 cases?  Say because it replaces a bulky expression by the
helper call created for this purpose (good), including in the helper
function (bad)?

      parent reply	other threads:[~2017-06-27  8:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-25 19:29 [Qemu-devel] [RFC PATCH 0/4] travis: run all coccinelle scripts Philippe Mathieu-Daudé
2017-06-25 19:29 ` [Qemu-devel] [RFC PATCH 1/4] XXX travis: simplify matrix Philippe Mathieu-Daudé
2017-06-25 19:29 ` [Qemu-devel] [RFC PATCH 2/4] coccinelle: ignore ASTs pre-parsed cached C files Philippe Mathieu-Daudé
2017-06-25 19:29 ` [Qemu-devel] [RFC PATCH 3/4] coccinelle: script to run them all Philippe Mathieu-Daudé
2017-06-27  2:17   ` Eduardo Habkost
2017-06-27  2:33     ` Philippe Mathieu-Daudé
2017-06-27  2:48   ` Fam Zheng
2017-06-25 19:29 ` [Qemu-devel] [RFC PATCH 4/4] travis: add job to run coccinelle scripts Philippe Mathieu-Daudé
2017-06-26  4:58 ` [Qemu-devel] [RFC PATCH 0/4] travis: run all " Philippe Mathieu-Daudé
2017-06-27  8:12 ` Markus Armbruster [this message]

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=87podpluhr.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=cornelia.huck@de.ibm.com \
    --cc=eblake@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=famz@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.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.
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.