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

Re: [PATCH 2/2] t/lib-git-svn.sh: improve svnserve tests with parallel make test

From
Todd Zullinger <tmz@pobox.com>
Date
Dec 1, 2017, 03:45 UTC
Message-ID
<20171201034519.GE3693@zaya.teonanacatl.net>
In-Reply-To
<20171201030234.GF20640@aiede.mtv.corp.google.com>
Hi Jonathan,
Jonathan Nieder wrote:
Show 17 quoted lines
> Todd Zullinger wrote:
>
>> Previously, setting SVNSERVE_PORT enabled several tests which require a
>> local svnserve daemon to be run (in t9113 & t9126).  The tests share the
>> setup of the local svnserve via `start_svnserve()`.  The function uses
>> the svnserve option `--listen-once` which causes svnserve to accept one
>> connection on the port, serve it, and exit.  When running the tests in
>> parallel this fails if one test tries to start svnserve while the other
>> is still running.
>
> I had trouble reading this because I didn't know what previous time it
> was referring to.  Is it about how the option currently behaves?
>
> (Git's commit messages tend to use the present tense to describe the
> behavior before the patch, like a bug report, and the imperative to
> describe the change the patch proposes to make, like an impolite bug
> report. :))

This is what I get for skipping grammar classes to go hiking in my youth. But I'm sure I'd do it all again, if given the chance. ;)

Show 11 quoted lines
>> Use the test number as the svnserve port (similar to httpd tests) to
>> avoid port conflicts.  Set GIT_TEST_SVNSERVE to any value other than
>> 'false' or 'auto' to enable these tests.
>
> This uses imperative in two ways and also ended up confusing me.  The
> second one is a direction to me, not Git, right?  How about:
>
> 	Use the test number instead of $SVNSERVE_PORT as the svnserve
> 	port (similar to httpd tests) to avoid port conflicts.
> 	Developers can set GIT_TEST_SVNSERVE to any value other than
> 	'false' or 'auto' to enable these tests.
Much better, thank you.  How about this for the full commit message:
    t/lib-git-svn.sh: improve svnserve tests with parallel make test
    Setting SVNSERVE_PORT enables several tests which require a local
    svnserve daemon to be run (in t9113 & t9126).  The tests share setup of
    the local svnserve via `start_svnserve()`.  The function uses svnserve's
    `--listen-once` option, which causes svnserve to accept one connection
    on the port, serve it, and exit.  When running the tests in parallel
    this fails if one test tries to start svnserve while the other is still
    running.
    Use the test number as the svnserve port (similar to httpd tests) to
    avoid port conflicts.  Developers can set GIT_TEST_SVNSERVE to any value
    other than 'false' or 'auto' to enable these tests.
?
Thanks,
-- 
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Curiosity killed the cat, but for awhile I was a suspect.
    -- Steven Wright
Previous: Jonathan NiederNext: Jonathan Nieder
Message 8 of 17 in “t/lib-git-svn.sh: improve svnserve tests with parallel make test”
  1. 0/2 t/lib-git-svn.sh: improve svnserve tests with parallel make testTodd Zullinger, Dec 1, 2017
  2. 1/2 t/lib-git-svn: whitespace cleanupTodd Zullinger, Dec 1, 2017
  3. Jonathan NiederDec 1, 2017
  4. Todd ZullingerDec 1, 2017
  5. Jonathan NiederDec 1, 2017
  6. 2/2 t/lib-git-svn.sh: improve svnserve tests with parallel make testTodd Zullinger, Dec 1, 2017
  7. Jonathan NiederDec 1, 2017
  8. Todd ZullingerDec 1, 2017
  9. Jonathan NiederDec 1, 2017
  10. Todd ZullingerDec 1, 2017
  11. Eric WongDec 1, 2017
  12. Todd ZullingerDec 1, 2017
  13. Jonathan NiederDec 1, 2017
  14. Todd ZullingerDec 1, 2017
  15. 0/2 t/lib-git-svn.sh: improve svnserve tests with parallel make testTodd Zullinger, Dec 14, 2017
  16. Junio C HamanoDec 14, 2017
  17. Todd ZullingerDec 14, 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.