René's URL Explorer Experiment


Title: 4.0.7: test suite is failing · Issue #70 · gitpython-developers/gitdb · GitHub

Open Graph Title: 4.0.7: test suite is failing · Issue #70 · gitpython-developers/gitdb

X Title: 4.0.7: test suite is failing · Issue #70 · gitpython-developers/gitdb

Description: Both nose and pytest based are failing + PYTHONHASHSEED=0 + /usr/bin/python3 -s -B -m compileall2 -f -j48 -o 0 -o 1 -o 2 -s /home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64 -p / /home/tkloczko/rpmbuild/BUILDROOT/python-...

Open Graph Description: Both nose and pytest based are failing + PYTHONHASHSEED=0 + /usr/bin/python3 -s -B -m compileall2 -f -j48 -o 0 -o 1 -o 2 -s /home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64 -p / /...

X Description: Both nose and pytest based are failing + PYTHONHASHSEED=0 + /usr/bin/python3 -s -B -m compileall2 -f -j48 -o 0 -o 1 -o 2 -s /home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64 -p / /...

Opengraph URL: https://github.com/gitpython-developers/gitdb/issues/70

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"4.0.7: test suite is failing","articleBody":"Both nose and pytest based are failing\r\n```console\r\n+ PYTHONHASHSEED=0\r\n+ /usr/bin/python3 -s -B -m compileall2 -f -j48 -o 0 -o 1 -o 2 -s /home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64 -p / /home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib64/python3.8/site-packages /home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages\r\nListing '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib64/python3.8/site-packages'...\r\nCan't list '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib64/python3.8/site-packages'\r\nListing '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages'...\r\nListing '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/__init__.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/base.py'...\r\nListing '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/db'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/const.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/db/__init__.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/db/base.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/db/git.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/db/loose.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/db/mem.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/db/pack.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/db/ref.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/exc.py'...\r\nListing '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/test'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/fun.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/pack.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/stream.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/test/__init__.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/test/lib.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/test/test_base.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/test/test_example.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/test/test_pack.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/test/test_stream.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/typ.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/test/test_util.py'...\r\nListing '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/utils'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/util.py'...\r\nListing '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb-4.0.7-py3.8.egg-info'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/utils/encoding.py'...\r\nCompiling '/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages/gitdb/utils/__init__.py'...\r\n+ /usr/lib/rpm/redhat/brp-mangle-shebangs\r\nExecuting(%check): /bin/sh -e /var/tmp/rpm-tmp.i6TxHm\r\n+ umask 022\r\n+ cd /home/tkloczko/rpmbuild/BUILD\r\n+ cd gitdb-4.0.7\r\n+ /usr/bin/python3 -m nose -v --exclude=test_pack_writing\r\ntest_reading (gitdb.test.db.test_git.TestGitDB) ... ERROR\r\ntest_writing (gitdb.test.db.test_git.TestGitDB) ... ok\r\ntest_basics (gitdb.test.db.test_loose.TestLooseDB) ... ok\r\ntest_writing (gitdb.test.db.test_mem.TestMemoryDB) ... ok\r\ntest_writing (gitdb.test.db.test_pack.TestPackDB) ... ok\r\ntest_writing (gitdb.test.db.test_ref.TestReferenceDB) ... Test TestReferenceDB.test_writing failed, output is at '/tmp/test_writingxzw7nxp_'\r\nFAIL\r\ntest_correctness (gitdb.test.performance.test_pack.TestPackedDBPerformance) ... Endurance run: verify streaming of objects (crc and sha)\r\nERROR\r\nbased on the pack(s) of our packed object DB, we will just copy and verify all objects in the back ... ERROR\r\ntest_pack_random_access (gitdb.test.performance.test_pack.TestPackedDBPerformance) ... ERROR\r\ntest_stream_reading (gitdb.test.performance.test_pack_streaming.TestPackStreamingPerformance) ... ERROR\r\ntest_large_data_streaming (gitdb.test.performance.test_stream.TestObjDBPerformance) ... Creating  data ...\r\nDone (in 1.341565 s)\r\nAdded 50000 KiB (filesize = 17294 KiB) of  data to loose odb in 0.946455 s ( 52828.686744 Write KiB / s)\r\nRead 50000 KiB of  data at once from loose odb in 0.325943 s ( 153400.945794 Read KiB / s)\r\nRead 50000 KiB of  data in 512 KiB chunks from loose odb in 0.256665 s ( 194806.466326 Read KiB / s)\r\nCreating random  data ...\r\nDone (in 14.684306 s)\r\nAdded 50000 KiB (filesize = 43182 KiB) of random  data to loose odb in 2.287315 s ( 21859.692419 Write KiB / s)\r\nRead 50000 KiB of random  data at once from loose odb in 0.520694 s ( 96025.641613 Read KiB / s)\r\nRead 50000 KiB of random  data in 512 KiB chunks from loose odb in 0.409039 s ( 122237.726695 Read KiB / s)\r\nok\r\ntest_streams (gitdb.test.test_base.TestBaseTypes) ... ok\r\ntest_base (gitdb.test.test_example.TestExamples) ... ERROR\r\ntest_pack (gitdb.test.test_pack.TestPack) ... ok\r\ntest_pack_64 (gitdb.test.test_pack.TestPack) ... SKIP\r\ntest_pack_entity (gitdb.test.test_pack.TestPack) ... ok\r\ntest_pack_index (gitdb.test.test_pack.TestPack) ... ok\r\ntest_compressed_writer (gitdb.test.test_stream.TestStream) ... ok\r\ntest_decompress_reader (gitdb.test.test_stream.TestStream) ... ok\r\ntest_decompress_reader_special_case (gitdb.test.test_stream.TestStream) ... ok\r\ntest_sha_writer (gitdb.test.test_stream.TestStream) ... ok\r\ntest_basics (gitdb.test.test_util.TestUtils) ... ok\r\ntest_lockedfd (gitdb.test.test_util.TestUtils) ... ok\r\n\r\n======================================================================\r\nERROR: test_reading (gitdb.test.db.test_git.TestGitDB)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/db/test_git.py\", line 22, in test_reading\r\n    assert 1 \u003c len(gdb.databases()) \u003c 4\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/base.py\", line 223, in databases\r\n    return tuple(self._dbs)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/util.py\", line 253, in __getattr__\r\n    self._set_cache_(attr)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/git.py\", line 62, in _set_cache_\r\n    raise InvalidDBRoot(self.root_path())\r\ngitdb.exc.InvalidDBRoot: /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects\r\n-------------------- \u003e\u003e begin captured logging \u003c\u003c --------------------\r\nroot: INFO: You can set the GITDB_TEST_GIT_REPO_BASE environment variable to a .git repository of your choice - defaulting to the gitdb repository\r\n--------------------- \u003e\u003e end captured logging \u003c\u003c ---------------------\r\n\r\n======================================================================\r\nERROR: test_correctness (gitdb.test.performance.test_pack.TestPackedDBPerformance)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/lib.py\", line 71, in wrapper\r\n    return func(self, *args, **kwargs)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/performance/test_pack.py\", line 117, in test_correctness\r\n    for entity in pdb.entities():\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 179, in entities\r\n    return [item[1] for item in self._entities]\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/util.py\", line 253, in __getattr__\r\n    self._set_cache_(attr)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 54, in _set_cache_\r\n    self.update_cache(force=True)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 141, in update_cache\r\n    stat = os.stat(self.root_path())\r\nFileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects/pack'\r\n-------------------- \u003e\u003e begin captured logging \u003c\u003c --------------------\r\nroot: INFO: You can set the GITDB_TEST_GIT_REPO_BASE environment variable to a .git repository of your choice - defaulting to the gitdb repository\r\n--------------------- \u003e\u003e end captured logging \u003c\u003c ---------------------\r\n\r\n======================================================================\r\nERROR: based on the pack(s) of our packed object DB, we will just copy and verify all objects in the back\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/lib.py\", line 71, in wrapper\r\n    return func(self, *args, **kwargs)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/performance/test_pack.py\", line 93, in test_loose_correctness\r\n    for c, sha in enumerate(pdb.sha_iter()):\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/base.py\", line 215, in sha_iter\r\n    return chain(*(db.sha_iter() for db in self._dbs))\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/util.py\", line 253, in __getattr__\r\n    self._set_cache_(attr)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/git.py\", line 62, in _set_cache_\r\n    raise InvalidDBRoot(self.root_path())\r\ngitdb.exc.InvalidDBRoot: /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects\r\n\r\n======================================================================\r\nERROR: test_pack_random_access (gitdb.test.performance.test_pack.TestPackedDBPerformance)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/lib.py\", line 71, in wrapper\r\n    return func(self, *args, **kwargs)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/performance/test_pack.py\", line 35, in test_pack_random_access\r\n    sha_list = list(pdb.sha_iter())\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 106, in sha_iter\r\n    for entity in self.entities():\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 179, in entities\r\n    return [item[1] for item in self._entities]\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/util.py\", line 253, in __getattr__\r\n    self._set_cache_(attr)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 54, in _set_cache_\r\n    self.update_cache(force=True)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 141, in update_cache\r\n    stat = os.stat(self.root_path())\r\nFileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects/pack'\r\n\r\n======================================================================\r\nERROR: test_stream_reading (gitdb.test.performance.test_pack_streaming.TestPackStreamingPerformance)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/lib.py\", line 71, in wrapper\r\n    return func(self, *args, **kwargs)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/performance/test_pack_streaming.py\", line 75, in test_stream_reading\r\n    for sha in pdb.sha_iter():\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 106, in sha_iter\r\n    for entity in self.entities():\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 179, in entities\r\n    return [item[1] for item in self._entities]\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/util.py\", line 253, in __getattr__\r\n    self._set_cache_(attr)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 54, in _set_cache_\r\n    self.update_cache(force=True)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/pack.py\", line 141, in update_cache\r\n    stat = os.stat(self.root_path())\r\nFileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects/pack'\r\n-------------------- \u003e\u003e begin captured logging \u003c\u003c --------------------\r\nroot: INFO: You can set the GITDB_TEST_GIT_REPO_BASE environment variable to a .git repository of your choice - defaulting to the gitdb repository\r\n--------------------- \u003e\u003e end captured logging \u003c\u003c ---------------------\r\n\r\n======================================================================\r\nERROR: test_base (gitdb.test.test_example.TestExamples)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/test_example.py\", line 40, in test_base\r\n    ldb.store(istream)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/db/loose.py\", line 185, in store\r\n    fd, tmp_path = tempfile.mkstemp(prefix='obj', dir=self._root_path)\r\n  File \"/usr/lib64/python3.8/tempfile.py\", line 331, in mkstemp\r\n    return _mkstemp_inner(dir, prefix, suffix, flags, output_type)\r\n  File \"/usr/lib64/python3.8/tempfile.py\", line 250, in _mkstemp_inner\r\n    fd = _os.open(file, flags, 0o600)\r\nFileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects/obj_6ffq2n6'\r\n-------------------- \u003e\u003e begin captured logging \u003c\u003c --------------------\r\nroot: INFO: You can set the GITDB_TEST_GIT_REPO_BASE environment variable to a .git repository of your choice - defaulting to the gitdb repository\r\n--------------------- \u003e\u003e end captured logging \u003c\u003c ---------------------\r\n\r\n======================================================================\r\nFAIL: test_writing (gitdb.test.db.test_ref.TestReferenceDB)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/lib.py\", line 86, in wrapper\r\n    return func(self, path)\r\n  File \"/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/db/test_ref.py\", line 44, in test_writing\r\n    assert len(rdb.databases()) == 1\r\nAssertionError:\r\n-------------------- \u003e\u003e begin captured logging \u003c\u003c --------------------\r\nroot: INFO: You can set the GITDB_TEST_GIT_REPO_BASE environment variable to a .git repository of your choice - defaulting to the gitdb repository\r\n--------------------- \u003e\u003e end captured logging \u003c\u003c ---------------------\r\n\r\n----------------------------------------------------------------------\r\nRan 23 tests in 22.219s\r\n\r\nFAILED (SKIP=1, errors=6, failures=1)\r\n```\r\n```console\r\n+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64/usr/lib/python3.8/site-packages\r\n+ /usr/bin/python3 -Bm pytest -ra\r\n=========================================================================== test session starts ============================================================================\r\nplatform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1\r\nrootdir: /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7\r\nplugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, flaky-3.7.0, cases-3.4.6, hypothesis-6.10.0\r\ncollected 24 items\r\n\r\ngitdb/test/test_base.py .                                                                                                                                            [  4%]\r\ngitdb/test/test_example.py F                                                                                                                                         [  8%]\r\ngitdb/test/test_pack.py .s..                                                                                                                                         [ 25%]\r\ngitdb/test/test_stream.py ....                                                                                                                                       [ 41%]\r\ngitdb/test/test_util.py ..                                                                                                                                           [ 50%]\r\ngitdb/test/db/test_git.py F.                                                                                                                                         [ 58%]\r\ngitdb/test/db/test_loose.py .                                                                                                                                        [ 62%]\r\ngitdb/test/db/test_mem.py .                                                                                                                                          [ 66%]\r\ngitdb/test/db/test_pack.py .                                                                                                                                         [ 70%]\r\ngitdb/test/db/test_ref.py F                                                                                                                                          [ 75%]\r\ngitdb/test/performance/test_pack.py FFF                                                                                                                              [ 87%]\r\ngitdb/test/performance/test_pack_streaming.py FF                                                                                                                     [ 95%]\r\ngitdb/test/performance/test_stream.py .                                                                                                                              [100%]\r\n\r\n================================================================================= FAILURES =================================================================================\r\n__________________________________________________________________________ TestExamples.test_base __________________________________________________________________________\r\n\r\nself = \u003cgitdb.test.test_example.TestExamples testMethod=test_base\u003e\r\n\r\n    def test_base(self):\r\n        ldb = LooseObjectDB(os.path.join(self.gitrepopath, 'objects'))\r\n\r\n        for sha1 in ldb.sha_iter():\r\n            oinfo = ldb.info(sha1)\r\n            ostream = ldb.stream(sha1)\r\n            assert oinfo[:3] == ostream[:3]\r\n\r\n            assert len(ostream.read()) == ostream.size\r\n            assert ldb.has_object(oinfo.binsha)\r\n        # END for each sha in database\r\n        # assure we close all files\r\n        try:\r\n            del(ostream)\r\n            del(oinfo)\r\n        except UnboundLocalError:\r\n            pass\r\n        # END ignore exception if there are no loose objects\r\n\r\n        data = \"my data\".encode(\"ascii\")\r\n        istream = IStream(\"blob\", len(data), BytesIO(data))\r\n\r\n        # the object does not yet have a sha\r\n        assert istream.binsha is None\r\n\u003e       ldb.store(istream)\r\n\r\ngitdb/test/test_example.py:40:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\ngitdb/db/loose.py:185: in store\r\n    fd, tmp_path = tempfile.mkstemp(prefix='obj', dir=self._root_path)\r\n/usr/lib64/python3.8/tempfile.py:331: in mkstemp\r\n    return _mkstemp_inner(dir, prefix, suffix, flags, output_type)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\ndir = '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects', pre = 'obj', suf = '', flags = 131266, output_type = \u003cclass 'str'\u003e\r\n\r\n    def _mkstemp_inner(dir, pre, suf, flags, output_type):\r\n        \"\"\"Code common to mkstemp, TemporaryFile, and NamedTemporaryFile.\"\"\"\r\n\r\n        names = _get_candidate_names()\r\n        if output_type is bytes:\r\n            names = map(_os.fsencode, names)\r\n\r\n        for seq in range(TMP_MAX):\r\n            name = next(names)\r\n            file = _os.path.join(dir, pre + name + suf)\r\n            _sys.audit(\"tempfile.mkstemp\", file)\r\n            try:\r\n\u003e               fd = _os.open(file, flags, 0o600)\r\nE               FileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects/objzn0zuqpp'\r\n\r\n/usr/lib64/python3.8/tempfile.py:250: FileNotFoundError\r\n__________________________________________________________________________ TestGitDB.test_reading __________________________________________________________________________\r\n\r\nself = \u003cgitdb.test.db.test_git.TestGitDB testMethod=test_reading\u003e\r\n\r\n    def test_reading(self):\r\n        gdb = GitDB(os.path.join(self.gitrepopath, 'objects'))\r\n\r\n        # we have packs and loose objects, alternates doesn't necessarily exist\r\n\u003e       assert 1 \u003c len(gdb.databases()) \u003c 4\r\n\r\ngitdb/test/db/test_git.py:22:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\ngitdb/db/base.py:223: in databases\r\n    return tuple(self._dbs)\r\ngitdb/util.py:253: in __getattr__\r\n    self._set_cache_(attr)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cgitdb.db.git.GitDB object at 0x7fe18ccf7190\u003e, attr = '_dbs'\r\n\r\n    def _set_cache_(self, attr):\r\n        if attr == '_dbs' or attr == '_loose_db':\r\n            self._dbs = list()\r\n            loose_db = None\r\n            for subpath, dbcls in ((self.packs_dir, self.PackDBCls),\r\n                                   (self.loose_dir, self.LooseDBCls),\r\n                                   (self.alternates_dir, self.ReferenceDBCls)):\r\n                path = self.db_path(subpath)\r\n                if os.path.exists(path):\r\n                    self._dbs.append(dbcls(path))\r\n                    if dbcls is self.LooseDBCls:\r\n                        loose_db = self._dbs[-1]\r\n                    # END remember loose db\r\n                # END check path exists\r\n            # END for each db type\r\n\r\n            # should have at least one subdb\r\n            if not self._dbs:\r\n\u003e               raise InvalidDBRoot(self.root_path())\r\nE               gitdb.exc.InvalidDBRoot: /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects\r\n\r\ngitdb/db/git.py:62: InvalidDBRoot\r\n_______________________________________________________________________ TestReferenceDB.test_writing _______________________________________________________________________\r\n\r\nself = \u003cgitdb.test.db.test_ref.TestReferenceDB testMethod=test_writing\u003e\r\n\r\n    def wrapper(self):\r\n        path = tempfile.mktemp(prefix=func.__name__)\r\n        os.mkdir(path)\r\n        keep = False\r\n        try:\r\n            try:\r\n\u003e               return func(self, path)\r\n\r\ngitdb/test/lib.py:86:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cgitdb.test.db.test_ref.TestReferenceDB testMethod=test_writing\u003e, path = '/tmp/test_writingp3q0qh3t'\r\n\r\n    @with_rw_directory\r\n    def test_writing(self, path):\r\n        alt_path = os.path.join(path, 'alternates')\r\n        rdb = ReferenceDB(alt_path)\r\n        assert len(rdb.databases()) == 0\r\n        assert rdb.size() == 0\r\n        assert len(list(rdb.sha_iter())) == 0\r\n\r\n        # try empty, non-existing\r\n        assert not rdb.has_object(NULL_BIN_SHA)\r\n\r\n        # setup alternate file\r\n        # add two, one is invalid\r\n        own_repo_path = os.path.join(self.gitrepopath, 'objects')       # use own repo\r\n        self.make_alt_file(alt_path, [own_repo_path, \"invalid/path\"])\r\n        rdb.update_cache()\r\n\u003e       assert len(rdb.databases()) == 1\r\nE       AssertionError: assert 0 == 1\r\nE        +  where 0 = len(())\r\nE        +    where () = \u003cbound method CompoundDB.databases of \u003cgitdb.db.ref.ReferenceDB object at 0x7fe18cc8b520\u003e\u003e()\r\nE        +      where \u003cbound method CompoundDB.databases of \u003cgitdb.db.ref.ReferenceDB object at 0x7fe18cc8b520\u003e\u003e = \u003cgitdb.db.ref.ReferenceDB object at 0x7fe18cc8b520\u003e.databases\r\n\r\ngitdb/test/db/test_ref.py:44: AssertionError\r\n--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------\r\nTest TestReferenceDB.test_writing failed, output is at '/tmp/test_writingp3q0qh3t'\r\n_________________________________________________________________ TestPackedDBPerformance.test_correctness _________________________________________________________________\r\n\r\nself = \u003cgitdb.test.performance.test_pack.TestPackedDBPerformance testMethod=test_correctness\u003e\r\n\r\n    @skip_on_travis_ci\r\n    def test_correctness(self):\r\n        pdb = PackedDB(os.path.join(self.gitrepopath, \"objects/pack\"))\r\n        # disabled for now as it used to work perfectly, checking big repositories takes a long time\r\n        print(\"Endurance run: verify streaming of objects (crc and sha)\", file=sys.stderr)\r\n        for crc in range(2):\r\n            count = 0\r\n            st = time()\r\n\u003e           for entity in pdb.entities():\r\n\r\ngitdb/test/performance/test_pack.py:117:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\ngitdb/db/pack.py:179: in entities\r\n    return [item[1] for item in self._entities]\r\ngitdb/util.py:253: in __getattr__\r\n    self._set_cache_(attr)\r\ngitdb/db/pack.py:54: in _set_cache_\r\n    self.update_cache(force=True)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cgitdb.db.pack.PackedDB object at 0x7fe18cc43ee0\u003e, force = True\r\n\r\n    def update_cache(self, force=False):\r\n        \"\"\"\r\n        Update our cache with the acutally existing packs on disk. Add new ones,\r\n        and remove deleted ones. We keep the unchanged ones\r\n\r\n        :param force: If True, the cache will be updated even though the directory\r\n            does not appear to have changed according to its modification timestamp.\r\n        :return: True if the packs have been updated so there is new information,\r\n            False if there was no change to the pack database\"\"\"\r\n\u003e       stat = os.stat(self.root_path())\r\nE       FileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects/pack'\r\n\r\ngitdb/db/pack.py:141: FileNotFoundError\r\n--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------\r\nEndurance run: verify streaming of objects (crc and sha)\r\n______________________________________________________________ TestPackedDBPerformance.test_loose_correctness ______________________________________________________________\r\n\r\nself = \u003cgitdb.test.performance.test_pack.TestPackedDBPerformance testMethod=test_loose_correctness\u003e\r\n\r\n    @skip_on_travis_ci\r\n    def test_loose_correctness(self):\r\n        \"\"\"based on the pack(s) of our packed object DB, we will just copy and verify all objects in the back\r\n        into the loose object db (memory).\r\n        This should help finding dormant issues like this one https://github.com/gitpython-developers/GitPython/issues/220\r\n        faster\r\n        :note: It doesn't seem this test can find the issue unless the given pack contains highly compressed\r\n        data files, like archives.\"\"\"\r\n        from gitdb.util import bin_to_hex\r\n        pdb = GitDB(os.path.join(self.gitrepopath, 'objects'))\r\n        mdb = MemoryDB()\r\n\u003e       for c, sha in enumerate(pdb.sha_iter()):\r\n\r\ngitdb/test/performance/test_pack.py:93:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\ngitdb/db/base.py:215: in sha_iter\r\n    return chain(*(db.sha_iter() for db in self._dbs))\r\ngitdb/util.py:253: in __getattr__\r\n    self._set_cache_(attr)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cgitdb.db.git.GitDB object at 0x7fe18ccf7a30\u003e, attr = '_dbs'\r\n\r\n    def _set_cache_(self, attr):\r\n        if attr == '_dbs' or attr == '_loose_db':\r\n            self._dbs = list()\r\n            loose_db = None\r\n            for subpath, dbcls in ((self.packs_dir, self.PackDBCls),\r\n                                   (self.loose_dir, self.LooseDBCls),\r\n                                   (self.alternates_dir, self.ReferenceDBCls)):\r\n                path = self.db_path(subpath)\r\n                if os.path.exists(path):\r\n                    self._dbs.append(dbcls(path))\r\n                    if dbcls is self.LooseDBCls:\r\n                        loose_db = self._dbs[-1]\r\n                    # END remember loose db\r\n                # END check path exists\r\n            # END for each db type\r\n\r\n            # should have at least one subdb\r\n            if not self._dbs:\r\n\u003e               raise InvalidDBRoot(self.root_path())\r\nE               gitdb.exc.InvalidDBRoot: /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects\r\n\r\ngitdb/db/git.py:62: InvalidDBRoot\r\n_____________________________________________________________ TestPackedDBPerformance.test_pack_random_access ______________________________________________________________\r\n\r\nself = \u003cgitdb.test.performance.test_pack.TestPackedDBPerformance testMethod=test_pack_random_access\u003e\r\n\r\n    @skip_on_travis_ci\r\n    def test_pack_random_access(self):\r\n        pdb = PackedDB(os.path.join(self.gitrepopath, \"objects/pack\"))\r\n\r\n        # sha lookup\r\n        st = time()\r\n\u003e       sha_list = list(pdb.sha_iter())\r\n\r\ngitdb/test/performance/test_pack.py:35:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\ngitdb/db/pack.py:106: in sha_iter\r\n    for entity in self.entities():\r\ngitdb/db/pack.py:179: in entities\r\n    return [item[1] for item in self._entities]\r\ngitdb/util.py:253: in __getattr__\r\n    self._set_cache_(attr)\r\ngitdb/db/pack.py:54: in _set_cache_\r\n    self.update_cache(force=True)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cgitdb.db.pack.PackedDB object at 0x7fe18ca3d1c0\u003e, force = True\r\n\r\n    def update_cache(self, force=False):\r\n        \"\"\"\r\n        Update our cache with the acutally existing packs on disk. Add new ones,\r\n        and remove deleted ones. We keep the unchanged ones\r\n\r\n        :param force: If True, the cache will be updated even though the directory\r\n            does not appear to have changed according to its modification timestamp.\r\n        :return: True if the packs have been updated so there is new information,\r\n            False if there was no change to the pack database\"\"\"\r\n\u003e       stat = os.stat(self.root_path())\r\nE       FileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects/pack'\r\n\r\ngitdb/db/pack.py:141: FileNotFoundError\r\n______________________________________________________________ TestPackStreamingPerformance.test_pack_writing ______________________________________________________________\r\n\r\nself = \u003cgitdb.test.performance.test_pack_streaming.TestPackStreamingPerformance testMethod=test_pack_writing\u003e\r\n\r\n    @skip_on_travis_ci\r\n    def test_pack_writing(self):\r\n        # see how fast we can write a pack from object streams.\r\n        # This will not be fast, as we take time for decompressing the streams as well\r\n        ostream = CountedNullStream()\r\n        pdb = PackedDB(os.path.join(self.gitrepopath, \"objects/pack\"))\r\n\r\n        ni = 1000\r\n        count = 0\r\n        st = time()\r\n\u003e       for sha in pdb.sha_iter():\r\n\r\ngitdb/test/performance/test_pack_streaming.py:47:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\ngitdb/db/pack.py:106: in sha_iter\r\n    for entity in self.entities():\r\ngitdb/db/pack.py:179: in entities\r\n    return [item[1] for item in self._entities]\r\ngitdb/util.py:253: in __getattr__\r\n    self._set_cache_(attr)\r\ngitdb/db/pack.py:54: in _set_cache_\r\n    self.update_cache(force=True)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cgitdb.db.pack.PackedDB object at 0x7fe18cd14a60\u003e, force = True\r\n\r\n    def update_cache(self, force=False):\r\n        \"\"\"\r\n        Update our cache with the acutally existing packs on disk. Add new ones,\r\n        and remove deleted ones. We keep the unchanged ones\r\n\r\n        :param force: If True, the cache will be updated even though the directory\r\n            does not appear to have changed according to its modification timestamp.\r\n        :return: True if the packs have been updated so there is new information,\r\n            False if there was no change to the pack database\"\"\"\r\n\u003e       stat = os.stat(self.root_path())\r\nE       FileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects/pack'\r\n\r\ngitdb/db/pack.py:141: FileNotFoundError\r\n_____________________________________________________________ TestPackStreamingPerformance.test_stream_reading _____________________________________________________________\r\n\r\nself = \u003cgitdb.test.performance.test_pack_streaming.TestPackStreamingPerformance testMethod=test_stream_reading\u003e\r\n\r\n    @skip_on_travis_ci\r\n    def test_stream_reading(self):\r\n        # raise SkipTest()\r\n        pdb = PackedDB(os.path.join(self.gitrepopath, \"objects/pack\"))\r\n\r\n        # streaming only, meant for --with-profile runs\r\n        ni = 5000\r\n        count = 0\r\n        pdb_stream = pdb.stream\r\n        total_size = 0\r\n        st = time()\r\n\u003e       for sha in pdb.sha_iter():\r\n\r\ngitdb/test/performance/test_pack_streaming.py:75:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\ngitdb/db/pack.py:106: in sha_iter\r\n    for entity in self.entities():\r\ngitdb/db/pack.py:179: in entities\r\n    return [item[1] for item in self._entities]\r\ngitdb/util.py:253: in __getattr__\r\n    self._set_cache_(attr)\r\ngitdb/db/pack.py:54: in _set_cache_\r\n    self.update_cache(force=True)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cgitdb.db.pack.PackedDB object at 0x7fe18cc02a30\u003e, force = True\r\n\r\n    def update_cache(self, force=False):\r\n        \"\"\"\r\n        Update our cache with the acutally existing packs on disk. Add new ones,\r\n        and remove deleted ones. We keep the unchanged ones\r\n\r\n        :param force: If True, the cache will be updated even though the directory\r\n            does not appear to have changed according to its modification timestamp.\r\n        :return: True if the packs have been updated so there is new information,\r\n            False if there was no change to the pack database\"\"\"\r\n\u003e       stat = os.stat(self.root_path())\r\nE       FileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects/pack'\r\n\r\ngitdb/db/pack.py:141: FileNotFoundError\r\n============================================================================= warnings summary =============================================================================\r\ngitdb/test/test_pack.py::TestPack::test_pack_index\r\ngitdb/test/test_pack.py::TestPack::test_pack_index\r\n  /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/test_pack.py:76: DeprecationWarning: Please use assertRaises instead.\r\n    self.failUnlessRaises(ValueError, index.partial_sha_to_index, \"\\0\", 2)\r\n\r\ngitdb/test/test_stream.py::TestStream::test_compressed_writer\r\ngitdb/test/test_stream.py::TestStream::test_compressed_writer\r\ngitdb/test/test_stream.py::TestStream::test_compressed_writer\r\n  /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/test_stream.py:138: DeprecationWarning: Please use assertRaises instead.\r\n    self.failUnlessRaises(OSError, os.close, fd)\r\n\r\ngitdb/test/test_util.py::TestUtils::test_lockedfd\r\n  /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/test_util.py:43: DeprecationWarning: Please use assertRaises instead.\r\n    self.failUnlessRaises(AssertionError, lfd.rollback)\r\n\r\ngitdb/test/test_util.py::TestUtils::test_lockedfd\r\n  /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/test_util.py:44: DeprecationWarning: Please use assertRaises instead.\r\n    self.failUnlessRaises(AssertionError, lfd.commit)\r\n\r\ngitdb/test/test_util.py::TestUtils::test_lockedfd\r\n  /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/test_util.py:80: DeprecationWarning: Please use assertRaises instead.\r\n    self.failUnlessRaises(IOError, olfd.open)\r\n\r\ngitdb/test/db/test_git.py::TestGitDB::test_writing\r\ngitdb/test/db/test_loose.py::TestLooseDB::test_basics\r\n  /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/db/lib.py:105: DeprecationWarning: Please use assertRaises instead.\r\n    self.failUnlessRaises(BadObject, db.info, sha)\r\n\r\ngitdb/test/db/test_git.py::TestGitDB::test_writing\r\ngitdb/test/db/test_loose.py::TestLooseDB::test_basics\r\n  /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/db/lib.py:106: DeprecationWarning: Please use assertRaises instead.\r\n    self.failUnlessRaises(BadObject, db.stream, sha)\r\n\r\ngitdb/test/db/test_loose.py::TestLooseDB::test_basics\r\n  /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/db/test_loose.py:35: DeprecationWarning: Please use assertRaises instead.\r\n    self.failUnlessRaises(BadObject, ldb.partial_to_complete_sha_hex, '0000')\r\n\r\ngitdb/test/db/test_pack.py::TestPackDB::test_writing\r\n  /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/gitdb/test/db/test_pack.py:87: DeprecationWarning: Please use assertRaises instead.\r\n    self.failUnlessRaises(BadObject, pdb.partial_to_complete_sha, b'\\0\\0', 4)\r\n\r\n-- Docs: https://docs.pytest.org/en/stable/warnings.html\r\n========================================================================= short test summary info ==========================================================================\r\nSKIPPED [1] gitdb/test/test_pack.py:246: Skipped\r\nFAILED gitdb/test/test_example.py::TestExamples::test_base - FileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/obje...\r\nFAILED gitdb/test/db/test_git.py::TestGitDB::test_reading - gitdb.exc.InvalidDBRoot: /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/objects\r\nFAILED gitdb/test/db/test_ref.py::TestReferenceDB::test_writing - AssertionError: assert 0 == 1\r\nFAILED gitdb/test/performance/test_pack.py::TestPackedDBPerformance::test_correctness - FileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/...\r\nFAILED gitdb/test/performance/test_pack.py::TestPackedDBPerformance::test_loose_correctness - gitdb.exc.InvalidDBRoot: /home/tkloczko/rpmbuild/BUILD/gitdb-4.0.7/.git/obj...\r\nFAILED gitdb/test/performance/test_pack.py::TestPackedDBPerformance::test_pack_random_access - FileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rp...\r\nFAILED gitdb/test/performance/test_pack_streaming.py::TestPackStreamingPerformance::test_pack_writing - FileNotFoundError: [Errno 2] No such file or directory: '/home/tk...\r\nFAILED gitdb/test/performance/test_pack_streaming.py::TestPackStreamingPerformance::test_stream_reading - FileNotFoundError: [Errno 2] No such file or directory: '/home/...\r\n========================================================== 8 failed, 15 passed, 1 skipped, 14 warnings in 22.85s ===========================================================\r\n```\r\n","author":{"url":"https://github.com/kloczek","@type":"Person","name":"kloczek"},"datePublished":"2021-04-17T22:10:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/70/gitdb/issues/70"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1d76ae99-f39f-0e2b-aad7-3116bf94d02b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDA7C:2B0D32:213EAD0:2EFEC09:6969109C
html-safe-nonce847da07e65e3b411187e39de4df8882520f056d2706ea4b9212431f552c414f6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTdDOjJCMEQzMjoyMTNFQUQwOjJFRkVDMDk6Njk2OTEwOUMiLCJ2aXNpdG9yX2lkIjoiMTQ2MDgwNDg5NTY5NTg3MzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd69d0349862c3769ccbfd74a35f0b3486e5a679b2fa528160aada9971d08e06c
hovercard-subject-tagissue:860524516
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/gitdb/70/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aa701b261bf9fd2bfa3102872ac404b2658b52d6dd5cf1606d36363be0245b5a/gitpython-developers/gitdb/issues/70
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aa701b261bf9fd2bfa3102872ac404b2658b52d6dd5cf1606d36363be0245b5a/gitpython-developers/gitdb/issues/70
og:image:altBoth nose and pytest based are failing + PYTHONHASHSEED=0 + /usr/bin/python3 -s -B -m compileall2 -f -j48 -o 0 -o 1 -o 2 -s /home/tkloczko/rpmbuild/BUILDROOT/python-gitdb-4.0.7-2.fc35.x86_64 -p / /...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekloczek
hostnamegithub.com
expected-hostnamegithub.com
Noneafd5814870f8609d217a32dd3bccc05a5df5f5699df4d458c242e80fdfddcc2e
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/gitdb git https://github.com/gitpython-developers/gitdb.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126093
octolytics-dimension-repository_nwogitpython-developers/gitdb
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126093
octolytics-dimension-repository_network_root_nwogitpython-developers/gitdb
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release572e69339f2401a569f15071214cbbee314ea8bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/gitdb/issues/70#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2Fgitdb%2Fissues%2F70
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2Fgitdb%2Fissues%2F70
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=gitpython-developers%2Fgitdb
Reloadhttps://github.com/gitpython-developers/gitdb/issues/70
Reloadhttps://github.com/gitpython-developers/gitdb/issues/70
Reloadhttps://github.com/gitpython-developers/gitdb/issues/70
gitpython-developers https://github.com/gitpython-developers
gitdbhttps://github.com/gitpython-developers/gitdb
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2Fgitdb
Fork 68 https://github.com/login?return_to=%2Fgitpython-developers%2Fgitdb
Star 225 https://github.com/login?return_to=%2Fgitpython-developers%2Fgitdb
Code https://github.com/gitpython-developers/gitdb
Issues 8 https://github.com/gitpython-developers/gitdb/issues
Pull requests 0 https://github.com/gitpython-developers/gitdb/pulls
Discussions https://github.com/gitpython-developers/gitdb/discussions
Actions https://github.com/gitpython-developers/gitdb/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/gitpython-developers/gitdb/security
Please reload this pagehttps://github.com/gitpython-developers/gitdb/issues/70
Insights https://github.com/gitpython-developers/gitdb/pulse
Code https://github.com/gitpython-developers/gitdb
Issues https://github.com/gitpython-developers/gitdb/issues
Pull requests https://github.com/gitpython-developers/gitdb/pulls
Discussions https://github.com/gitpython-developers/gitdb/discussions
Actions https://github.com/gitpython-developers/gitdb/actions
Security https://github.com/gitpython-developers/gitdb/security
Insights https://github.com/gitpython-developers/gitdb/pulse
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/gitdb/issues/70
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/gitdb/issues/70
4.0.7: test suite is failinghttps://github.com/gitpython-developers/gitdb/issues/70#top
acknowledgedhttps://github.com/gitpython-developers/gitdb/issues?q=state%3Aopen%20label%3A%22acknowledged%22
help wantedhttps://github.com/gitpython-developers/gitdb/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com/kloczek
https://github.com/kloczek
kloczekhttps://github.com/kloczek
on Apr 17, 2021https://github.com/gitpython-developers/gitdb/issues/70#issue-860524516
acknowledgedhttps://github.com/gitpython-developers/gitdb/issues?q=state%3Aopen%20label%3A%22acknowledged%22
help wantedhttps://github.com/gitpython-developers/gitdb/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.