From: Taylor Blau <me@ttaylorr.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Glen Choo" <chooglen@google.com>,
git@vger.kernel.org, "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
"Elijah Newren" <newren@gmail.com>
Subject: Re: How do we review changes made with coccinelle?
Date: Fri, 31 Mar 2023 19:49:04 -0400 [thread overview]
Message-ID: <ZCdxcKr2mQ5cBQ8u@nand.local> (raw)
In-Reply-To: <xmqqtty2hx30.fsf@gitster.g>
On Thu, Mar 30, 2023 at 12:13:07PM -0700, Junio C Hamano wrote:
> Glen Choo <chooglen@google.com> writes:
>
> > - Is it okay to give Reviewed-By on the basis of _just_ the in-tree
> > changes and ignore the .cocci patch?
>
> If they were made in separate steps, sure. If not, not really. But
> we can still say "I've checked the changes the author made to the
> code and they looked good." But we haven't reviewed the patch in
> its entirety in such a case to give a Reviewed-by, I would thihk.
I think that while none of us would probably call ourselves "Coccinelle
experts", we are probably reasonably capable of reviewing *.cocci files
and their impact on the tree.
What I meant when we were talking about this off-list was that I don't
consider myself an expert at writing idiomatic Coccinelle rules. But I
feel competent enough that I could review Ævar's patches by roughly
grokking the *.cocci changes, and then checking that the resulting tree
state matched my understanding of those changes.
> > - Do we care about new patches slowing down coccicheck?
I was the one who asked this question off-list, and I did so in a
leading way that implied that the answer was "no".
> Surely.
But I agree with Junio that we *do* care about slowing down the
performance of 'make coccicheck'. When I originally asked, I was under
the (false) impression that we didn't run 'make coccicheck' in CI. But
we do (see ci/run-static-analysis.sh), so we do care about the
performance there since we don't want to unnecessarily slow down CI.
Thanks,
Taylor
next prev parent reply other threads:[~2023-03-31 23:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-30 18:23 How do we review changes made with coccinelle? Glen Choo
2023-03-30 19:13 ` Junio C Hamano
2023-03-31 17:17 ` Glen Choo
2023-03-31 18:17 ` Junio C Hamano
2023-03-31 23:49 ` Taylor Blau [this message]
2023-03-31 23:53 ` Taylor Blau
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=ZCdxcKr2mQ5cBQ8u@nand.local \
--to=me@ttaylorr.com \
--cc=avarab@gmail.com \
--cc=chooglen@google.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=newren@gmail.com \
/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 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 NNTP newsgroup(s).