[Qa-jenkins-scm] Build failed in Jenkins: reproducible_diffoscope_from_git_branches #449
jenkins at jenkins.debian.net
jenkins at jenkins.debian.net
Tue Apr 30 03:30:08 BST 2019
See <https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/449/display/redirect>
------------------------------------------
[...truncated 1005.48 KB...]
# 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-4036, stopped daemon 139914106251008)>
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 0x7f4049310730>
h = <sha1 HASH object @ 0x7f404940d8f0>
in_file = <generator object list_libarchive at 0x7f4049354660>
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 0x7f4049436588>
entry = <libarchive.entry.ArchiveEntry object at 0x7f40494319b0>
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 0x7f404a076b70>
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 0x7f404a076b70>
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 0x7f4049431668>
entry = <libarchive.entry.ArchiveEntry object at 0x7f4049431588>
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.3-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 54 1 98% 39
diffoscope/comparators/ar.py 26 8 69% 41-51
diffoscope/comparators/binary.py 16 0 100%
diffoscope/comparators/bzip2.py 29 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 139 5 96% 81-83, 232, 252, 270
diffoscope/comparators/debian_fallback.py 26 0 100%
diffoscope/comparators/device.py 46 6 87% 47-50, 78-81
diffoscope/comparators/dex.py 30 1 97% 39
diffoscope/comparators/directory.py 131 13 90% 78, 90, 100-101, 103, 109-110, 113-114, 162-164, 180
diffoscope/comparators/elf.py 273 66 76% 68, 76-77, 206, 222, 267, 309, 345-358, 363-376, 398, 413, 427-433, 448-523, 556-557
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 32 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 1 98% 58
diffoscope/comparators/utils/compare.py 97 6 94% 40-41, 104, 129-131
diffoscope/comparators/utils/container.py 101 12 88% 72-73, 80-84, 88, 92, 130, 144-146
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 145 28 81% 42-43, 45-46, 52-53, 55-56, 58-59, 76, 80-92, 122, 128, 131, 144, 158, 184, 214
diffoscope/comparators/utils/specialize.py 23 0 100%
diffoscope/comparators/xz.py 29 0 100%
diffoscope/comparators/zip.py 87 2 98% 68, 71
diffoscope/config.py 26 2 92% 51, 59
diffoscope/diff.py 204 37 82% 90, 127, 182, 216, 218, 240-242, 245-270, 299-303, 307-317
diffoscope/difference.py 155 11 93% 40, 75-79, 89, 107, 157, 165, 170
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 158 20 87% 49-50, 191, 193, 195-196, 206, 217, 235, 243, 266, 273-274, 278, 287-288, 290, 294-295, 306
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 14 8 43% 27-31, 34-36, 39-47
diffoscope/presenters/markdown.py 19 14 26% 25-26, 29-43, 46-49
diffoscope/presenters/restructuredtext.py 25 19 24% 27-28, 31-47, 50-57
diffoscope/presenters/text.py 31 6 81% 44-45, 51-55
diffoscope/presenters/utils.py 43 7 84% 38, 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 4284 1010 76%
Coverage HTML written to dir htmlcov
=========================== short test summary info ============================
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:59: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:63: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:67: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:77: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:82: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:89: 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
== 50 failed, 214 passed, 15 skipped, 5 warnings, 25 error in 220.31 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 -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
Tue 30 Apr 02:30:07 UTC 2019 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-ApReAe8Q, which will now be removed.
Build step 'Execute shell' marked build as failure
More information about the Qa-jenkins-scm
mailing list