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

Re: [PATCH v1 2/2] p0005-status: time status on very large repo

From
Jeff King <peff@peff.net>
Date
Apr 7, 2017, 04:29 UTC
Message-ID
<20170407042955.i63i6prc3rwi4i6s@sigill.intra.peff.net>
In-Reply-To
<db545f25-b0a7-2359-e6f5-7a89860c4022@jeffhostetler.com>
On Thu, Apr 06, 2017 at 09:26:15AM -0400, Jeff Hostetler wrote:
Show 13 quoted lines
> > > +export depth
> > > +export width
> > > +export files
> > 
> > Why are these exported?  test_expect_success code (unlike test_per
> > code) runs in the same shell as outside, so it doesn't seem necessary.
> 
> I'm still trying to grok all of the shell wizardry hidden
> in the test_* functions, so some may be novice mistakes here.
> However, I couldn't get some of the steps to run in an earlier
> draft of it without them.  But I copied this from p0004-read-tree
> that I posted in an earlier patch and this version is much simpler
> so they may not be necessary here.  I'll double check.

It's a subtle but annoying difference between the regular tests and the perf tests. test_perf() runs in a subshell because of the way the timing is implemented. There are a few pointers in t/perf/README regarding this.

-Peff
Previous: Jeff Hostetler
Message 10 of 10 in “string-list: use ALLOC_GROW macro when reallocing”
  1. 0/2 string-list: use ALLOC_GROW macro when reallocinggit@jeffhostetler.com, Apr 5, 2017
  2. 1/2 string-list: use ALLOC_GROW macro when reallocing string_listgit@jeffhostetler.com, Apr 5, 2017
  3. Stefan BellerApr 5, 2017
  4. Jeff KingApr 5, 2017
  5. Jeff HostetlerApr 5, 2017
  6. Jonathan NiederApr 5, 2017
  7. 2/2 p0005-status: time status on very large repogit@jeffhostetler.com, Apr 5, 2017
  8. Jonathan NiederApr 5, 2017
  9. Jeff HostetlerApr 6, 2017
  10. Jeff KingApr 7, 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.