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

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Thu Mar 21 11:21:41 GMT 2019


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

------------------------------------------
[...truncated 533.88 KB...]
diffoscope/comparators/utils/libarchive.py:77: AttributeError
____________________________ test_no_fuzzy_matching ____________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9f8b1d2fd0>
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/utils/file.py:201: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/utils/file.py:160: 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:97: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:70: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/diff.py:282: 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/diff.py:238: in fd_from_feeder
    t.join()
diffoscope/diff.py:227: in join
    raise ex
diffoscope/diff.py:213: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:865: in run
    self._target(*self._args, **self._kwargs)
diffoscope/diff.py:197: in feed
    end_nl = feeder(f)
diffoscope/difference.py:203: 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/utils/libarchive.py:77: AttributeError
_______________________ test_no_fuzzy_matching_new_file ________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9f8b4900b8>
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/utils/file.py:201: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/utils/file.py:160: 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:97: in from_text_readers
    *args, **kwargs)
diffoscope/difference.py:70: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/diff.py:282: 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/diff.py:238: in fd_from_feeder
    t.join()
diffoscope/diff.py:227: in join
    raise ex
diffoscope/diff.py:213: in run
    super().run(*args, **kwargs)
/usr/lib/python3.7/threading.py:865: in run
    self._target(*self._args, **self._kwargs)
diffoscope/diff.py:197: in feed
    end_nl = feeder(f)
diffoscope/difference.py:203: 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/utils/libarchive.py:77: AttributeError

--------- coverage: platform linux, python 3.7.3-candidate-1 ---------
Name                                         Stmts   Miss  Cover   Missing
--------------------------------------------------------------------------
diffoscope/__init__.py                           1      0   100%
diffoscope/changes.py                          124     54    56%   85, 93, 96, 105, 112, 119, 140, 177, 183, 189, 195-197, 203, 209, 225-228, 231-234, 243, 255-289, 310-317, 324, 336
diffoscope/comparators/__init__.py               1      0   100%
diffoscope/comparators/apk.py                   36     15    58%   37, 41-51, 54, 57, 60-61
diffoscope/comparators/ar.py                    28      8    71%   41-51
diffoscope/comparators/binary.py                16      0   100%
diffoscope/comparators/bzip2.py                 30      0   100%
diffoscope/comparators/cbfs.py                  84     43    49%   39-40, 44, 47, 53-64, 67, 70, 73, 77-81, 93-94, 116-119, 123-135, 138
diffoscope/comparators/cpio.py                  16      1    94%   34
diffoscope/comparators/deb.py                  104     48    54%   33-34, 42-53, 62-68, 76, 96-97, 102-109, 135-137, 140-142, 145, 153-166, 180
diffoscope/comparators/debian.py               139      5    96%   85-86, 183, 201, 217
diffoscope/comparators/debian_fallback.py       32     32     0%   20-65
diffoscope/comparators/device.py                39      6    85%   36-38, 69-72
diffoscope/comparators/dex.py                   31      1    97%   38
diffoscope/comparators/directory.py            129     13    90%   77, 89, 99-100, 102, 108-109, 112-113, 161-163, 178
diffoscope/comparators/elf.py                  275     66    76%   68, 76-77, 206, 222, 267, 309, 345-358, 363-376, 398, 413, 427-433, 448-523, 560-561
diffoscope/comparators/fonts.py                 16      3    81%   32, 35, 46
diffoscope/comparators/fsimage.py               58     36    38%   32-33, 40-54, 57-60, 63, 66, 69-73, 84-94
diffoscope/comparators/gettext.py               37      0   100%
diffoscope/comparators/git.py                   30      0   100%
diffoscope/comparators/gzip.py                  32      0   100%
diffoscope/comparators/haskell.py               54     11    80%   39, 45, 63-65, 67, 73-74, 77, 89, 92
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%   35-36, 61
diffoscope/comparators/java.py                  22      0   100%
diffoscope/comparators/javascript.py            14      1    93%   32
diffoscope/comparators/json.py                  27      2    93%   40-41
diffoscope/comparators/llvm.py                  15      3    80%   31, 39, 47
diffoscope/comparators/macho.py                 53     26    51%   33-35, 39, 42, 45-51, 56, 61, 66, 80-84, 90-105
diffoscope/comparators/missing_file.py          48      3    94%   67, 70, 89
diffoscope/comparators/mono.py                  14      0   100%
diffoscope/comparators/openssh.py               14      2    86%   32, 42
diffoscope/comparators/pdf.py                   19      0   100%
diffoscope/comparators/png.py                   19      0   100%
diffoscope/comparators/ppu.py                   53     14    74%   70, 77-90
diffoscope/comparators/ps.py                    25      2    92%   51-52
diffoscope/comparators/rpm.py                   69      2    97%   41, 48
diffoscope/comparators/rpm_fallback.py          13      5    62%   34-38
diffoscope/comparators/rust.py                  38     14    63%   41, 44, 47, 50, 53-61, 72-73, 76
diffoscope/comparators/sqlite.py                12      0   100%
diffoscope/comparators/squashfs.py             147     19    87%   80, 96, 110, 116, 119, 131, 139, 159, 164-165, 168-169, 172-173, 186, 215-218, 232
diffoscope/comparators/symlink.py               29      1    97%   38
diffoscope/comparators/tar.py                   13      0   100%
diffoscope/comparators/text.py                  34      2    94%   66-68
diffoscope/comparators/utils/__init__.py         0      0   100%
diffoscope/comparators/utils/archive.py         81     12    85%   56, 60, 64, 68, 111, 114, 117, 123, 126, 136, 139, 144
diffoscope/comparators/utils/command.py         60      1    98%   58
diffoscope/comparators/utils/compare.py         75      6    92%   39-40, 56, 83-85
diffoscope/comparators/utils/container.py       76     13    83%   63-64, 69-72, 76, 80, 104-106, 112-113
diffoscope/comparators/utils/file.py           155     25    84%   34-35, 58-68, 80, 142, 146, 150, 175-178, 213, 216, 229-232, 239-242
diffoscope/comparators/utils/filenames.py        7      0   100%
diffoscope/comparators/utils/fuzzy.py           29      5    83%   27-28, 35, 53-54
diffoscope/comparators/utils/libarchive.py     143     30    79%   40-41, 43-44, 50-51, 53-54, 56-57, 74, 78-90, 120, 126, 129, 142, 156, 170-171, 182, 216
diffoscope/comparators/utils/specialize.py      31      3    90%   54-55, 60
diffoscope/comparators/xz.py                    30      0   100%
diffoscope/comparators/zip.py                   91      3    97%   66, 72, 75
diffoscope/config.py                            24      2    92%   49, 57
diffoscope/diff.py                             203     35    83%   87, 124, 186, 243-245, 248-273, 304-308, 312-322
diffoscope/difference.py                       155     11    93%   40, 59, 75-79, 89, 107, 165, 170
diffoscope/exc.py                               15      7    53%   26-27, 220-225
diffoscope/locale.py                            13      0   100%
diffoscope/logging.py                            9      0   100%
diffoscope/main.py                             151     24    84%   48-49, 165, 167, 169-170, 180, 187-192, 198, 213, 220, 241, 248, 253, 262-263, 265, 269-270, 281
diffoscope/presenters/__init__.py                0      0   100%
diffoscope/presenters/html/__init__.py           1      0   100%
diffoscope/presenters/html/html.py             372    155    58%   85, 115, 117, 121-124, 128, 130-132, 162, 165, 167, 172-176, 182, 192-198, 207, 212, 214, 226-240, 249-253, 262-265, 269-275, 292-316, 332-333, 336-337, 349-350, 353-357, 365-368, 371-374, 378-381, 389-396, 409-412, 422-423, 428-429, 437-439, 469-471, 478, 495, 500-502, 508-509, 520-555
diffoscope/presenters/html/linediff.py          53     51     4%   22-29, 36-94
diffoscope/presenters/html/templates.py          5      0   100%
diffoscope/presenters/icon.py                    1      0   100%
diffoscope/presenters/text.py                   37      4    89%   37, 65-67
diffoscope/presenters/utils.py                  43      7    84%   72-73, 85-86, 93, 105, 115
diffoscope/profiling.py                         34     10    71%   61-62, 65-79
diffoscope/progress.py                          79     32    59%   40-45, 48, 53, 60, 65, 69, 94-124, 127-131, 134, 138, 141, 148
diffoscope/tempfiles.py                         28     10    64%   47-52, 55-58
diffoscope/tools.py                             25      1    96%   65
--------------------------------------------------------------------------
TOTAL                                         4096    888    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/presenters/html/html.py:128
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/presenters/html/html.py:128: DeprecationWarning: invalid escape sequence \<
    t.write('<br/><span class="diffponct">\</span>')

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

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')

.pybuild/cpython3_3.7/build/tests/test_main.py::test_list_tools
  /tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/tools.py:64: 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 125.71 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
Thu 21 Mar 11:21:40 UTC 2019 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-1lhdJVbO, which will now be removed.
Build step 'Execute shell' marked build as failure



More information about the Qa-jenkins-scm mailing list