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

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Tue Apr 30 03:08:16 BST 2019


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

------------------------------------------
[...truncated 454.64 KB...]
diffoscope/difference.py:195: in feed
    end_nl = feeder(f)
diffoscope/difference.py:235: in feeder
    for buf in in_file:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/fuzzy1.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 0x7f0c4f4b3cf8>
fuzzy_tar_in_tar1 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/fuzzy-tar-in-tar1.tar>
fuzzy_tar_in_tar2 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/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:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
diffoscope/comparators/binary.py:223: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/binary.py:182: in _compare_using_details
    details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:42: in compare_details
    self.path, other.path, source="file list")]
diffoscope/difference.py:342: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:315: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/difference.py:275: in diff
    fd_from_feeder(feeder1, end_nl_q1, fifo1)
/usr/lib/python3.7/contextlib.py:239: in helper
    return _GeneratorContextManager(func, args, kwds)
/usr/lib/python3.7/contextlib.py:82: in __init__
    self.gen = func(*args, **kwds)
diffoscope/difference.py:208: in fd_from_feeder
    t.join()
diffoscope/difference.py:188: in join
    raise ex
diffoscope/difference.py:174: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:865: in run
    self._target(*self._args, **self._kwargs)
diffoscope/difference.py:195: in feed
    end_nl = feeder(f)
diffoscope/difference.py:235: in feeder
    for buf in in_file:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/fuzzy-tar-in-tar1.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 0x7f0c540db9e8>
fuzzy_tar_in_tar1 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/fuzzy-tar-in-tar1.tar>
fuzzy_tar_in_tar2 = <<class 'abc.TarFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/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:93: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
diffoscope/comparators/binary.py:223: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/binary.py:182: in _compare_using_details
    details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:42: in compare_details
    self.path, other.path, source="file list")]
diffoscope/difference.py:342: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:315: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/difference.py:275: in diff
    fd_from_feeder(feeder1, end_nl_q1, fifo1)
/usr/lib/python3.7/contextlib.py:239: in helper
    return _GeneratorContextManager(func, args, kwds)
/usr/lib/python3.7/contextlib.py:82: in __init__
    self.gen = func(*args, **kwds)
diffoscope/difference.py:208: in fd_from_feeder
    t.join()
diffoscope/difference.py:188: in join
    raise ex
diffoscope/difference.py:174: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:865: in run
    self._target(*self._args, **self._kwargs)
diffoscope/difference.py:195: in feed
    end_nl = feeder(f)
diffoscope/difference.py:235: in feeder
    for buf in in_file:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/fuzzy-tar-in-tar1.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

----------- coverage: platform linux, python 3.7.3-final-0 -----------
Name                                        Stmts   Miss  Cover   Missing
-------------------------------------------------------------------------
diffoscope/__init__.py                         72     11    85%   55, 120-125, 127-130
diffoscope/changes.py                         122     54    56%   82, 90, 93, 102, 109, 116, 137, 174, 180, 186, 192-194, 200, 206, 222-225, 228-231, 240, 252-286, 307-314, 321, 333
diffoscope/comparators/__init__.py            103     12    88%   38-39, 105-106, 111, 128, 155-157, 176, 194-195
diffoscope/comparators/apk.py                  33     15    55%   31, 35-45, 48, 51, 54-55
diffoscope/comparators/ar.py                   26      8    69%   38-48
diffoscope/comparators/binary.py              222     28    87%   37-38, 43-46, 88-98, 110, 166, 170, 174, 197-200, 235, 238, 251-254, 313, 316, 327
diffoscope/comparators/bzip2.py                27      0   100%
diffoscope/comparators/cbfs.py                 81     43    47%   34-35, 39, 42, 48-59, 62, 65, 68, 72-76, 88-89, 111-114, 118-130, 133
diffoscope/comparators/cpio.py                 16      1    94%   33
diffoscope/comparators/deb.py                 103     48    53%   33-34, 40-51, 60-66, 74, 94-95, 100-107, 133-135, 138-140, 143, 151-164, 178
diffoscope/comparators/debian.py              138      5    96%   82-83, 180, 198, 214
diffoscope/comparators/debian_fallback.py      32     32     0%   20-65
diffoscope/comparators/device.py               31      3    90%   34-36
diffoscope/comparators/dex.py                  28      1    96%   33
diffoscope/comparators/directory.py           126     13    90%   74, 86, 96-97, 99, 105-106, 109-110, 156-158, 173
diffoscope/comparators/elf.py                 268     64    76%   45, 53-54, 184, 196, 237, 272, 299-307, 312-320, 336, 349, 357-361, 374-417, 450-451
diffoscope/comparators/fonts.py                16      3    81%   31, 34, 45
diffoscope/comparators/fsimage.py              57     36    37%   31-32, 37-51, 54-57, 60, 63, 66-70, 81-91
diffoscope/comparators/gettext.py              36      0   100%
diffoscope/comparators/git.py                  30      0   100%
diffoscope/comparators/gzip.py                 29      0   100%
diffoscope/comparators/haskell.py              52     11    79%   35, 41, 59-61, 63, 69-70, 73, 85, 88
diffoscope/comparators/icc.py                  14      0   100%
diffoscope/comparators/image.py                17      0   100%
diffoscope/comparators/ipk.py                   6      0   100%
diffoscope/comparators/iso9660.py              43      3    93%   34-35, 60
diffoscope/comparators/java.py                 22      0   100%
diffoscope/comparators/javascript.py           14      1    93%   31
diffoscope/comparators/json.py                 27      2    93%   39-40
diffoscope/comparators/libarchive.py          140     35    75%   35-36, 38-39, 45-46, 48-49, 51-52, 69, 73-85, 115, 121, 124, 137, 151, 165-167, 172, 185, 192, 194, 196, 199
diffoscope/comparators/llvm.py                 15      3    80%   30, 38, 46
diffoscope/comparators/macho.py                53     26    51%   32-34, 38, 41, 44-50, 55, 60, 65, 79-83, 89-104
diffoscope/comparators/mono.py                 14      0   100%
diffoscope/comparators/openssh.py              14      2    86%   31, 41
diffoscope/comparators/pdf.py                  19      0   100%
diffoscope/comparators/png.py                  19      0   100%
diffoscope/comparators/ppu.py                  51     14    73%   66, 73-86
diffoscope/comparators/ps.py                   23      2    91%   47-48
diffoscope/comparators/rpm.py                  66      2    97%   36, 43
diffoscope/comparators/rpm_fallback.py         13      5    62%   34-38
diffoscope/comparators/rust.py                 35     14    60%   37, 40, 43, 46, 49-57, 68-69, 72
diffoscope/comparators/sqlite.py               12      0   100%
diffoscope/comparators/squashfs.py            144     19    87%   75, 91, 105, 111, 114, 126, 134, 154, 159-160, 163-164, 167-168, 181, 210-213, 227
diffoscope/comparators/symlink.py              28      1    96%   35
diffoscope/comparators/tar.py                  13      0   100%
diffoscope/comparators/text.py                 34      2    94%   66-68
diffoscope/comparators/utils.py               228     30    87%   68, 133-136, 152, 183-184, 189-192, 196, 200, 224-226, 232-233, 304, 308, 312, 316, 324, 327, 330, 336, 339, 349, 352, 357
diffoscope/comparators/xz.py                   27      0   100%
diffoscope/comparators/zip.py                  90      3    97%   64, 70, 73
diffoscope/config.py                           24      2    92%   49, 57
diffoscope/difference.py                      329     26    92%   77, 110, 160, 285, 304, 320-324, 334, 352, 410, 415, 425-427, 445-449, 455-465
diffoscope/exc.py                              15      8    47%   23-24, 216-223
diffoscope/main.py                            173     35    80%   45-46, 162, 164, 166-167, 177, 184, 191, 200-205, 211, 226, 231, 242, 256, 262, 272-274, 276-277, 280-281, 286, 291, 299-300, 302, 306-307, 313
diffoscope/presenters/__init__.py               0      0   100%
diffoscope/presenters/html.py                 424    204    52%   262, 287-294, 301-359, 368, 370, 374-377, 381, 383-385, 415, 418, 420, 425-429, 435, 445-451, 460, 465, 467, 479-493, 502-506, 515-518, 522-528, 545-569, 585-586, 589-590, 602-603, 606-610, 618-621, 624-627, 631-634, 642-649, 662-665, 675-676, 681-682, 690-692, 722-724, 731, 748, 753-755, 761-762, 775-807
diffoscope/presenters/icon.py                   1      0   100%
diffoscope/presenters/text.py                  36      4    89%   34, 61-63
diffoscope/profiling.py                        27      8    70%   52-66
diffoscope/progress.py                         68     21    69%   39-44, 47, 52, 57, 61, 66, 70, 95-104, 107-109, 112, 116, 119, 122
-------------------------------------------------------------------------
TOTAL                                        3926    860    78%
Coverage HTML written to dir htmlcov

=========================== short test summary info ============================
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:57: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:61: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:65: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:76: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:81: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:88: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_fsimage.py:51: guestfs not working on the system
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_fsimage.py:62: guestfs not working on the system
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_fsimage.py:80: guestfs not working on the system
SKIP [1] /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/test_haskell.py:34: mismatch between system ghc and fixture
SKIP [1] /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/test_haskell.py:48: mismatch between system ghc and fixture
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_javascript.py:42: requires js-beautify
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_javascript.py:47: requires js-beautify
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_macho.py:44: requires otool and lipo
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_macho.py:51: requires otool and lipo
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_utils.py:46: requires
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_utils.py:50: requires /missing
=============================== warnings summary ===============================
diffoscope/comparators/ipk.py:27
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/comparators/ipk.py:27: DeprecationWarning: invalid escape sequence \.
    RE_FILE_EXTENSION = re.compile('\.ipk$')

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

diffoscope/presenters/html.py:235
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/presenters/html.py:235: DeprecationWarning: invalid escape sequence \(
    """

diffoscope/presenters/html.py:381
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/presenters/html.py:381: 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:54: 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
 37 failed, 172 passed, 17 skipped, 4 deselected, 5 warnings, 27 error in 148.98 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 -vv -r sxX --cov=diffoscope --cov-report=term-missing --cov-report=html -k "not test_openssh_pub_key"
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.7 returned exit code 13
make: *** [debian/rules:29: 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
Tue 30 Apr 02:08:15 UTC 2019 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-GDNx7r59, which will now be removed.
Build step 'Execute shell' marked build as failure



More information about the Qa-jenkins-scm mailing list