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

Re: Is t5516 somehow flakey only on macOS?

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jan 9, 2021, 10:57 UTC
Message-ID
<CAPig+cSgeciRLJ07busWu-M9CP4DLWfQxZc3jNmVBaGL0Uq=MA@mail.gmail.com>
In-Reply-To
<X/mJ6gHrKVxQqPX4@coredump.intra.peff.net>
On Sat, Jan 9, 2021 at 5:48 AM Jeff King <peff@peff.net> wrote:
Show 8 quoted lines
> Commit 014ade7484 (upload-pack: send ERR packet for non-tip objects,
> 2019-04-13) added a test that greps the output of a failed fetch to make
> sure that upload-pack sent us the ERR packet we expected. But checking
> this is racy; despite the argument in that commit, the client may still
> be sending a "done" line when the server exits, causing it to die() on a
> failed write() and never see the ERR packet at all.
> [...]
> So let's loosen to test to avoid annoying racy failures. If we
s/to test to/the test to/
Show 13 quoted lines
> eventually do the read-after-failed-write thing, we can tighten it. And
> if not, v0 will grow increasingly obsolete as servers support v2, so the
> utility of this test will decrease over time anyway.
>
> Note that we can still check stderr to make sure upload-pack bailed for
> the reason we expected. It writes a similar message to stderr, and
> because the server side is just another process connected by pipes,
> we'll reliably see it. This would not be the case for git://, or for
> ssh servers that do not relay stderr (e.g., GitHub's custom endpoint
> does not).
>
> Helped-by: SZEDER Gábor <szeder.dev@gmail.com>
> Signed-off-by: Jeff King <peff@peff.net>
Previous: Jeff KingNext: SZEDER Gábor
Message 5 of 9 in “Is t5516 somehow flakey only on macOS?”
  1. Junio C HamanoJan 9, 2021
  2. Eric SunshineJan 9, 2021
  3. Jeff KingJan 9, 2021
  4. Jeff KingJan 9, 2021
  5. Eric SunshineJan 9, 2021
  6. SZEDER GáborJan 9, 2021
  7. Junio C HamanoJan 9, 2021
  8. Jeff KingJan 10, 2021
  9. Junio C HamanoJan 9, 2021

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.