Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_deposit_private_read_archive::test_aggregate_tarballs_with_strange_archive
Failed

TEST RESULT

Run At
Feb 25 2021, 12:05 PM
Details
datadir = '/var/lib/jenkins/workspace/DDEP/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/deposit/tests/api/../data' tmp_path = '/tmp/pytest-of-jenkins/pytest-0/test_aggregate_tarballs_with_s0' def test_aggregate_tarballs_with_strange_archive(datadir, tmp_path): archive = join(datadir, "archives", "single-artifact-package.tar.gz") > with aggregate_tarballs(tmp_path, [archive]) as tarball_path: .tox/py3/lib/python3.7/site-packages/swh/deposit/tests/api/test_deposit_private_read_archive.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/contextlib.py:112: in __enter__ return next(self.gen) .tox/py3/lib/python3.7/site-packages/swh/deposit/api/private/deposit_read.py:48: in aggregate_tarballs tarball.uncompress(archive_path, aggregated_tarball_rootdir) .tox/py3/lib/python3.7/site-packages/swh/core/tarball.py:72: in uncompress shutil.unpack_archive(tarpath, extract_dir=dest) /usr/lib/python3.7/shutil.py:999: in unpack_archive func(filename, extract_dir, **kwargs) /usr/lib/python3.7/shutil.py:929: in _unpack_tarfile tarobj = tarfile.open(filename) /usr/lib/python3.7/tarfile.py:1575: in open return func(name, "r", fileobj, **kwargs) /usr/lib/python3.7/tarfile.py:1640: in gzopen fileobj = gzip.GzipFile(name, mode + "b", compresslevel, fileobj) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <[AttributeError("'GzipFile' object has no attribute 'fileobj'") raised in repr()] GzipFile object at 0x7fdf44d8acc0> filename = '/var/lib/jenkins/workspace/DDEP/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/deposit/tests/api/../data/archives/single-artifact-package.tar.gz' mode = 'rb', compresslevel = 9, fileobj = None, mtime = None def __init__(self, filename=None, mode=None, compresslevel=9, fileobj=None, mtime=None): """Constructor for the GzipFile class. At least one of fileobj and filename must be given a non-trivial value. The new class instance is based on fileobj, which can be a regular file, an io.BytesIO object, or any other object which simulates a file. It defaults to None, in which case filename is opened to provide a file object. When fileobj is not None, the filename argument is only used to be included in the gzip file header, which may include the original filename of the uncompressed file. It defaults to the filename of fileobj, if discernible; otherwise, it defaults to the empty string, and in this case the original filename is not included in the header. The mode argument can be any of 'r', 'rb', 'a', 'ab', 'w', 'wb', 'x', or 'xb' depending on whether the file will be read or written. The default is the mode of fileobj if discernible; otherwise, the default is 'rb'. A mode of 'r' is equivalent to one of 'rb', and similarly for 'w' and 'wb', 'a' and 'ab', and 'x' and 'xb'. The compresslevel argument is an integer from 0 to 9 controlling the level of compression; 1 is fastest and produces the least compression, and 9 is slowest and produces the most compression. 0 is no compression at all. The default is 9. The mtime argument is an optional numeric timestamp to be written to the last modification time field in the stream when compressing. If omitted or None, the current time is used. """ if mode and ('t' in mode or 'U' in mode): raise ValueError("Invalid mode: {!r}".format(mode)) if mode and 'b' not in mode: mode += 'b' if fileobj is None: > fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') E FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/jenkins/workspace/DDEP/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/deposit/tests/api/../data/archives/single-artifact-package.tar.gz' /usr/lib/python3.7/gzip.py:163: FileNotFoundError