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

Re: [RFC][PATCH] index-pack: add testcases found using AFL

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 12, 2017, 18:14 UTC
Message-ID
<xmqq7f3uuzuu.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170312123212.3rnqyx3dvi5yppk5@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
> One further devil's advocate:
>
> If people really _do_ care about coverage, arguably the AFL tests are a
> pollution of that concept. Because they are running the code, but doing
> a very perfunctory job of testing it. IOW, our coverage of "code that
> doesn't segfault or trigger ASAN" is improved, but our coverage of "code
> that has been tested to be correct" is not (and since the tests are
> lumped together, it's hard to get anything but one number).
>
> So I dunno. I remain on the fence about the patch.

Yeah, I have been disturbed by your earlier remark "binary test cases that nobody, not even the author, understands", and the above summarizes it more clearly.

Continuously running fuzzer tests on the codebase would have value, but how exactly are these fuzzballs generated? Don't they depend on the code being tested? IOW, how effective is a set of fuzzballs that forces the code to take more branches in the current codepath for the purpose of testing new code that updates the codepath, changing the structure of the codeflow? Unless a new set of fuzzballs to match the updated codeflow is generated, wouldn't the test coverage with these fuzzballs erode over time, making them less and less useful baggage we carry around, without nobody noticing that they no longer are effective to help test coverage?

Previous: Vegard NossumNext: Vegard Nossum
Message 10 of 13 in “Re: [RFC][PATCH] index-pack: add testcases found using AFL”
  1. Vegard NossumMar 10, 2017
  2. Jeff KingMar 10, 2017
  3. Vegard NossumMar 10, 2017
  4. Jeff KingMar 10, 2017
  5. Vegard NossumMar 10, 2017
  6. Jeff KingMar 12, 2017
  7. Ævar Arnfjörð BjarmasonMar 10, 2017
  8. Jeff KingMar 12, 2017
  9. Vegard NossumMar 12, 2017
  10. Junio C HamanoMar 12, 2017
  11. Vegard NossumMar 13, 2017
  12. Junio C HamanoMar 13, 2017
  13. Vegard NossumMar 13, 2017

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.