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

Re: [PATCH 2/1] Revert "t/lib-git-daemon: record daemon log"

From
Jeff King <peff@peff.net>
Date
Jan 7, 2019, 08:20 UTC
Message-ID
<20190107082041.GA21362@sigill.intra.peff.net>
In-Reply-To
<20190106175310.GC25639@hank.intra.tgummerer.com>
On Sun, Jan 06, 2019 at 05:53:10PM +0000, Thomas Gummerer wrote:
Show 16 quoted lines
> This reverts commit 314a73d658 (t/lib-git-daemon: record daemon log,
> 2018-01-25), which let tests use the output of git-daemon.
> 
> The previous commit removed the last user of deamon.log in the tests,
> there's no good way to make checking for output in the log
> race-proof.  Revert this commit as well, to make sure others are not
> tempted to use daemon.log in tests in the future, which would lead to
> racy tests.
> 
> The original commit had one change that still makes sense, namely
> switching read/echo for "read -r" and "printf", which relays the data
> more faithfully.  Don't revert that piece here, as it is still a
> useful change.
> 
> Suggested-by: Jeff King <peff@peff.net>
> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>

Yep, this looks good to me. Thanks for being extra careful with the read/printf bits!

Looks like Junio already queued a99653a9b6 (Revert "t/lib-git-daemon: record daemon log", 2018-12-28) on the tip of tg/t5570-drop-racy-test, but that's a pure revert. I think we can replace it with this.

-Peff
Previous: Thomas GummererNext: Junio C Hamano
Message 9 of 12 in “t5570 shaky for anyone ?”
  1. Torsten BögershausenNov 25, 2018
  2. Thomas GummererNov 25, 2018
  3. Jeff KingNov 26, 2018
  4. t5570: drop racy testThomas Gummerer, Dec 20, 2018
  5. Jeff KingDec 20, 2018
  6. Johannes SchindelinDec 21, 2018
  7. Thomas GummererJan 6, 2019
  8. 2/1 Revert "t/lib-git-daemon: record daemon log"Thomas Gummerer, Jan 6, 2019
  9. Jeff KingJan 7, 2019
  10. Junio C HamanoJan 7, 2019
  11. SZEDER GáborNov 25, 2018
  12. Jeff KingNov 26, 2018

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.