git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] connected: distinguish local/remote bad objects

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 9, 2022, 16:55 UTC
Message-ID
<xmqqwndpn5dz.fsf@gitster.g>
In-Reply-To
<20220608210537.185094-1-jonathantanmy@google.com>
Jonathan Tan <jonathantanmy@google.com> writes:
Show 6 quoted lines
>  builtin/fetch.c              |  2 +-
>  connected.c                  |  1 +
>  revision.c                   | 16 ++++++++++++--
>  revision.h                   |  3 +++
>  t/t5518-fetch-exit-status.sh | 43 ++++++++++++++++++++++++++++++++++++
>  5 files changed, 62 insertions(+), 3 deletions(-)

This seems to break linux-leaks CI job by making 5518, which was marked in some topic in flight to expect to be leak-free, fail.

Because of the way linux-leaks test framework is done, it is not easy to tell if the code changes essential to this topic introduced new leaks, in which case we would want to fix that.

Note that this may not the fault of the code changes in this patch. If the tests added by the patch started using git commands that are known to leak (i.e. not ready to be subjected to the "leaks" test) in order to prepare the scenario or to inspect the result, even if the code changes in this topic did not introduce any leak, we can see the same breakage in linux-leaks CI job. An easy way out would be to disable leak-check CI for the entire 5518, but that is not very satisfactory, as the earlier part of that script should still be leak-free. Another way out might be to add these two tests in a new script, which is not marked as not-leaking. After all, what the new topic adds is not about exit status but how that exit status comes about, so it might not be a bad idea even without the CI leak stuff anyway.

Ævar, does the internal state used for revision walking count as leaking when it is still held by the time we hit die() in bad_object(), or anything on stack when we die() are still reachable and won't be reported as a failure?

Thanks.
Previous: Jonathan TanNext: Jonathan Tan
Message 4 of 9 in “connected: distinguish local/remote bad objects”
  1. connected: distinguish local/remote bad objectsJonathan Tan, Jun 8, 2022
  2. Junio C HamanoJun 8, 2022
  3. Jonathan TanJun 9, 2022
  4. Junio C HamanoJun 9, 2022
  5. Jonathan TanJun 9, 2022
  6. Ævar Arnfjörð BjarmasonJun 9, 2022
  7. fetch,fetch-pack: clarify connectivity check errorJonathan Tan, Jun 10, 2022
  8. Junio C HamanoJun 10, 2022
  9. Jonathan TanJun 17, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.