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

Re: do people find t5504.8 flaky?

From
Jeff King <peff@peff.net>
Date
Apr 23, 2019, 03:02 UTC
Message-ID
<20190423030254.GA19604@sigill.intra.peff.net>
In-Reply-To
<xmqqmukh5tj6.fsf@gitster-ct.c.googlers.com>
On Tue, Apr 23, 2019 at 11:45:17AM +0900, Junio C Hamano wrote:
Show 8 quoted lines
> I have been seeing occasional failures of t5504-fetch-receive-strict
> test on the cc/replace-graft-peel-tags topic, but it seems that the
> fork point of that topic from the mainline already fails the same
> step #8, only less frequently.
> 
> The push is rejected as expected, but the remote side that receives
> the "push" fails and the local side does not leave an expected
> output we expect when the test fails.

No, I haven't seen it fail, nor does running with --stress turn up anything. But looking at the test I would not be at all surprised if we have races around error hangups. I believe that index-pack will die unceremoniously as soon as something fails to pass its fsck check.

The client will keep sending data, and may hit a SIGPIPE (or the network equivalent), depending on how much slack there is in the buffers, whether we hit the problem as a base object or after we receive everything and start resolving deltas, etc.

I think after seeing a fatal error we probably ought to consider pumping the rest of the bytes from the client to /dev/null. That's wasteful, but it's the only clean way to get a message back, I think. It would also give us the opportunity to complain about other objects, too, if there are multiple (it might make sense to abort before resolving deltas, though; at that point we have all of the data and that phase is very CPU intensive).

-Peff
Previous: Junio C HamanoNext: SZEDER Gábor
Message 2 of 9 in “do people find t5504.8 flaky?”
  1. Junio C HamanoApr 23, 2019
  2. Jeff KingApr 23, 2019
  3. SZEDER GáborNov 13, 2019
  4. Jeff KingNov 13, 2019
  5. Jeff KingNov 13, 2019
  6. SZEDER GáborNov 18, 2019
  7. Randall S. BeckerNov 18, 2019
  8. Junio C HamanoNov 13, 2019
  9. Johannes SchindelinApr 29, 2019

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.