-
-
Notifications
You must be signed in to change notification settings - Fork 933
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
Comments
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.
Also, what kind of information would you expect in an annotated tag ? My test results for comparisonAll tests performed on 750e967, and I ran the 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) |
Thanks for the detailed answer!!!
|
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 |
|
"0.3 and package it as 0.3.2.1 "
so it will become 0.3.2.1+git24-g891b124, unless you give it a 0.3.2.2 tag ;) |
: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 |
or may be lazy me should just wait for tests to get fixed... --exclude becomes too long atm :-/
|
as for 3: (missing tab separator)
so indeed no tabs -- spaces (git 2.1.3) |
btw -- are you working on the .travis.yml or should I try? ;-) |
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. |
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:
if of any help... should I bisect them if that would be of any help? |
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. |
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 ;) |
Thanks ! |
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. |
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
that directory /home/yoh/.tmp/tmp4i1jT3non_bare_test_index_merge_tree/.git/ is there, and there is MANIFEST.in:
lie:
3
not sure what to check/report
similar one(s):
4
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
6
I do not see anything about defining this one (only gitdb/ext/smmap) in gitdb submodule
7
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
The text was updated successfully, but these errors were encountered: