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

Re: t5570 shaky for anyone ?

From
Jeff King <peff@peff.net>
Date
Nov 26, 2018, 16:45 UTC
Message-ID
<20181126164537.GB27711@sigill.intra.peff.net>
In-Reply-To
<20181125222247.GD30222@szeder.dev>
On Sun, Nov 25, 2018 at 11:22:47PM +0100, SZEDER Gábor wrote:
Show 14 quoted lines
> > The following fixes it, but I am not sure if this is the ideal
> > solution.
> 
> Currently this is the only test that looks at 'daemon.log', but if we
> ever going to add another one, then that will be prone to the same
> issue.
> 
> I wonder whether it's really that useful to have the daemon log in the
> test script's output...  if the log was sent directly to daemon log,
> then the window for this race would be smaller, but still not
> completely closed.
> 
> Anyway, I added Peff to Cc, since he added that whole fifo-shell-loop
> thing.

Yeah, see my comments on the other part of the thread. If we did write directly to a file, I think that would be enough here because git-daemon writes this entry before running the sub-process. So by the time ls-remote finishes, we know that it talked to upload-pack, and we know that before upload-pack was run, git-daemon wrote the log entry. That assumes git-daemon doesn't buffer its logs (but if it does, we should probably fix that).

-Peff
Previous: SZEDER Gábor
Message 12 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.