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

Re: [PATCH] t9010: svnadmin can fail even if available

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 7, 2011, 01:31 UTC
Message-ID
<20110107013159.GA23280@burratino>
In-Reply-To
<7vpqs98qti.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes:
Show 5 quoted lines
>>> Also isn't the breakage not just this test, but also in all the tests that
>>> try to run "svnadmin load"?  Shouldn't we somehow hoist this logic out of
>>> t9010 and put it in t/lib-vcs-svn.sh or somewhere?
>
> Am I mistaken and t9010 is the only one that needs the fix in your patch?

Everything except t9010 is testing git-svn. My argument before was that this libsvn_subr breakage is going to leave git-svn broken anyway, so why bother guarding against it in tests?

That precise argument is broken in at least three ways:
 - the libsvn_subr breakage would only breaks "git svn dcommit" (and
   "git svn set-tree") and only when the remote svn repo is actually a
   local svn repo using the FSFS backend.
 - maybe the next time "svnadmin load" breaks it will not break
   git svn
 - this particular breakage seems especially unworthy of workarounds
   because it is so easy to fix on the svn side.

So why do I like the patch to t9010? Two reasons: first, it means t9010 could run on systems without svn installed at all, and second, it means that there is one less test to worry about if svn fails in some other way in the future.

To do the same for t91* would be impossible. If svn is broken or not installed, svn-fe will run fine, but "git svn" will not. On the other hand, if svnadmin were broken but svn still worked, "git svn" would be fine but that would be quite strange and I do not think it is worth spending time to prepare for.

Previous: Junio C HamanoNext: Ramkumar Ramachandra
Message 9 of 13 in “Repeatable test t9010-svn-fe.sh failure w/ master (685e9d9, 1.7.4.rc1)”
  1. A Large Angry SCMJan 6, 2011
  2. Jonathan NiederJan 6, 2011
  3. A Large Angry SCMJan 6, 2011
  4. t9010: svnadmin can fail even if availableJonathan Nieder, Jan 6, 2011
  5. A Large Angry SCMJan 6, 2011
  6. Junio C HamanoJan 6, 2011
  7. Jonathan NiederJan 6, 2011
  8. Junio C HamanoJan 7, 2011
  9. Jonathan NiederJan 7, 2011
  10. Ramkumar RamachandraJan 7, 2011
  11. Junio C HamanoJan 7, 2011
  12. Junio C HamanoJan 6, 2011
  13. A Large Angry SCMJan 6, 2011

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.