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:09 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:52: in aggregate_tarballs aggregated_tarball_rootdir, "zip", aggregated_tarball_rootdir /usr/lib/python3.7/shutil.py:819: in make_archive filename = func(base_name, base_dir, **kwargs) /usr/lib/python3.7/shutil.py:717: in _make_zipfile zf.write(path, path) /usr/lib/python3.7/zipfile.py:1710: in write zinfo = ZipInfo.from_file(filename, arcname) /usr/lib/python3.7/zipfile.py:518: in from_file zinfo = cls(arcname, date_time) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <[AttributeError('compress_type') raised in repr()] ZipInfo object at 0x7f2bdff48f20> filename = 'pentagram.gif', date_time = (1970, 1, 1, 0, 0, 0) def __init__(self, filename="NoName", date_time=(1980,1,1,0,0,0)): self.orig_filename = filename # Original file name in archive # Terminate the file name at the first null byte. Null bytes in file # names are used as tricks by viruses in archives. null_byte = filename.find(chr(0)) if null_byte >= 0: filename = filename[0:null_byte] # This is used to ensure paths in generated ZIP files always use # forward slashes as the directory separator, as required by the # ZIP format specification. if os.sep != "/" and os.sep in filename: filename = filename.replace(os.sep, "/") self.filename = filename # Normalized file name self.date_time = date_time # year, month, day, hour, min, sec if date_time[0] < 1980: > raise ValueError('ZIP does not support timestamps before 1980') E ValueError: ZIP does not support timestamps before 1980 /usr/lib/python3.7/zipfile.py:357: ValueError