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

Re: t8001-annotate.sh fails on Mac OS X

From
Fredrik Kuivinen <freku045@student.liu.se>
Date
May 26, 2006, 04:32 UTC
Message-ID
<20060526043258.GA4508@c165.ib.student.liu.se>
In-Reply-To
<20060526011153.GA27720@spearce.org>
On Thu, May 25, 2006 at 09:11:53PM -0400, Shawn Pearce wrote:
Show 32 quoted lines
> Stefan Pfetzing <stefan.pfetzing@gmail.com> wrote:
> > Hi,
> > 
> > for some reason I could not yet figure out, t8001-annotate.sh fails at test 
> > 18.
> > 
> > --- snip ---
> > *   ok 17: some edit
> > * expecting success: check_count A 1 B 1 B1 1 B2 1 "A U Thor" 1 C 1 D 1
> > Author A (expected 1, attributed 1) good
> > Author B1 (expected 1, attributed 1) good
> > Author D (expected 1, attributed 2) bad
> > Author A U Thor (expected 1, attributed 1) good
> > Author B2 (expected 1, attributed 1) good
> > Author B (expected 1, attributed 1) good
> > * FAIL 18: some edit
> >        check_count A 1 B 1 B1 1 B2 1 "A U Thor" 1 C 1 D 1
> > * failed 1 among 18 test(s)
> 
> I've been seeing the same failed test case for a long time now on
> my own Mac OS X system.  I think it has to do with the "git blame"
> vs. "git annotate" war which never really happened.
> 
> I think we had hoped that one of the two tools would prove to be
> _the_ annotation/blame tool and would get used but thus far that
> hasn't happened.  Since they are two different implementations
> they also differ slightly over how they attribute a change across
> a merge, and in this case annotate is producing a different result
> from blame - but that different result isn't considered to be wrong
> so it hasn't been changed in annotate.  Meanwhile the test has stayed
> broken as a reminder that these two generate different results.
>

I have planned to come up with a nice test suite for blame/annotate, but I haven't got around to it yet.

I don't see this test failure on my Debian system. But it is true that for some cases different blame/annotate outputs are equally correct, however not in this case. Note that the incomplete line is attributed to the commit with author D, but this commit did clearly not introduce that line. The only correct answer, for that particular line, is the commit with author C.

- Fredrik
Previous: Ryan AndersonNext: Johannes Schindelin
Message 6 of 9 in “t8001-annotate.sh fails on Mac OS X”
  1. Stefan PfetzingMay 25, 2006
  2. Shawn PearceMay 26, 2006
  3. Junio C HamanoMay 26, 2006
  4. Martin LanghoffMay 26, 2006
  5. Ryan AndersonMay 27, 2006
  6. Fredrik KuivinenMay 26, 2006
  7. Johannes SchindelinMay 26, 2006
  8. Stefan PfetzingMay 26, 2006
  9. Nicolas Vilz 'niv'May 27, 2006

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.