Skip to content

Plethora of tests failing on a Debian system in 0.3 branch #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yarikoptic opened this issue Dec 18, 2014 · 15 comments
Closed

Plethora of tests failing on a Debian system in 0.3 branch #216

yarikoptic opened this issue Dec 18, 2014 · 15 comments
Assignees
Milestone

Comments

@yarikoptic
Copy link
Contributor

I was about to update python-git package in Debian, and since I am a paranoid fella I wanted to enable build time unittesting. For that I have updated gitdb
to 0.6.0 and smmap to 0.8.3 but now I am getting a plethora of tests failing with 0.3.2.1 (btw -- please use annotated tags for the releases!) and even with tip of 0.3 (0.3.2.1-24-g891b124). Here are erroring and failing tests on my jessie/sid box

======================================================================
ERROR: test_index_merge_tree (git.test.test_index.TestIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_index.py", line 217, in test_index_merge_tree
    unmerged_tree = IndexFile.from_tree(rw_repo, parent_commit, tree, next_commit)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/index/base.py", line 335, in from_tree
    repo.git.read_tree(*arg_list, **kwargs)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/cmd.py", line 242, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/cmd.py", line 540, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/cmd.py", line 403, in execute
    raise GitCommandError(command, status, stderr_value)
GitCommandError: 'git read-tree --reset --aggressive --index-output=/home/yoh/.tmp/tmp4i1jT3non_bare_test_index_merge_tree/.git/z53Ynf c76852d0bff115720af3f27acdb084c59361e5f6 dbf49515b3c9357beddebdd45994e69690386934 4c39f9da792792d4e73fc3a5effde66576ae128c' returned exit status 128: error: cache entry has null sha1: MANIFEST.in
fatal: unable to write new index file

that directory /home/yoh/.tmp/tmp4i1jT3non_bare_test_index_merge_tree/.git/ is there, and there is MANIFEST.in:

ls /home/yoh/.tmp/tmp4i1jT3non_bare_test_index_merge_tree/     
AUTHORS  CHANGES  LICENSE  MANIFEST.in  README  VERSION  doc/  ez_setup.py  lib/  setup.py  test/
======================================================================
ERROR: test_index_mutation (git.test.test_index.TestIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_index.py", line 463, in test_index_mutation
    [os.path.abspath(os.path.join('lib', 'git', 'head.py'))] * 2, fprogress=self._fprogress_add)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/index/base.py", line 690, in add
    paths, entries = self._preprocess_add_items(items)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/index/base.py", line 552, in _preprocess_add_items
    paths.append(self._to_relative_path(item))
  File "/home/yoh/deb/gits/python-git.gitsvn/git/index/base.py", line 542, in _to_relative_path
    raise ValueError("Absolute path %r is not in git repository at %r" % (path, self.repo.working_tree_dir))
ValueError: Absolute path '/tmp/tmpE34FxXnon_bare_test_index_mutation/lib/git/head.py' is not in git repository at '/home/yoh/.tmp/tmpE34FxXnon_bare_test_index_mutation'

lie:

(git)hopa:~/.tmp/tmpE34FxXnon_bare_test_index_mutation[upstream-0.3]git
$> git status
On branch upstream-0.3
Your branch and 'origin/upstream-0.3' have diverged,
and have 3 and 791 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)
Untracked files:
  (use "git add <file>..." to include in what will be committed)

    lib/

nothing added to commit but untracked files present (use "git add" to track)

3

======================================================================
ERROR: test_base (git.test.test_reflog.TestRefLog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_reflog.py", line 42, in test_base
    reflog = RefLog.from_file(rlp_master_ro)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 157, in from_file
    return cls(filepath)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 131, in __init__
    self._read_from_file()
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 143, in _read_from_file
    self._deserialize(fmap)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 293, in _deserialize
    self.extend(self.iter_entries(stream))
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 183, in iter_entries
    yield new_entry(line.strip())
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 89, in from_line
    raise ValueError("line is missing tab separator")
ValueError: line is missing tab separator

not sure what to check/report

similar one(s):

======================================================================
ERROR: test_reflog (git.test.test_refs.TestRefs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_refs.py", line 538, in test_reflog
    assert isinstance(self.rorepo.heads.master.log(), RefLog)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/symbolic.py", line 351, in log
    return RefLog.from_file(RefLog.path(self))
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 157, in from_file
    return cls(filepath)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 131, in __init__
    self._read_from_file()
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 143, in _read_from_file
    self._deserialize(fmap)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 293, in _deserialize
    self.extend(self.iter_entries(stream))
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 183, in iter_entries
    yield new_entry(line.strip())
  File "/home/yoh/deb/gits/python-git.gitsvn/git/refs/log.py", line 89, in from_line
    raise ValueError("line is missing tab separator")
ValueError: line is missing tab separator

4

======================================================================
ERROR: test_fetch_info (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_remote.py", line 454, in test_fetch_info
    fetch_info_line_fmt % 'remote-tracking branch')
  File "/home/yoh/deb/gits/python-git.gitsvn/git/remote.py", line 260, in _from_line
    raise ValueError("Failed to parse FETCH__HEAD line: %r" % fetch_line)
ValueError: Failed to parse FETCH__HEAD line: "c437ee5deb8d00cf02f03720693e4c802e99f390 not-for-merge   remote-tracking branch '0.3' of git://github.com/gitpython-developers/GitPython"

probably has to do that local branch is called upstream-0.3. Was initiated with git co --track -b upstream-0.3 upstream/0.3

5

======================================================================
ERROR: test_rev_parse (git.test.test_repo.TestRepo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_repo.py", line 502, in test_rev_parse
    obj = self._assert_rev_parse(path_section)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_repo.py", line 451, in _assert_rev_parse
    self._assert_rev_parse_types(rev, obj2)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_repo.py", line 432, in _assert_rev_parse_types
    obj = rev_parse(name + ':CHANGES')
  File "/home/yoh/deb/gits/python-git.gitsvn/git/repo/fun.py", line 296, in rev_parse
    obj = obj[rev[start:]]
  File "/home/yoh/deb/gits/python-git.gitsvn/git/objects/tree.py", line 238, in __getitem__
    return self.__div__(item)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/objects/tree.py", line 192, in __div__
    raise KeyError(msg % file)
KeyError: "Blob or Tree named 'CHANGES' not found"

6

======================================================================
ERROR: test_base_rw (git.test.test_submodule.TestSubmodule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_submodule.py", line 381, in test_base_rw
    self._do_base_tests(rwrepo)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_submodule.py", line 203, in _do_base_tests
    sm.update(recursive=True)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/objects/submodule/base.py", line 476, in update
    submodule.update(recursive, init, to_latest_revision, progress=progress, dry_run=dry_run)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/objects/submodule/base.py", line 391, in update
    mrepo = git.Repo.clone_from(self.url, module_path, n=True)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/repo/base.py", line 753, in clone_from
    return cls._clone(Git(os.getcwd()), url, to_path, GitCmdObjectDB, progress, **kwargs)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/repo/base.py", line 705, in _clone
    finalize_process(proc)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/util.py", line 132, in finalize_process
    proc.wait()
  File "/home/yoh/deb/gits/python-git.gitsvn/git/cmd.py", line 114, in wait
    raise GitCommandError(self.args, status, self.proc.stderr.read())
GitCommandError: 'git clone -n -v /home/yoh/deb/gits/python-git.gitsvn/git/ext/gitdb/gitdb/ext/async /home/yoh/.tmp/tmpprVOajnon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async' returned exit status 128: fatal: repository '/home/yoh/deb/gits/python-git.gitsvn/git/ext/gitdb/gitdb/ext/async' does not exist

I do not see anything about defining this one (only gitdb/ext/smmap) in gitdb submodule

7

======================================================================
ERROR: test_root_module (git.test.test_submodule.TestSubmodule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_submodule.py", line 464, in test_root_module
    nsm = Submodule.add(rwrepo, nsmn, nsmp, url=async_url)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/objects/submodule/base.py", line 286, in add
    mrepo = git.Repo.clone_from(url, path, **kwargs)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/repo/base.py", line 753, in clone_from
    return cls._clone(Git(os.getcwd()), url, to_path, GitCmdObjectDB, progress, **kwargs)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/repo/base.py", line 705, in _clone
    finalize_process(proc)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/util.py", line 132, in finalize_process
    proc.wait()
  File "/home/yoh/deb/gits/python-git.gitsvn/git/cmd.py", line 114, in wait
    raise GitCommandError(self.args, status, self.proc.stderr.read())
GitCommandError: 'git clone -v /home/yoh/deb/gits/python-git.gitsvn/git/ext/gitdb/gitdb/ext/smmap submrepo' returned exit status 128: fatal: repository '/home/yoh/deb/gits/python-git.gitsvn/git/ext/gitdb/gitdb/ext/smmap' does not exist

because I apparently didn't recurse into init/update submodules within gitdb submod. May be test could be improved to report "Please init/update submodules under git/ext/gitdb" (I found no init --recursive, although there is update --recursive)

8-11

======================================================================
FAIL: test_with_rw_remote_and_rw_repo (git.test.test_base.TestBase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/lib/helper.py", line 199, in remote_repo_creator
    'Please start a git-daemon to run this test, execute: git-daemon "%s"' % os.path.dirname(_mktemp()))
AssertionError: Please start a git-daemon to run this test, execute: git-daemon "/home/yoh/.tmp"

======================================================================
FAIL: test_iteration (git.test.test_commit.TestCommit)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_commit.py", line 183, in test_iteration
    assert len(ltd_commits) < len(less_ltd_commits)
AssertionError

======================================================================
FAIL: test_base (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/lib/helper.py", line 199, in remote_repo_creator
    'Please start a git-daemon to run this test, execute: git-daemon "%s"' % os.path.dirname(_mktemp()))
AssertionError: Please start a git-daemon to run this test, execute: git-daemon "/home/yoh/.tmp"

======================================================================
FAIL: test_parse_date (git.test.test_util.TestUtils)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_util.py", line 107, in test_parse_date
    assert_rval(parse_date(date), veri_time, offset)
  File "/home/yoh/deb/gits/python-git.gitsvn/git/test/test_util.py", line 90, in assert_rval
    assert rval[0] == veri_time
AssertionError
@Byron Byron added this to the v0.3.3 milestone Dec 18, 2014
@Byron
Copy link
Member

Byron commented Dec 18, 2014

It's a known issue that git-python currently has failing tests, which are supposed to get fixed for the v0.3.3 release. It's interesting to see that there are different issues than there are on OSX, as I see only 3 errors and 3 failures, whereas you appear to have 8 and 4 respectively.

However, gitdb and smmap, should work fine on OSX and linux. My linux testing is currently only done regularly via travis ci though, as I work on OSX.

async has been removed and is no dependency anymore, the submodule tests related to it might fail because they have not been updated yet. git-submodule support in git-python is also heavily outdated due to the changes done to how git handles submodules by now.

Also, what kind of information would you expect in an annotated tag ?

My test results for comparison

All tests performed on 750e967, and I ran the git daemon /tmp as stated in one of the failing tests and made sure git-python was checked out with --init --recursive. In one of the tests listed by you, it says it wants git daemon "/home/yoh/.tmp" to make this test work.

It seems that linux shows no more regression than OSX, judging from comparison with xubuntu at least , and I would have expected the debian box you are using to be somewhat comparable to that.

OSX (git 1.9.3, python 2.7.6)

$ nosetests-2.7
..............................................................Keeping repo after failure: /private/tmp/tmpEDQoDrnon_bare_test_index_merge_tree
E...............F.E.......................F.F...........Keeping repo after failure: /private/tmp/tmpDAYyoxnon_bare_test_base_rw
Ewarning: no common commits
WARNING: Current sha eb40b44ce4a6e646aabf7b7091d876738336c42f was not contained in the tracking branch at the new remote, setting it the the remote's tracking branch
..........
======================================================================
ERROR: test_index_merge_tree (git.test.test_index.TestIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_index.py", line 217, in test_index_merge_tree
    unmerged_tree = IndexFile.from_tree(rw_repo, parent_commit, tree, next_commit)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/index/base.py", line 335, in from_tree
    repo.git.read_tree(*arg_list, **kwargs)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 242, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 540, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 403, in execute
    raise GitCommandError(command, status, stderr_value)
GitCommandError: 'git read-tree --reset --aggressive --index-output=/private/tmp/tmpEDQoDrnon_bare_test_index_merge_tree/.git/RkEjju c76852d0bff115720af3f27acdb084c59361e5f6 dbf49515b3c9357beddebdd45994e69690386934 4c39f9da792792d4e73fc3a5effde66576ae128c' returned exit status 128: error: cache entry has null sha1: MANIFEST.in
fatal: unable to write new index file

======================================================================
ERROR: test_fetch_info (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 454, in test_fetch_info
    fetch_info_line_fmt % 'remote-tracking branch')
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/remote.py", line 260, in _from_line
    raise ValueError("Failed to parse FETCH__HEAD line: %r" % fetch_line)
ValueError: Failed to parse FETCH__HEAD line: "c437ee5deb8d00cf02f03720693e4c802e99f390 not-for-merge   remote-tracking branch '0.3' of git://github.com/gitpython-developers/GitPython"

======================================================================
ERROR: test_base_rw (git.test.test_submodule.TestSubmodule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_submodule.py", line 381, in test_base_rw
    self._do_base_tests(rwrepo)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_submodule.py", line 203, in _do_base_tests
    sm.update(recursive=True)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/objects/submodule/base.py", line 476, in update
    submodule.update(recursive, init, to_latest_revision, progress=progress, dry_run=dry_run)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/objects/submodule/base.py", line 391, in update
    mrepo = git.Repo.clone_from(self.url, module_path, n=True)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/repo/base.py", line 753, in clone_from
    return cls._clone(Git(os.getcwd()), url, to_path, GitCmdObjectDB, progress, **kwargs)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/repo/base.py", line 705, in _clone
    finalize_process(proc)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/util.py", line 132, in finalize_process
    proc.wait()
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 114, in wait
    raise GitCommandError(self.args, status, self.proc.stderr.read())
GitCommandError: 'git clone -n -v /Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async /private/tmp/tmpDAYyoxnon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async' returned exit status 128: fatal: repository '/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async' does not exist

-------------------- >> begin captured stdout << ---------------------
DRY-RUN: Cloning /Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb to /private/tmp/tmpDAYyoxnon_bare_test_base_rw/git/ext/gitdb in submodule 'gitdb'
DRY-RUN: Done cloning to /private/tmp/tmpDAYyoxnon_bare_test_base_rw/git/ext/gitdb
DRY-RUN: Cloning /Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb to /private/tmp/tmpDAYyoxnon_bare_test_base_rw/git/ext/gitdb in submodule 'gitdb'
DRY-RUN: Done cloning to /private/tmp/tmpDAYyoxnon_bare_test_base_rw/git/ext/gitdb
DRY-RUN: Fetching remote origin of submodule 'gitdb'
DRY-RUN: Done fetching remote of submodule 'gitdb'
DRY-RUN: Cloning /Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async to /private/tmp/tmpDAYyoxnon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async in submodule 'async'
DRY-RUN: Done cloning to /private/tmp/tmpDAYyoxnon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: test_base (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 207, in remote_repo_creator
    return func(self, rw_repo, rw_remote_repo)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 415, in test_base
    self._do_test_fetch(remote, rw_repo, remote_repo)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 152, in _do_test_fetch
    res = fetch_and_test(remote)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 142, in fetch_and_test
    self._do_test_fetch_result(res, remote)
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 82, in _do_test_fetch_result
    assert len(results) > 0 and isinstance(results[0], FetchInfo)
AssertionError

======================================================================
FAIL: test_repo_creation_from_different_paths (git.test.test_repo.TestRepo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_repo.py", line 39, in test_repo_creation_from_different_paths
    assert r_from_gitdir.git_dir == self.rorepo.git_dir
AssertionError

======================================================================
FAIL: test_repr (git.test.test_repo.TestRepo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_repo.py", line 214, in test_repr
    assert_equal('<git.Repo "%s">' % path, repr(self.rorepo))
AssertionError: '<git.Repo "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/.git">' != '<git.Repo "/Users/byron/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/../../../../.git/modules/git-python">'

----------------------------------------------------------------------
Ran 129 tests in 20.188s

FAILED (errors=3, failures=3)

Xubuntu (git 1.9.1, python 2.7.6)

 nosetests-2.7 
..............................................................Keeping repo after failure: /tmp/tmphefCaAnon_bare_test_index_merge_tree
E...............F.E.......................F.F...........Keeping repo after failure: /tmp/tmpkf96Uinon_bare_test_base_rw
Ewarning: no common commits
WARNING: Current sha eb40b44ce4a6e646aabf7b7091d876738336c42f was not contained in the tracking branch at the new remote, setting it the the remote's tracking branch
..........
======================================================================
ERROR: test_index_merge_tree (git.test.test_index.TestIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_index.py", line 217, in test_index_merge_tree
    unmerged_tree = IndexFile.from_tree(rw_repo, parent_commit, tree, next_commit)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/index/base.py", line 335, in from_tree
    repo.git.read_tree(*arg_list, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 242, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 540, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 403, in execute
    raise GitCommandError(command, status, stderr_value)
GitCommandError: 'git read-tree --reset --aggressive --index-output=/tmp/tmphefCaAnon_bare_test_index_merge_tree/.git/nn5sVc c76852d0bff115720af3f27acdb084c59361e5f6 dbf49515b3c9357beddebdd45994e69690386934 4c39f9da792792d4e73fc3a5effde66576ae128c' returned exit status 128: error: cache entry has null sha1: MANIFEST.in
fatal: unable to write new index file

======================================================================
ERROR: test_fetch_info (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 454, in test_fetch_info
    fetch_info_line_fmt % 'remote-tracking branch')
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/remote.py", line 260, in _from_line
    raise ValueError("Failed to parse FETCH__HEAD line: %r" % fetch_line)
ValueError: Failed to parse FETCH__HEAD line: "c437ee5deb8d00cf02f03720693e4c802e99f390 not-for-merge   remote-tracking branch '0.3' of git://github.com/gitpython-developers/GitPython"

======================================================================
ERROR: test_base_rw (git.test.test_submodule.TestSubmodule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_submodule.py", line 381, in test_base_rw
    self._do_base_tests(rwrepo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_submodule.py", line 203, in _do_base_tests
    sm.update(recursive=True)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/objects/submodule/base.py", line 476, in update
    submodule.update(recursive, init, to_latest_revision, progress=progress, dry_run=dry_run)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/objects/submodule/base.py", line 391, in update
    mrepo = git.Repo.clone_from(self.url, module_path, n=True)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/repo/base.py", line 753, in clone_from
    return cls._clone(Git(os.getcwd()), url, to_path, GitCmdObjectDB, progress, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/repo/base.py", line 705, in _clone
    finalize_process(proc)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/util.py", line 132, in finalize_process
    proc.wait()
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 114, in wait
    raise GitCommandError(self.args, status, self.proc.stderr.read())
GitCommandError: 'git clone -n -v /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async /tmp/tmpkf96Uinon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async' returned exit status 128: fatal: repository '/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async' does not exist

-------------------- >> begin captured stdout << ---------------------
DRY-RUN: Cloning /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb to /tmp/tmpkf96Uinon_bare_test_base_rw/git/ext/gitdb in submodule 'gitdb'
DRY-RUN: Done cloning to /tmp/tmpkf96Uinon_bare_test_base_rw/git/ext/gitdb
DRY-RUN: Cloning /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb to /tmp/tmpkf96Uinon_bare_test_base_rw/git/ext/gitdb in submodule 'gitdb'
DRY-RUN: Done cloning to /tmp/tmpkf96Uinon_bare_test_base_rw/git/ext/gitdb
DRY-RUN: Fetching remote origin of submodule 'gitdb'
DRY-RUN: Done fetching remote of submodule 'gitdb'
DRY-RUN: Cloning /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async to /tmp/tmpkf96Uinon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async in submodule 'async'
DRY-RUN: Done cloning to /tmp/tmpkf96Uinon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: test_base (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 207, in remote_repo_creator
    return func(self, rw_repo, rw_remote_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 415, in test_base
    self._do_test_fetch(remote, rw_repo, remote_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 152, in _do_test_fetch
    res = fetch_and_test(remote)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 142, in fetch_and_test
    self._do_test_fetch_result(res, remote)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 82, in _do_test_fetch_result
    assert len(results) > 0 and isinstance(results[0], FetchInfo)
AssertionError

======================================================================
FAIL: test_repo_creation_from_different_paths (git.test.test_repo.TestRepo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_repo.py", line 39, in test_repo_creation_from_different_paths
    assert r_from_gitdir.git_dir == self.rorepo.git_dir
AssertionError

======================================================================
FAIL: test_repr (git.test.test_repo.TestRepo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_repo.py", line 214, in test_repr
    assert_equal('<git.Repo "%s">' % path, repr(self.rorepo))
AssertionError: '<git.Repo "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/.git">' != '<git.Repo "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/../../../../.git/modules/git-python">'

----------------------------------------------------------------------
Ran 129 tests in 82.710s

FAILED (errors=3, failures=3)

Centos 6.5 (git 1.7.1, python 2.6.6)

nosetests-2.6 
.......................................................E../media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_index.py:699: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  asserted = "does not have a working tree" in e.message
...........Keeping repo after failure: /tmp/tmpRUWPbJnon_bare_test_head_reset
E........F.E.......................F.F...........Keeping repo after failure: /tmp/tmpYE0Kn9non_bare_test_base_rw
Ewarning: no common commits
WARNING: Current sha eb40b44ce4a6e646aabf7b7091d876738336c42f was not contained in the tracking branch at the new remote, setting it the the remote's tracking branch
..........
======================================================================
ERROR: test_single_char_git_options_are_passed_to_git (git.test.test_git.TestGit)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_git.py", line 128, in test_single_char_git_options_are_passed_to_git
    output_value = self.git(c='user.name={}'.format(input_value)).config('--get', 'user.name')
ValueError: zero length field name in format

======================================================================
ERROR: test_head_reset (git.test.test_refs.TestRefs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_refs.py", line 494, in test_head_reset
    refs = list(SymbolicReference.iter_items(rw_repo))
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/refs/symbolic.py", line 613, in <genexpr>
    return (r for r in cls._iter_items(repo, common_path) if r.__class__ == SymbolicReference or not r.is_detached)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/refs/symbolic.py", line 590, in _iter_items
    yield cls.from_path(repo, path)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/refs/symbolic.py", line 629, in from_path
    if instance.__class__ == SymbolicReference and instance.is_detached:
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/refs/symbolic.py", line 339, in is_detached
    self.ref
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/refs/symbolic.py", line 246, in _get_reference
    sha, target_ref_path = self._get_ref_info(self.repo, self.path)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/refs/symbolic.py", line 150, in _get_ref_info
    if tokens[0] == 'ref:':
IndexError: list index out of range

======================================================================
ERROR: test_fetch_info (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 454, in test_fetch_info
    fetch_info_line_fmt % 'remote-tracking branch')
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/remote.py", line 260, in _from_line
    raise ValueError("Failed to parse FETCH__HEAD line: %r" % fetch_line)
ValueError: Failed to parse FETCH__HEAD line: "c437ee5deb8d00cf02f03720693e4c802e99f390 not-for-merge   remote-tracking branch '0.3' of git://github.com/gitpython-developers/GitPython"

======================================================================
ERROR: test_base_rw (git.test.test_submodule.TestSubmodule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_submodule.py", line 381, in test_base_rw
    self._do_base_tests(rwrepo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_submodule.py", line 203, in _do_base_tests
    sm.update(recursive=True)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/objects/submodule/base.py", line 476, in update
    submodule.update(recursive, init, to_latest_revision, progress=progress, dry_run=dry_run)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/objects/submodule/base.py", line 391, in update
    mrepo = git.Repo.clone_from(self.url, module_path, n=True)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/repo/base.py", line 753, in clone_from
    return cls._clone(Git(os.getcwd()), url, to_path, GitCmdObjectDB, progress, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/repo/base.py", line 705, in _clone
    finalize_process(proc)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/util.py", line 132, in finalize_process
    proc.wait()
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 114, in wait
    raise GitCommandError(self.args, status, self.proc.stderr.read())
GitCommandError: 'git clone -n -v /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async /tmp/tmpYE0Kn9non_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async' returned exit status 128: fatal: failed to open '/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async/objects': No such file or directory

-------------------- >> begin captured stdout << ---------------------
DRY-RUN: Cloning /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb to /tmp/tmpYE0Kn9non_bare_test_base_rw/git/ext/gitdb in submodule 'gitdb'
DRY-RUN: Done cloning to /tmp/tmpYE0Kn9non_bare_test_base_rw/git/ext/gitdb
DRY-RUN: Cloning /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb to /tmp/tmpYE0Kn9non_bare_test_base_rw/git/ext/gitdb in submodule 'gitdb'
DRY-RUN: Done cloning to /tmp/tmpYE0Kn9non_bare_test_base_rw/git/ext/gitdb
DRY-RUN: Fetching remote origin of submodule 'gitdb'
DRY-RUN: Done fetching remote of submodule 'gitdb'
DRY-RUN: Cloning /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async to /tmp/tmpYE0Kn9non_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async in submodule 'async'
DRY-RUN: Done cloning to /tmp/tmpYE0Kn9non_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: test_base (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 207, in remote_repo_creator
    return func(self, rw_repo, rw_remote_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 415, in test_base
    self._do_test_fetch(remote, rw_repo, remote_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 152, in _do_test_fetch
    res = fetch_and_test(remote)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 142, in fetch_and_test
    self._do_test_fetch_result(res, remote)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 82, in _do_test_fetch_result
    assert len(results) > 0 and isinstance(results[0], FetchInfo)
AssertionError

======================================================================
FAIL: test_repo_creation_from_different_paths (git.test.test_repo.TestRepo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_repo.py", line 39, in test_repo_creation_from_different_paths
    assert r_from_gitdir.git_dir == self.rorepo.git_dir
AssertionError

======================================================================
FAIL: test_repr (git.test.test_repo.TestRepo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_repo.py", line 214, in test_repr
    assert_equal('<git.Repo "%s">' % path, repr(self.rorepo))
AssertionError: '<git.Repo "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/.git">' != '<git.Repo "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/../../../../.git/modules/git-python">'

----------------------------------------------------------------------
Ran 129 tests in 82.993s

FAILED (errors=4, failures=3)

Fedora 17 (git 1.7.11.7, python 2.7.3)

This one shows errors related to a nonesense e-mail which is auto-generated by the test - certainly a bug worth fixing too.

nosetests-2.7 
..............................................................Keeping repo after failure: /tmp/tmpUE_tmRnon_bare_test_index_merge_tree
E......Keeping repo after failure: /tmp/tmpOyuTZrnon_bare_test_head_reset
E........E.E.......................F.F...........Keeping repo after failure: /tmp/tmpzvdi0Inon_bare_test_base_rw
Ewarning: no common commits
WARNING: Current sha eb40b44ce4a6e646aabf7b7091d876738336c42f was not contained in the tracking branch at the new remote, setting it the the remote's tracking branch
..........
======================================================================
ERROR: test_index_merge_tree (git.test.test_index.TestIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_index.py", line 217, in test_index_merge_tree
    unmerged_tree = IndexFile.from_tree(rw_repo, parent_commit, tree, next_commit)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/index/base.py", line 335, in from_tree
    repo.git.read_tree(*arg_list, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 242, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 540, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 403, in execute
    raise GitCommandError(command, status, stderr_value)
GitCommandError: 'git read-tree --reset --aggressive --index-output=/tmp/tmpUE_tmRnon_bare_test_index_merge_tree/.git/JoEmJV c76852d0bff115720af3f27acdb084c59361e5f6 dbf49515b3c9357beddebdd45994e69690386934 4c39f9da792792d4e73fc3a5effde66576ae128c' returned exit status 128: error: cache entry has null sha1: MANIFEST.in
fatal: unable to write new index file

======================================================================
ERROR: test_head_reset (git.test.test_refs.TestRefs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_refs.py", line 277, in test_head_reset
    obj_tag = TagReference.create(rw_repo, other_tag_name, message=msg)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/refs/tag.py", line 80, in create
    repo.git.tag(*args, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 242, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 540, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 403, in execute
    raise GitCommandError(command, status, stderr_value)
GitCommandError: 'git tag -mmy mighty tag
second line releases/1.0.2RC HEAD' returned exit status 128: 
*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'byron@byronimovm-fedora.(none)')

======================================================================
ERROR: test_base (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 207, in remote_repo_creator
    return func(self, rw_repo, rw_remote_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 409, in test_base
    self._assert_push_and_pull(remote, rw_repo, remote_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 305, in _assert_push_and_pull
    other_tag = TagReference.create(rw_repo, "my_obj_tag.2.1aRV", message="my message")
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/refs/tag.py", line 80, in create
    repo.git.tag(*args, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 242, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 540, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 403, in execute
    raise GitCommandError(command, status, stderr_value)
GitCommandError: 'git tag -mmy message my_obj_tag.2.1aRV HEAD' returned exit status 128: 
*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'byron@byronimovm-fedora.(none)')

======================================================================
ERROR: test_fetch_info (git.test.test_remote.TestRemote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_remote.py", line 454, in test_fetch_info
    fetch_info_line_fmt % 'remote-tracking branch')
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/remote.py", line 260, in _from_line
    raise ValueError("Failed to parse FETCH__HEAD line: %r" % fetch_line)
ValueError: Failed to parse FETCH__HEAD line: "c437ee5deb8d00cf02f03720693e4c802e99f390 not-for-merge   remote-tracking branch '0.3' of git://github.com/gitpython-developers/GitPython"

======================================================================
ERROR: test_base_rw (git.test.test_submodule.TestSubmodule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/lib/helper.py", line 111, in repo_creator
    return func(self, rw_repo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_submodule.py", line 381, in test_base_rw
    self._do_base_tests(rwrepo)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_submodule.py", line 203, in _do_base_tests
    sm.update(recursive=True)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/objects/submodule/base.py", line 476, in update
    submodule.update(recursive, init, to_latest_revision, progress=progress, dry_run=dry_run)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/objects/submodule/base.py", line 391, in update
    mrepo = git.Repo.clone_from(self.url, module_path, n=True)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/repo/base.py", line 753, in clone_from
    return cls._clone(Git(os.getcwd()), url, to_path, GitCmdObjectDB, progress, **kwargs)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/repo/base.py", line 705, in _clone
    finalize_process(proc)
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/util.py", line 132, in finalize_process
    proc.wait()
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/cmd.py", line 114, in wait
    raise GitCommandError(self.args, status, self.proc.stderr.read())
GitCommandError: 'git clone -n -v /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async /tmp/tmpzvdi0Inon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async' returned exit status 128: fatal: repository '/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async' does not exist

-------------------- >> begin captured stdout << ---------------------
DRY-RUN: Cloning /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb to /tmp/tmpzvdi0Inon_bare_test_base_rw/git/ext/gitdb in submodule 'gitdb'
DRY-RUN: Done cloning to /tmp/tmpzvdi0Inon_bare_test_base_rw/git/ext/gitdb
DRY-RUN: Cloning /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb to /tmp/tmpzvdi0Inon_bare_test_base_rw/git/ext/gitdb in submodule 'gitdb'
DRY-RUN: Done cloning to /tmp/tmpzvdi0Inon_bare_test_base_rw/git/ext/gitdb
DRY-RUN: Fetching remote origin of submodule 'gitdb'
DRY-RUN: Done fetching remote of submodule 'gitdb'
DRY-RUN: Cloning /media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/ext/gitdb/gitdb/ext/async to /tmp/tmpzvdi0Inon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async in submodule 'async'
DRY-RUN: Done cloning to /tmp/tmpzvdi0Inon_bare_test_base_rw/git/ext/gitdb/gitdb/ext/async

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: test_repo_creation_from_different_paths (git.test.test_repo.TestRepo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_repo.py", line 39, in test_repo_creation_from_different_paths
    assert r_from_gitdir.git_dir == self.rorepo.git_dir
AssertionError

======================================================================
FAIL: test_repr (git.test.test_repo.TestRepo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/git/test/test_repo.py", line 214, in test_repr
    assert_equal('<git.Repo "%s">' % path, repr(self.rorepo))
AssertionError: '<git.Repo "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/.git">' != '<git.Repo "/media/psf/Home/Documents/dev/bdep-oss/lib/git-python/0.3/noarch/../../../../.git/modules/git-python">'

----------------------------------------------------------------------
Ran 129 tests in 81.001s

FAILED (errors=5, failures=2)

@yarikoptic
Copy link
Contributor Author

Thanks for the detailed answer!!!

  • That was my next question -- why there is no .travis.yml in this one (while in dbgit etc) ;-)? FWIW I have also initiated an attempt to provide chroot environments/runners to be used within travis (https://github.com/neurodebian/travis-chroots, so not only elderly precise and not only amd64), but haven't finalized it on a sample project yet (https://travis-ci.org/neurodebian/psychopy/builds)
  • "Also, what kind of information would you expect in an annotated tag ?"
    whatever you wish ;) the point is that it would become a "proper tag" instead of a mere pointer, and "git describe" would use it without necessity to specify --tags
  • I guess I would just need to skip those failing tests for now and better package from the tip of the 0.3 branch, right?

@yarikoptic
Copy link
Contributor Author

btw -- "and I ran the git daemon /tmp as stated in one of the failing tests" -- might be better to start it automagically ? I do smth like that with a decorator in another project for starting web server for some tests -- if of any help: https://github.com/datalad/datalad/blob/HEAD/datalad/tests/utils.py#L164

@Byron
Copy link
Member

Byron commented Dec 18, 2014

  • About annotated tags.
    • Ah, I see !
      git describe was confusing me plenty of times before because it didn't work out of the box as I expected. Tags are tags, I thought, at least git didn't ever make it clear to me that ref based tags are somehow considered minor. Next time, I will try to remember to use proper tags though, thanks for the hint.
  • "I guess I would just need to skip those failing tests for now and better package from the tip of the 0.3 branch, right?"
    • Yes, I recommend to use tip of 0.3 and package it as 0.3.2.1 . The next milestone is 0.3.3 which aims for working tests on all *nix platforms (and yes, I am willing to close an eye or two on windows because I don't want to take the pain)
  • on git daemon better started automatically

@yarikoptic
Copy link
Contributor Author

"0.3 and package it as 0.3.2.1 "
no no no ;)

$> git describe --tags upstream/0.3
0.3.2.1-24-g891b124

so it will become 0.3.2.1+git24-g891b124, unless you give it a 0.3.2.2 tag ;)

@Byron
Copy link
Member

Byron commented Dec 18, 2014

:D ! Yes, I was sloppy there, but you got my point. It would be a bad thing not to be able to figure out exactly which commit the debian version was made from.

As I don't want to re-release for minor changes just yet, I believe 0.3.2.1+git24-g891b124 it is then.

@yarikoptic
Copy link
Contributor Author

or may be lazy me should just wait for tests to get fixed... --exclude becomes too long atm :-/
btw -- here is the one on date parsing -- seems to be an issue of GMT vs local zone (I am in EDT)

test_parse_date (git.test.test_util.TestUtils) ... > /home/yoh/deb/gits/python-git/git/test/test_util.py(90)assert_rval()
-> assert rval[0] == veri_time
(Pdb) print rval[0]
1112926391
(Pdb) print veri_time
1112904791
*(Pdb) print veri_time - 1112926391
-21600
*(Pdb) print (veri_time - 1112926391)/3600
-6

@yarikoptic
Copy link
Contributor Author

as for 3: (missing tab separator)

*(Pdb) ":".join("{:02x}({})".format(ord(c), c) for c in line)
'30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):30(0):20( ):36(6):30(0):39(9):32(2):33(3):37(7):64(d):38(8):62(b):35(5):61(a):34(4):37(7):64(d):35(5):65(e):36(6):38(8):62(b):61(a):62(b):65(e):61(a):31(1):31(1):36(6):37(7):31(1):32(2):65(e):35(5):64(d):34(4):31(1):65(e):38(8):61(a):39(9):34(4):39(9):20( ):59(Y):61(a):72(r):6f(o):73(s):6c(l):61(a):76(v):20( ):48(H):61(a):6c(l):63(c):68(h):65(e):6e(n):6b(k):6f(o):20( ):3c(<):64(d):65(e):62(b):69(i):61(a):6e(n):40(@):6f(o):6e(n):65(e):72(r):75(u):73(s):73(s):69(i):61(a):6e(n):2e(.):63(c):6f(o):6d(m):3e(>):20( ):31(1):34(4):31(1):38(8):38(8):36(6):33(3):32(2):35(5):36(6):20( ):2b(+):30(0):30(0):30(0):30(0)'
(Pdb) print line
0000000000000000000000000000000000000000 609237d8b5a47d5e68babea116712e5d41e8a949 Yaroslav Halchenko <[email protected]> 1418863256 +0000

so indeed no tabs -- spaces (git 2.1.3)

@yarikoptic
Copy link
Contributor Author

btw -- are you working on the .travis.yml or should I try? ;-)

@Byron
Copy link
Member

Byron commented Dec 18, 2014

This file does exist, and I didn't trust myself there at all either ;).

 git ls-files | grep travis && echo works for me

Are you talking about the excludes you wanted to add ? I thought these are related to your package scripts.

@yarikoptic
Copy link
Contributor Author

re travis: sorry!! I was blind (or just was looking in the wrong place doing too many things at once). Indeed it is failing with 2 of the tests which fail for me. I have provided info on the date one , and here is for the test_iteration:

(Pdb) print all_commits
[<git.Commit "9a4281cfc3155c7a5eeb3b64ae2a2e23904fb68d">, <git.Commit "2c1d768ecd4b242e60f479b23b3c847e451f8919">, <git.Commit "aeb49f1293f38578023634ae0b7aa2d43b97ef12">, <git.Commit "d3752eea9dc4c2c6ea2fb0f0dd017fabf89061c7">, <git.Commit "0fef32dd4faddd711132ddf00ff37ec9de103aed">, <git.Commit "5d1af9baeb815f159c96de70a18aba03b93a6d99">, <git.Commit "4c0a4eea0d779f02017b819669d87e874a060818">, <git.Commit "609237d8b5a47d5e68babea116712e5d41e8a949">, <git.Commit "898307f0739f7e3b22e0dce70ea6874255af7fdc">, <git.Commit "dee11fa8617ef47a32548d2c251e324cce92a203">, <git.Commit "d10691d76ff45900ac8f32ccfb3e62763b63c22d">, <git.Commit "eb241358b5ec4b0ffdf5e4341eeab9145cbb31dc">, <git.Commit "4af60636201696908a5eaa9af785e8b15b10cee6">, <git.Commit "d8addf17844da6dd17b80337470317e7071e7c54">, <git.Commit "46b0e34b03505501a41cad949f27f8d2f6e0a7db">, <git.Commit "fd1d3c6de3ba1019c88dd1f70d0fda88a7f748cc">, <git.Commit "4220dbfe214f38c24802696cbeb31cc63acb7c3e">, <git.Commit "dc5ba80851b25075e900a9c92e3411dca14a0103">, <git.Commit "bf87b566aadc85f5326e16a27b0afc2cb6bbef8f">, <git.Commit "39e34474899fc8488b28a8061adca17eb0c6247b">, <git.Commit "f8d1ddd76e463828aaf5c91f5985a816f296366b">, <git.Commit "35265041722a6cf4a885c0cd49e9830c4f1df987">, <git.Commit "f9ef5443640ce6414b1c9759ab4bbbf0b26b4748">, <git.Commit "b927e0a85f77ccf1581cd2d5a4e56a274651afbc">, <git.Commit "fb1336da89ca29a68e18014266f03a4c525f1878">, <git.Commit "c7f21fec2c38558d687bb169fba5a73e0768ad49">, <git.Commit "a263ac9acbd1632f6a05119a29b5731942dcc9f9">, <git.Commit "51fb4f7a1d1fcd62a2c83bfc9683a482ef1cd029">, <git.Commit "8ba7e230eadf74e6fec9fbc4419b0792d113cca7">, <git.Commit "42d7156df9516aa00a4d700de71654b934196ffd">, <git.Commit "d5372cc44dc7742b540c7af5db254414aee2b82e">, <git.Commit "2f4bdb32f763789d7cc6b6bcc76c5337551596db">, <git.Commit "f92cf17f90e0cdb22381b051e827eed59d2e1a44">, <git.Commit "b83ebd361b5a9b227e71839e641a8a06df854fe4">, <git.Commit "3db31083d8a9cea48ccdf9d1bbff98aa182872bc">, <git.Commit "50578c4ea645cc5c42c83df9292c4c8c6d33a97d">]
(Pdb) print mcomit
d884adc80c80300b4cc05321494713904ef1df2d

if of any help... should I bisect them if that would be of any help?

@Byron
Copy link
Member

Byron commented Dec 18, 2014

This would certainly be helpful if you want to invest the time. Nonetheless, I don't think we will get the next release done today as I have to get to a meetup soon.
As I wanted to get 0.3.3 out of the door ... 30 days ago ... I guess I can just get going tomorrow and make sure this happens this year ! Sorry for that, it's just this "I don't really want to do anything even though doing the opposite would actually help" syndrome I have to overcome :) !

@yarikoptic
Copy link
Contributor Author

bisect - ok -- I will try! and no problem that "not today" -- thank you very much for this project and pushing it full steam forward! hopefully at some point I could become a more useful contributor ;)

@Byron
Copy link
Member

Byron commented Dec 18, 2014

Thanks !
Alright, tomorrow is the day, something tells me that fixing the remaining issues will not be rocket science at all (except for submodule support, which is scheduled for a later release anyway).

@Byron Byron self-assigned this Jan 3, 2015
@Byron
Copy link
Member

Byron commented Jan 4, 2015

All tests seem to be working now, at least as far as I am concerned on OSX and travis. They are still slightly dependent on the git-python repository clone itself, but .travis.yml documents these prerequisites.
When some additional code cleanup is done, it's ready for release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants