[Qa-jenkins-scm] Build failed in Jenkins: reproducible_diffoscope_from_git_branches #353
jenkins at jenkins.debian.net
jenkins at jenkins.debian.net
Thu Feb 7 08:10:31 GMT 2019
See <https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/353/display/redirect>
------------------------------------------
[...truncated 1.02 MB...]
# The queue works around a unified diff limitation: if there's
# no newlines in both don't make it a difference
> end_nl = self.feeder(fifo)
fifo = <_io.BufferedWriter name=11>
fifo_fd = 11
self = <FIFOFeeder(Thread-3707, stopped daemon 140088124512000)>
diffoscope/diff.py:227:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
out_file = <_io.BufferedWriter name=11>
def feeder(out_file):
max_lines = Config().max_diff_input_lines
line_count = 0
end_nl = False
h = None
if max_lines < float("inf"):
h = hashlib.sha1()
> for buf in in_file:
end_nl = False
filter = <function make_feeder_from_text_reader.<locals>.encoding_filter at 0x7f68ce37d950>
h = <sha1 HASH object @ 0x7f68cef71ad0>
in_file = <generator object list_libarchive at 0x7f68ce3d5ed0>
line_count = 0
max_lines = 1048576
out_file = <_io.BufferedWriter name=11>
diffoscope/difference.py:203:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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'
archive = <libarchive.read.ArchiveRead object at 0x7f68ce330080>
entry = <libarchive.entry.ArchiveEntry object at 0x7f68ce330160>
path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy-tar-in-tar2.tar'
size_or_dev = 0
diffoscope/comparators/utils/libarchive.py:79: AttributeError
During handling of the above exception, another exception occurred:
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f68cf9ef780>
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>
@skip_unless_module_exists('tlsh')
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)
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>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f68cf9ef780>
tests/comparators/test_utils.py:88:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
diffoscope/comparators/utils/file.py:237: in compare
difference = self._compare_using_details(other, source)
diffoscope/comparators/utils/file.py:192: in _compare_using_details
details.extend(filter(None, self.compare_details(other, source)))
diffoscope/comparators/tar.py:38: 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:279: in diff
return run_diff(fifo1_path, fifo2_path, fifo1.end_nl_q, fifo2.end_nl_q)
diffoscope/diff.py:204: in __exit__
self.join()
diffoscope/diff.py:236: in join
raise self._exception
diffoscope/diff.py:227: in run
end_nl = self.feeder(fifo)
diffoscope/difference.py:203: in feeder
for buf in in_file:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../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'
archive = <libarchive.read.ArchiveRead object at 0x7f68ce330550>
entry = <libarchive.entry.ArchiveEntry object at 0x7f68ce3305c0>
path = '/tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/fuzzy-tar-in-tar1.tar'
size_or_dev = 0
diffoscope/comparators/utils/libarchive.py:79: AttributeError
----------- coverage: platform linux, python 3.7.2-final-0 -----------
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 23 3 87% 101-102, 107
diffoscope/comparators/apk.py 97 1 99% 41
diffoscope/comparators/ar.py 26 8 69% 41-51
diffoscope/comparators/binary.py 16 0 100%
diffoscope/comparators/bzip2.py 28 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 9 0 100%
diffoscope/comparators/deb.py 102 48 53% 33-34, 42-53, 62-68, 76, 92-93, 98-105, 131-133, 136-138, 141, 149-162, 176
diffoscope/comparators/debian.py 143 5 97% 82-84, 238, 258, 276
diffoscope/comparators/debian_fallback.py 26 0 100%
diffoscope/comparators/device.py 46 6 87% 47-50, 78-81
diffoscope/comparators/dex.py 29 1 97% 38
diffoscope/comparators/directory.py 135 16 88% 49-52, 84, 96, 106-107, 109, 115-116, 119-120, 168-170, 186
diffoscope/comparators/elf.py 277 69 75% 69, 77-78, 207, 223, 268, 310, 346-359, 364-377, 399, 414-418, 432-438, 453-528, 561-562
diffoscope/comparators/fonts.py 14 3 79% 32, 35, 42
diffoscope/comparators/fsimage.py 56 36 36% 32-33, 40-54, 57-60, 63, 66, 69-73, 80-90
diffoscope/comparators/gettext.py 35 0 100%
diffoscope/comparators/git.py 28 0 100%
diffoscope/comparators/gzip.py 35 0 100%
diffoscope/comparators/haskell.py 57 13 77% 37, 47, 84-86, 95, 101-106, 110, 121-122, 139, 142
diffoscope/comparators/icc.py 12 0 100%
diffoscope/comparators/image.py 37 2 95% 103-104
diffoscope/comparators/ipk.py 4 0 100%
diffoscope/comparators/iso9660.py 41 3 93% 35-36, 61
diffoscope/comparators/java.py 20 0 100%
diffoscope/comparators/javascript.py 12 0 100%
diffoscope/comparators/json.py 27 0 100%
diffoscope/comparators/llvm.py 15 3 80% 31, 39, 47
diffoscope/comparators/macho.py 51 26 49% 33-35, 39, 42, 45-51, 56, 61, 66, 76-80, 86-101
diffoscope/comparators/missing_file.py 48 3 94% 67, 70, 89
diffoscope/comparators/mono.py 12 0 100%
diffoscope/comparators/openssh.py 12 0 100%
diffoscope/comparators/pdf.py 17 0 100%
diffoscope/comparators/png.py 17 0 100%
diffoscope/comparators/ppu.py 53 14 74% 70, 77-90
diffoscope/comparators/ps.py 23 2 91% 47-48
diffoscope/comparators/rpm.py 69 2 97% 41, 48
diffoscope/comparators/rpm_fallback.py 11 0 100%
diffoscope/comparators/rust.py 37 14 62% 40, 43, 46, 49, 52-60, 71-72, 75
diffoscope/comparators/sqlite.py 12 0 100%
diffoscope/comparators/squashfs.py 145 19 87% 80, 96, 110, 116, 119, 131, 139, 159, 164-165, 168-169, 172-173, 186, 215-218, 232
diffoscope/comparators/symlink.py 28 0 100%
diffoscope/comparators/tar.py 11 0 100%
diffoscope/comparators/text.py 32 2 94% 62-64
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 2 97% 58, 80
diffoscope/comparators/utils/compare.py 82 6 93% 40-41, 76, 96-98
diffoscope/comparators/utils/container.py 76 13 83% 71-72, 79-83, 87, 91, 116-118, 126-127
diffoscope/comparators/utils/file.py 169 29 83% 34-35, 61-71, 83, 113-114, 164, 168, 172, 209-212, 218-221, 252, 255, 268-271, 278-281
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 146 30 79% 42-43, 45-46, 52-53, 55-56, 58-59, 76, 80-92, 122, 128, 131, 144, 158, 172-173, 184, 218
diffoscope/comparators/utils/specialize.py 23 0 100%
diffoscope/comparators/xz.py 28 0 100%
diffoscope/comparators/zip.py 87 2 98% 68, 71
diffoscope/config.py 30 2 93% 63, 71
diffoscope/diff.py 204 37 82% 90, 127, 182, 216, 218, 240-242, 245-270, 299-303, 307-317
diffoscope/difference.py 155 12 92% 40, 75-79, 89, 107, 157, 165, 170, 188
diffoscope/exc.py 15 7 53% 27-28, 35-40
diffoscope/excludes.py 15 0 100%
diffoscope/external_tools.py 1 0 100%
diffoscope/locale.py 13 0 100%
diffoscope/logging.py 9 0 100%
diffoscope/main.py 162 20 88% 49-50, 199, 201, 203-204, 214, 225, 243, 251, 276, 283-284, 288, 297-298, 300, 304-305, 316
diffoscope/presenters/__init__.py 0 0 100%
diffoscope/presenters/formats.py 43 10 77% 85-86, 91-92, 105-108, 111-112, 119
diffoscope/presenters/html/__init__.py 1 0 100%
diffoscope/presenters/html/html.py 366 317 13% 87-91, 95-129, 133-135, 141-199, 207-228, 234-238, 242, 246-250, 254-260, 264-301, 309-399, 404-424, 433-439, 442-472, 476-480, 486, 493-503, 507-508, 519-554
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/json.py 15 8 47% 29-33, 36-38, 41-49
diffoscope/presenters/markdown.py 20 14 30% 27-28, 31-45, 48-51
diffoscope/presenters/restructuredtext.py 26 19 27% 29-30, 33-49, 52-59
diffoscope/presenters/text.py 31 2 94% 44-45
diffoscope/presenters/utils.py 43 6 86% 43, 65, 75, 86-88
diffoscope/profiling.py 38 0 100%
diffoscope/progress.py 84 7 92% 49-52, 55, 78, 143, 157
diffoscope/tempfiles.py 30 8 73% 49-54, 61-62
diffoscope/tools.py 26 1 96% 68
--------------------------------------------------------------------------
TOTAL 4311 1016 76%
Coverage HTML written to dir htmlcov
=========================== short test summary info ============================
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:96: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:101: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:106: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:118: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:129: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:137: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_fsimage.py:48: guestfs not working on the system
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_fsimage.py:59: guestfs not working on the system
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_fsimage.py:77: guestfs not working on the system
SKIP [1] /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/test_haskell.py:36: mismatch between system ghc and fixture
SKIP [1] /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/test_haskell.py:50: mismatch between system ghc and fixture
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_macho.py:46: requires otool and lipo
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_macho.py:53: requires otool and lipo
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_utils.py:42: requires
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_utils.py:46: requires /missing
=============================== warnings summary ===============================
diffoscope/presenters/html/html.py:113
/tmp/testrun/.pybuild/cpython3_3.7/build/diffoscope/presenters/html/html.py:113: 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:67: 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
== 52 failed, 206 passed, 15 skipped, 5 warnings, 25 error in 258.73 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 -vv -r sxX -l --cov=diffoscope --cov-report=term-missing --cov-report=html
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 7 Feb 08:10:30 UTC 2019 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-bBlL3WHd, which will now be removed.
Build step 'Execute shell' marked build as failure
More information about the Qa-jenkins-scm
mailing list