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

Re: "git grep" parallelism question

From
John Keeping <john@keeping.me.uk>
Date
Apr 30, 2013, 08:08 UTC
Message-ID
<20130430080848.GP472@serenity.lan>
In-Reply-To
<7v1u9tgeov.fsf@alter.siamese.dyndns.org>
On Mon, Apr 29, 2013 at 03:22:24PM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> John Keeping <john@keeping.me.uk> writes:
> > No, I was the one missing something (--root to be precise).  But with
> > TEST_OUTPUT_DIRECTORY you also get the result files in your temporary
> > location, not just the trash directory.
> 
> With your patch, doesn't "tXXXX-*.sh --root $there" automatically
> use the fast $there temporary location as the result depot, too?
No, the current code uses:
    $TEST_OUTPUT_DIRECTORY/$root/trash\ directory.tXXXX
where we don't prepend $TEST_OUTPUT_DIRECTORY/ if $root is absolute.
> If it doesn't with the current code, shouldn't it?

I think the current behaviour is fine and the two options complement each other.

TEST_OUTPUT_DIRECTORY is something you set once and forget about which says "all of the test output should go over here", whereas --root is passed to a specific test and says "put your output here" but does not affect the result aggregation which is not specific to that test.

Note that setting TEST_OUTPUT_DIRECTORY in config.mak affects all tests no matter how you run them (via make or as ./tXXXX-yyyy.sh) whereas setting --root=... in GIT_TEST_OPTS only affect tests run via make.

Previous: Junio C HamanoNext: Jeff King
Message 12 of 16 in “"git grep" parallelism question”
  1. Linus TorvaldsApr 26, 2013
  2. Junio C HamanoApr 26, 2013
  3. Linus TorvaldsApr 26, 2013
  4. Junio C HamanoApr 26, 2013
  5. Linus TorvaldsApr 26, 2013
  6. Thomas RastApr 27, 2013
  7. Ramkumar RamachandraApr 29, 2013
  8. John KeepingApr 29, 2013
  9. Thomas RastApr 29, 2013
  10. John KeepingApr 29, 2013
  11. Junio C HamanoApr 29, 2013
  12. John KeepingApr 30, 2013
  13. Jeff KingApr 30, 2013
  14. John KeepingApr 30, 2013
  15. Jeff KingApr 30, 2013
  16. Pete WyckoffMay 5, 2013

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.