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

Re: Git Test Coverage Report (March 31, 2020)

From
Derrick Stolee <stolee@gmail.com>
Date
Apr 1, 2020, 13:27 UTC
Message-ID
<064fe1c7-3c93-fd82-ad78-92f800713462@gmail.com>
In-Reply-To
<20200401095635.GB60227@coredump.intra.peff.net>
On 4/1/2020 5:56 AM, Jeff King wrote:
Show 15 quoted lines
> On Tue, Mar 31, 2020 at 09:58:17PM -0400, Derrick Stolee wrote:
> 
>> Uncovered code in 'jch' not in 'next'
>> --------------------------------------------------------
>> [...]
>> Jeff King	16ddcd40 sha1_array: let callbacks interrupt iteration
>> oid-array.c
>> 16ddcd40 76) return ret;
> 
> Hmm, that commit is from 2016. I guess it was triggered now because I
> renamed sha1-array.c to oid-array.c recently. I'm not sure what the
> right thing is here. Following the movement via blames a long-ago commit
> (I just happen to be the author of both in this case). But not following
> the movement means that my rename would get blamed for code that isn't
> actually new.

Interesting. The test-coverage tool is checking blame after checking a diff, so the two are not as linked as they could be. The diff tries to find all modified lines in the files that were updated, and filters the blame output based on those. I suspect this will happen whenever we rename a file.

The "real" fix would be to filter out the blame lines for commits that don't actually fit in the commit range we are considering.

Thanks for looking closely!
-Stolee
Previous: Jeff KingNext: Taylor Blau
Message 3 of 4 in “Git Test Coverage Report (March 31, 2020)”
  1. Derrick StoleeApr 1, 2020
  2. Jeff KingApr 1, 2020
  3. Derrick StoleeApr 1, 2020
  4. Taylor BlauApr 14, 2020

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.