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

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Thu Feb 7 06:15:08 GMT 2019


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

------------------------------------------
[...truncated 337.27 KB...]
                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:72: AttributeError
_____________________________ test_fuzzy_matching ______________________________

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

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

tests/comparators/test_utils.py:49: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
diffoscope/comparators/binary.py:210: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/binary.py:178: in _compare_using_details
    details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:41: in compare_details
    self.path, other.path, source="file list")]
diffoscope/difference.py:330: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:303: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/difference.py:272: 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:207: in fd_from_feeder
    t.join()
diffoscope/difference.py:185: in join
    raise ex
diffoscope/difference.py:171: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:865: in run
    self._target(*self._args, **self._kwargs)
diffoscope/difference.py:192: in feed
    end_nl = feeder(f)
diffoscope/difference.py:234: in feeder
    for buf in in_file:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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:72: 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:210: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/binary.py:178: in _compare_using_details
    details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:41: in compare_details
    self.path, other.path, source="file list")]
diffoscope/difference.py:330: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:303: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/difference.py:272: 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:207: in fd_from_feeder
    t.join()
diffoscope/difference.py:185: in join
    raise ex
diffoscope/difference.py:171: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:865: in run
    self._target(*self._args, **self._kwargs)
diffoscope/difference.py:192: in feed
    end_nl = feeder(f)
diffoscope/difference.py:234: 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:72: AttributeError
____________________________ test_no_fuzzy_matching ____________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff6da3d7320>
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:210: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/binary.py:178: in _compare_using_details
    details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:41: in compare_details
    self.path, other.path, source="file list")]
diffoscope/difference.py:330: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:303: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/difference.py:272: 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:207: in fd_from_feeder
    t.join()
diffoscope/difference.py:185: in join
    raise ex
diffoscope/difference.py:171: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:865: in run
    self._target(*self._args, **self._kwargs)
diffoscope/difference.py:192: in feed
    end_nl = feeder(f)
diffoscope/difference.py:234: 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:72: AttributeError
_______________________ test_no_fuzzy_matching_new_file ________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff6da465e10>
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:210: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/binary.py:178: in _compare_using_details
    details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:41: in compare_details
    self.path, other.path, source="file list")]
diffoscope/difference.py:330: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:303: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/difference.py:272: 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:207: in fd_from_feeder
    t.join()
diffoscope/difference.py:185: in join
    raise ex
diffoscope/difference.py:171: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:865: in run
    self._target(*self._args, **self._kwargs)
diffoscope/difference.py:192: in feed
    end_nl = feeder(f)
diffoscope/difference.py:234: 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:72: AttributeError
=============================== 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:297
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/presenters/html.py:297: 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:149: 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
=== 28 failed, 135 passed, 41 skipped, 4 warnings, 18 error in 54.61 seconds ===
E: pybuild pybuild:338: 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:11: build] Error 25
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
Thu  7 Feb 06:15:07 UTC 2019 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-cUgS1iLI, which will now be removed.
Build step 'Execute shell' marked build as failure



More information about the Qa-jenkins-scm mailing list