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

Re: [PATCH 3/3] http-push: update tests

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 17, 2009, 19:37 UTC
Message-ID
<alpine.DEB.1.00.0901172035000.3586@pacific.mpi-cbg.de>
In-Reply-To
<7vsknh7og5.fsf@gitster.siamese.dyndns.org>
Hi,
On Sat, 17 Jan 2009, Junio C Hamano wrote:
Show 9 quoted lines
> The original seems to want the push to succeed, and also it wants the 
> file refs/heads/master to be present after the push (presumably because 
> there should be that ref when the push succeeds).  If you fixed "push" 
> that used to fail to succeed, that is great, and s/failure/success/ is a 
> good thing.
> 
> But you are removing something else without explanation.  Why do you 
> need to remove the part of the test that checks if refs/heads/master is 
> present? Is it looking for a file in a wrong place?

As I mentioned with two other patches, the push does not succeed, and that is the reason for the "failure" in test_expect_failure.

It does not succeed for two reasons:
- due to an off-by-path_len bug, xmalloc() tries to allocate ~4GB of 
  memory, which is a bit much, so http-push die()s with an OOM.
- even with that fix, the push fails because it cannot find any common 
  refs.  It cannot find them because it does not download info/refs as it 
  is supposed to do, but it looks through refs/, missing the fact that the 
  refs are packed (which it cannot handle).

Ciao, Dscho

Previous: Junio C HamanoNext: Ray Chuan
Message 5 of 10 in “http-push: update tests”
  1. 3/3 http-push: update testsRay Chuan, Jan 17, 2009
  2. Johannes SchindelinJan 17, 2009
  3. Ray ChuanJan 17, 2009
  4. Junio C HamanoJan 17, 2009
  5. Johannes SchindelinJan 17, 2009
  6. Ray ChuanJan 17, 2009
  7. Jakub NarebskiJan 17, 2009
  8. Ray ChuanJan 17, 2009
  9. Jakub NarebskiJan 17, 2009
  10. Johannes SchindelinJan 17, 2009

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.