From: Patrick Steinhardt <ps@pks.im>
To: "Rubén Justo" <rjusto@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: What's cooking in git.git (Nov 2024, #06; Thu, 14)
Date: Mon, 18 Nov 2024 07:42:58 +0100 [thread overview]
Message-ID: <Zzrh6xlxfOo9q9gn@pks.im> (raw)
In-Reply-To: <e540c259-df6f-4b65-9066-606beb462f5b@gmail.com>
On Sat, Nov 16, 2024 at 04:37:13PM +0100, Rubén Justo wrote:
> On Sat, Nov 16, 2024 at 12:24:02PM +0100, Patrick Steinhardt wrote:
> > Rubén's review went through all of the patches and his findings have
> > been addressed.
>
> Yes, this iteration looks good to me.
>
> Two thoughts about the merge:
>
> First, I'm concerned that we may not have sufficiently documented how
> contributors should proceed to prevent new leaks when submitting
> patches, and perhaps avoid some unnecessary noise on the list. I
> reviewed Documentation/SubmittingPatches and didn't see any mention
> about it. Perhaps it would be helpful to add a note about
> SANITIZE=leak. I'm unsure if we want to be explicit about this,
> though.
Nothing really changes with this series -- we already required code to
be leak free beforehand, just not in all of our tests. But in any case,
providing pointers for how to check for leaks somewhere could be helpful
indeed.
I think that can happen outside of this series though, also because I'm
not quite sure where to slot this in.
> Second, in the (hopefully) exceptional cases where new series discover
> old leaks that cannot be fixed within the series itself, for whatever
> reason, I don't think there is documentation on the use of the
> SANITIZE_LEAK prerequisite. Its use is not desirable and documenting
> it could be counterproductive, so perhaps it's better to leave its use
> suggested on the list when necessary.
That's also my take: we should use SANITIZE_LEAK only in exceptional
cases. I very much hope that we can avoid introducing new cases of it
altogether with the help of long-time contributors by helping newer
contributors that happen to uncover such a leak.
I guess time will tell, and if we see that this needs to be added fairly
regularly we can iterate and add documentation.
Patrick
next prev parent reply other threads:[~2024-11-18 6:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-15 23:46 What's cooking in git.git (Nov 2024, #06; Thu, 14) Junio C Hamano
2024-11-16 3:19 ` Jeff King
2024-11-16 9:37 ` Junio C Hamano
2024-11-16 11:24 ` Patrick Steinhardt
2024-11-16 15:37 ` Rubén Justo
2024-11-18 6:42 ` Patrick Steinhardt [this message]
2024-11-18 22:20 ` Rubén Justo
2024-11-16 14:57 ` Kristoffer Haugsbakk
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=Zzrh6xlxfOo9q9gn@pks.im \
--to=ps@pks.im \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=rjusto@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