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

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Tue Aug 20 01:24:13 BST 2019


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

Changes:

------------------------------------------
[...truncated 339.98 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: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:870: 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 0x7f860328ae10>
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:870: 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 0x7f860302f050>
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:870: 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_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 0x7f8608059210>
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: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:148: 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
=== 33 failed, 130 passed, 41 skipped, 4 warnings, 18 error in 32.21 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:11: 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
Tue 20 Aug 00:24:13 UTC 2019 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-IXNDulVD, which will now be removed.
Build step 'Execute shell' marked build as failure



More information about the Qa-jenkins-scm mailing list