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
Domain: togithub.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4814ac6b-8bcc-ed95-bd2c-a9bf1f1ca512 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6A4:1F9980:2BCE7C:3BC795:6969684B |
| html-safe-nonce | 7d4a9511c0e0400d37603864a46761ae37ce638f16f67bf4e001cba9ae343b69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkE0OjFGOTk4MDoyQkNFN0M6M0JDNzk1OjY5Njk2ODRCIiwidmlzaXRvcl9pZCI6IjUzNTYyOTM4NDc1MjEzMDEyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1be96e72f9af93ff075609d63f7679bba2ea2ea1dc6c9b17cb85c4a8662a7a80 |
| hovercard-subject-tag | issue:860524516 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/gitdb/70/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aa701b261bf9fd2bfa3102872ac404b2658b52d6dd5cf1606d36363be0245b5a/gitpython-developers/gitdb/issues/70 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aa701b261bf9fd2bfa3102872ac404b2658b52d6dd5cf1606d36363be0245b5a/gitpython-developers/gitdb/issues/70 |
| og:image:alt | 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 / /... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kloczek |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/gitdb git https://github.com/gitpython-developers/gitdb.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126093 |
| octolytics-dimension-repository_nwo | gitpython-developers/gitdb |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126093 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/gitdb |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width