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

Re: [PATCH] t7518: fix flaky grep invocation

From
Taylor Blau <me@ttaylorr.com>
Date
Oct 17, 2020, 00:08 UTC
Message-ID
<20201017000838.GA2211921@nand.local>
In-Reply-To
<pull.884.git.git.1602891594738.gitgitgadget@gmail.com>
Hi Elijah,
On Fri, Oct 16, 2020 at 11:39:54PM +0000, Elijah Newren via GitGitGadget wrote:
Show 8 quoted lines
> From: Elijah Newren <newren@gmail.com>
>
> t7518.1 added in commit 862e80a413 ("ident: handle NULL email when
> complaining of empty name", 2017-02-23), was trying to make sure that
> the test with an empty ident did not segfault and did not result in
> glibc quiety translating a NULL pointer into a name of "(null)".  It did
> the latter by ensuring that a grep for "null" didn't appear in the
> output, but on one automatic CI run I observed the following output:

:-). I have always been surprised by glibc's behavior here; I'd almost always rather have a segfault than silently turning a NULL pointer into "(null)" when formatted with "%s".

Show 5 quoted lines
> fatal: empty ident name (for <runner@fv-az128-670.gcliasfzo2nullsdbrimjtbyhg.cx.internal.cloudapp.net>) not allowed
>
> Note that 'null' appears as a substring of the domain name, found
> within 'gcliasfzo2nullsdbrimjtbyhg'.  Tighten the test by searching for
> "(null)" rather than "null".

Yep; that sounds like a straightforward fix that will make this test non-flaky.

  Reviewed-by: Taylor Blau <me@ttaylorr.com>

Thanks, Taylor

Previous: Elijah Newren via GitGitGadgetNext: Junio C Hamano
Message 2 of 4 in “t7518: fix flaky grep invocation”
  1. t7518: fix flaky grep invocationElijah Newren via GitGitGadget, Oct 16, 2020
  2. Taylor BlauOct 17, 2020
  3. Junio C HamanoOct 17, 2020
  4. Elijah NewrenOct 17, 2020

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.