[Qa-jenkins-scm] Build failed in Jenkins: reproducible_diffoscope_from_git_branches #697

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Sat Aug 31 09:54:05 BST 2019


See <https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/697/display/redirect>

Changes:

------------------------------------------
[...truncated 429.09 KB...]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy2.tar'

    def list_libarchive(path):
        with libarchive.file_reader(path) as archive:
            for entry in archive:
                if entry.isblk or entry.ischr:
                    size_or_dev = '{major:>3},{minor:>3}'.format(major=entry.rdevmajor, minor=entry.rdevminor)
                else:
                    size_or_dev = entry.size
>               mtime = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(entry.mtime)) + '.{:06d}'.format(entry.mtime_nsec // 1000)
E               AttributeError: 'ArchiveEntry' object has no attribute 'mtime_nsec'

diffoscope/comparators/libarchive.py:71: AttributeError
________________________ test_fuzzy_matching_only_once _________________________

fuzzy_tar1 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy1.tar>
fuzzy_tar3 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy3.tar>

    @pytest.mark.skipif(miss_tlsh, reason='tlsh is missing')
    def test_fuzzy_matching_only_once(fuzzy_tar1, fuzzy_tar3):
>       differences = fuzzy_tar1.compare(fuzzy_tar3).details

tests/comparators/test_utils.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
diffoscope/comparators/binary.py:207: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/binary.py:175: in _compare_using_details
    details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:40: in compare_details
    self.path, other.path, source="file list")]
diffoscope/difference.py:333: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:306: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/difference.py:270: in diff
    return run_diff(fd1, fd2, end_nl_q1, end_nl_q2)
/usr/lib/python3.7/contextlib.py:119: in __exit__
    next(self.gen)
diffoscope/difference.py:205: in fd_from_feeder
    t.join()
diffoscope/difference.py:183: in join
    raise ex
diffoscope/difference.py:169: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:870: in run
    self._target(*self._args, **self._kwargs)
diffoscope/difference.py:190: in feed
    end_nl = feeder(f)
diffoscope/difference.py:232: in feeder
    for buf in in_file:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy3.tar'

    def list_libarchive(path):
        with libarchive.file_reader(path) as archive:
            for entry in archive:
                if entry.isblk or entry.ischr:
                    size_or_dev = '{major:>3},{minor:>3}'.format(major=entry.rdevmajor, minor=entry.rdevminor)
                else:
                    size_or_dev = entry.size
>               mtime = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(entry.mtime)) + '.{:06d}'.format(entry.mtime_nsec // 1000)
E               AttributeError: 'ArchiveEntry' object has no attribute 'mtime_nsec'

diffoscope/comparators/libarchive.py:71: AttributeError
____________________________ test_no_fuzzy_matching ____________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f982db783d0>
fuzzy_tar_in_tar1 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy-tar-in-tar1.tar>
fuzzy_tar_in_tar2 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy-tar-in-tar2.tar>

    @pytest.mark.skipif(miss_tlsh, reason='tlsh is missing')
    def test_no_fuzzy_matching(monkeypatch, fuzzy_tar_in_tar1, fuzzy_tar_in_tar2):
        monkeypatch.setattr(Config, 'fuzzy_threshold', 0)
>       difference = fuzzy_tar_in_tar1.compare(fuzzy_tar_in_tar2)

tests/comparators/test_utils.py:73: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
diffoscope/comparators/binary.py:207: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/binary.py:175: in _compare_using_details
    details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:40: in compare_details
    self.path, other.path, source="file list")]
diffoscope/difference.py:333: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:306: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/difference.py:270: in diff
    return run_diff(fd1, fd2, end_nl_q1, end_nl_q2)
/usr/lib/python3.7/contextlib.py:119: in __exit__
    next(self.gen)
diffoscope/difference.py:205: in fd_from_feeder
    t.join()
diffoscope/difference.py:183: in join
    raise ex
diffoscope/difference.py:169: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:870: in run
    self._target(*self._args, **self._kwargs)
diffoscope/difference.py:190: in feed
    end_nl = feeder(f)
diffoscope/difference.py:232: in feeder
    for buf in in_file:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy-tar-in-tar2.tar'

    def list_libarchive(path):
        with libarchive.file_reader(path) as archive:
            for entry in archive:
                if entry.isblk or entry.ischr:
                    size_or_dev = '{major:>3},{minor:>3}'.format(major=entry.rdevmajor, minor=entry.rdevminor)
                else:
                    size_or_dev = entry.size
>               mtime = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(entry.mtime)) + '.{:06d}'.format(entry.mtime_nsec // 1000)
E               AttributeError: 'ArchiveEntry' object has no attribute 'mtime_nsec'

diffoscope/comparators/libarchive.py:71: AttributeError
_______________________ test_no_fuzzy_matching_new_file ________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f982e539d10>
fuzzy_tar_in_tar1 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy-tar-in-tar1.tar>
fuzzy_tar_in_tar2 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy-tar-in-tar2.tar>

    @pytest.mark.skipif(miss_tlsh, reason='tlsh is missing')
    def test_no_fuzzy_matching_new_file(monkeypatch, fuzzy_tar_in_tar1, fuzzy_tar_in_tar2):
        monkeypatch.setattr(Config, 'fuzzy_threshold', 0)
        monkeypatch.setattr(Config, 'new_file', True)
>       difference = fuzzy_tar_in_tar1.compare(fuzzy_tar_in_tar2)

tests/comparators/test_utils.py:81: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
diffoscope/comparators/binary.py:207: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/binary.py:175: in _compare_using_details
    details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:40: in compare_details
    self.path, other.path, source="file list")]
diffoscope/difference.py:333: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:306: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/difference.py:270: in diff
    return run_diff(fd1, fd2, end_nl_q1, end_nl_q2)
/usr/lib/python3.7/contextlib.py:119: in __exit__
    next(self.gen)
diffoscope/difference.py:205: in fd_from_feeder
    t.join()
diffoscope/difference.py:183: in join
    raise ex
diffoscope/difference.py:169: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:870: in run
    self._target(*self._args, **self._kwargs)
diffoscope/difference.py:190: in feed
    end_nl = feeder(f)
diffoscope/difference.py:232: in feeder
    for buf in in_file:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy-tar-in-tar2.tar'

    def list_libarchive(path):
        with libarchive.file_reader(path) as archive:
            for entry in archive:
                if entry.isblk or entry.ischr:
                    size_or_dev = '{major:>3},{minor:>3}'.format(major=entry.rdevmajor, minor=entry.rdevminor)
                else:
                    size_or_dev = entry.size
>               mtime = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(entry.mtime)) + '.{:06d}'.format(entry.mtime_nsec // 1000)
E               AttributeError: 'ArchiveEntry' object has no attribute 'mtime_nsec'

diffoscope/comparators/libarchive.py:71: AttributeError
__________________________ test_mozzip_identification __________________________

mozzip1 = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>

    def test_mozzip_identification(mozzip1):
>       assert isinstance(mozzip1, MozillaZipFile)
E       AssertionError: assert False
E        +  where False = isinstance(<<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>, MozillaZipFile)

tests/comparators/test_zip.py:81: AssertionError
_____________________________ test_mozzip_metadata _____________________________

mozzip_differences = []

    @pytest.mark.skipif(tool_missing('zipinfo'), reason='missing zip')
    def test_mozzip_metadata(mozzip_differences):
        expected_diff = open(os.path.join(os.path.dirname(__file__), '../data/mozzip_zipinfo_expected_diff')).read()
>       diff = mozzip_differences[0].unified_diff
E       IndexError: list index out of range

tests/comparators/test_zip.py:94: IndexError
_________________________ test_mozzip_compressed_files _________________________

mozzip_differences = []

    @pytest.mark.skipif(tool_missing('zipinfo'), reason='missing zip')
    def test_mozzip_compressed_files(mozzip_differences):
>       assert mozzip_differences[1].source1 == 'dir/text'
E       IndexError: list index out of range

tests/comparators/test_zip.py:100: IndexError
_______________________ test_mozzip_compare_non_existing _______________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f982c8ae510>
mozzip1 = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>

    @pytest.mark.skipif(tool_missing('zipinfo'), reason='missing zip')
    def test_mozzip_compare_non_existing(monkeypatch, mozzip1):
        monkeypatch.setattr(Config.general, 'new_file', True)
        difference = mozzip1.compare(NonExistingFile('/nonexisting', mozzip1))
        assert difference.source2 == '/nonexisting'
>       assert difference.details[-1].source2 == '/dev/null'
E       IndexError: list index out of range

tests/comparators/test_zip.py:110: IndexError
=============================== warnings summary ===============================
diffoscope/comparators/ipk.py:26
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/comparators/ipk.py:26: DeprecationWarning: invalid escape sequence \.
    RE_FILE_EXTENSION = re.compile('\.ipk$')

diffoscope/comparators/rpm_fallback.py:24
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/comparators/rpm_fallback.py:24: DeprecationWarning: invalid escape sequence \s
    RE_FILE_TYPE = re.compile('^RPM\s')

diffoscope/presenters/html.py:299
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/presenters/html.py:299: DeprecationWarning: invalid escape sequence \<
    t.write('<br/><span class="diffponct">\</span>')

.pybuild/cpython3_3.7/build/tests/test_main.py::test_list_tools
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/__init__.py:239: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
    return platform.linux_distribution()[0]

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=== 42 failed, 152 passed, 13 skipped, 4 warnings, 26 error in 51.51 seconds ===
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /tmp/testrun/.pybuild/cpython3_3.7/build; python3.7 -m pytest tests
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.7 returned exit code 13
make: *** [debian/rules:14: build] Error 255
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed
W: No exported results found in /tmp/job-exports
Sat 31 Aug 08:54:05 UTC 2019 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-2xQ1ouRv, which will now be removed.
Build step 'Execute shell' marked build as failure



More information about the Qa-jenkins-scm mailing list