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

Re: Test failures with python versions when building git 1.8.1

From
Jeff King <peff@peff.net>
Date
Jan 2, 2013, 06:53 UTC
Message-ID
<20130102065345.GA8685@sigill.intra.peff.net>
In-Reply-To
<7va9ss5fhq.fsf@alter.siamese.dyndns.org>
On Tue, Jan 01, 2013 at 09:19:13PM -0800, Junio C Hamano wrote:
Show 14 quoted lines
> Dan McGee <dan@archlinux.org> writes:
> 
> > A test case snuck in this release that assumes /usr/bin/python is
> > python2 and causes test failures. Unlike all other tests and code
> > depending on python, this one does not respect PYTHON_PATH, which we
> > explicitly set when building git on Arch Linux due to python2 vs
> > python3 differences.
> 
> I had an impression that you are not supposed to run our scripts
> with python3 yet (no python scripts have been checked for python3
> compatibility), even though some people have expressed interests in
> doing so.
> 
> Eric?

Yeah, but the worrying thing to me is that we are not respecting PYTHON_PATH. So even if Arch does everything right, it is getting punished just for having python3 on the system at all.

I think we need to either:
  1. Build contrib/svn-fe/svnrdump_sim.py into svnrdump using our normal
     build procedure, which handles $PYTHON_PATH (right now we seem to
     just symlink[1] it into place as svnrdump during the test script
     run).
  2. Create svnrdump as a shell script in the test suite to do something
     like[2]:
       $PYTHON_PATH "$TEST_DIRECTORY"/../contrib/svn-fe/svnrdump_sim.py
-Peff
[1] This symlink is doubly wrong, because any use of symbolic links
    in the test scripts needs to depend on the SYMLINKS prereq, and this
    does not.
[2] In both the current code and what I showed above, the test scripts
    depend on things in contrib/. This is probably a bad idea in
    general, as the quality of what goes into contrib is not as closely
    watched (especially with respect to things like portability).
    Certainly I would not have known to look more carefully at a patch
    to contrib/svn-fe for breakage to the test suite.
    FWIW, we also have this situation with t9902 (bash completion),
    though the dependency is a little more obvious there. It might be
    worth promoting bash completion out of contrib (or alternatively,
    demoting t9902 into contrib/completion/, possibly with a feature to
    make it easier to run tests out of contrib).
Previous: Eric S. RaymondNext: Junio C Hamano
Message 4 of 12 in “Test failures with python versions when building git 1.8.1”
  1. Dan McGeeJan 2, 2013
  2. Junio C HamanoJan 2, 2013
  3. Eric S. RaymondJan 2, 2013
  4. Jeff KingJan 2, 2013
  5. Junio C HamanoJan 2, 2013
  6. Jeff KingJan 2, 2013
  7. Joachim SchmitzJan 2, 2013
  8. Dan McGeeJan 2, 2013
  9. Junio C HamanoJan 2, 2013
  10. Dan McGeeJan 2, 2013
  11. Junio C HamanoJan 2, 2013
  12. Jeff KingJan 2, 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.