git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: ab/leak-check (was: What's cooking in git.git (Jul 2022, #08; Fri, 29))
Date: Mon, 01 Aug 2022 14:01:01 +0200	[thread overview]
Message-ID: <220801.868ro8i2yt.gmgdl@evledraar.gmail.com> (raw)
In-Reply-To: <xmqq7d3v33to.fsf@gitster.g>


On Fri, Jul 29 2022, Junio C Hamano wrote:

> * ab/leak-check (2022-07-27) 15 commits
>  - CI: use "GIT_TEST_SANITIZE_LEAK_LOG=true" in linux-leaks
>  - upload-pack: fix a memory leak in create_pack_file()
>  - leak tests: mark passing SANITIZE=leak tests as leak-free
>  - leak tests: don't skip some tests under SANITIZE=leak
>  - test-lib: have the "check" mode for SANITIZE=leak consider leak logs
>  - test-lib: add a GIT_TEST_PASSING_SANITIZE_LEAK=check mode
>  - test-lib: simplify by removing test_external
>  - tests: move copy/pasted PERL + Test::More checks to a lib-perl.sh
>  - t/Makefile: don't remove test-results in "clean-except-prove-cache"
>  - test-lib: add a SANITIZE=leak logging mode
>  - t/README: reword the "GIT_TEST_PASSING_SANITIZE_LEAK" description
>  - test-lib: add a --invert-exit-code switch
>  - test-lib: fix GIT_EXIT_OK logic errors, use BAIL_OUT
>  - test-lib: don't set GIT_EXIT_OK before calling test_atexit_handler
>  - test-lib: use $1, not $@ in test_known_broken_{ok,failure}_
>
>  Plugging more leaks.
>  source: <cover-v3-00.15-00000000000-20220727T230800Z-avarab@gmail.com>

Just a note on the summary: This isn't "plugging more leaks" (although
one leak is plugged as it's trivial, and stands in the way of 15/15.

Suggestion: New test instrumentation for extending SANITIZE=leak
checking, and marking some existing tests as leak-free.

I think this should otherwise be ready for "next", the "linux-leaks" job
now passes with this (there was a conflict with another topic). This
topic is fairly self-contained to just the test code we run for
"linux-leaks".

To the extent that we have had a bit of churn with these sorts of
changes it's been because they've lingered in "seen", as new changes get
sent based on "master" or "next", which inadvertently add leaks to
existing now-leak-free tests...

  parent reply	other threads:[~2022-08-01 12:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-29 23:18 What's cooking in git.git (Jul 2022, #08; Fri, 29) Junio C Hamano
2022-07-31  0:29 ` Jeff King
2022-07-31 18:50   ` Junio C Hamano
2022-08-01 12:01 ` Ævar Arnfjörð Bjarmason [this message]
2022-08-01 16:56   ` ab/leak-check Junio C Hamano

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: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=220801.868ro8i2yt.gmgdl@evledraar.gmail.com \
    --to=avarab@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.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).