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

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Sat Aug 31 10:49:55 BST 2019


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

Changes:

------------------------------------------
[...truncated 1.02 MB...]
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 0x7f0d2f363a50>
entry      = <libarchive.entry.ArchiveEntry object at 0x7f0d2f363a90>
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
__________________________ 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)

mozzip1    = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>

tests/comparators/test_zip.py:63: AssertionError
_____________________________ test_mozzip_metadata _____________________________

mozzip_differences = []
mozzip1 = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>
mozzip2 = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test2.mozzip>

    @skip_unless_tools_exist('zipinfo')
    def test_mozzip_metadata(mozzip_differences, mozzip1, mozzip2):
        expected_diff = get_data('mozzip_zipinfo_expected_diff')
>       diff = mozzip_differences[0].unified_diff
E       IndexError: list index out of range

expected_diff = ('@@ -1,8 +1,8 @@\n'
 '-Zip file size: 409 bytes, number of entries: 1\n'
 '-warning [test1.mozzip]:  329 extra bytes at beginning or within zipfile\n'
 '+Zip file size: 552 bytes, number of entries: 1\n'
 '+warning [test2.mozzip]:  472 extra bytes at beginning or within zipfile\n'
 '   (attempting to process anyway)\n'
 '-error [test1.mozzip]:  reported length of central directory is\n'
 '-  -329 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1\n'
 '+error [test2.mozzip]:  reported length of central directory is\n'
 '+  -472 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1\n'
 '   zipfile?).  Compensating...\n'
 '--rw-r--r--  2.0 unx      446 b- defX 10-Jan-01 00:00 dir/text\n'
 '-1 file, 446 bytes uncompressed, 269 bytes compressed:  39.7%\n'
 '+-rw-r--r--  2.0 unx      671 b- defX 10-Jan-01 00:00 dir/text\n'
 '+1 file, 671 bytes uncompressed, 412 bytes compressed:  38.6%\n')
mozzip1    = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>
mozzip2    = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test2.mozzip>
mozzip_differences = []

tests/comparators/test_zip.py:76: IndexError
_________________________ test_mozzip_compressed_files _________________________

mozzip_differences = []

    @skip_unless_tools_exist('zipinfo')
    def test_mozzip_compressed_files(mozzip_differences):
>       assert mozzip_differences[1].source1 == 'dir/text'
E       IndexError: list index out of range

mozzip_differences = []

tests/comparators/test_zip.py:82: IndexError
_______________________ test_mozzip_compare_non_existing _______________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0d2f3eaf10>
mozzip1 = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>

    @skip_unless_tools_exist('zipinfo')
    def test_mozzip_compare_non_existing(monkeypatch, mozzip1):
>       assert_non_existing(monkeypatch, mozzip1)

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0d2f3eaf10>
mozzip1    = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>

tests/comparators/test_zip.py:89: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0d2f3eaf10>
fixture = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>
has_null_source = True, has_details = True

    def assert_non_existing(monkeypatch, fixture, has_null_source=True, has_details=True):
        monkeypatch.setattr(Config(), 'new_file', True)
        assert Config().new_file, "didnt get patched"
    
        difference = fixture.compare(MissingFile('/nonexisting', fixture))
    
        assert difference.source2 == '/nonexisting'
>       assert not has_details or len(difference.details) > 0
E       AssertionError

difference = <Difference /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip -- /nonexisting []>
fixture    = <<class 'abc.ZipFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/../data/test1.mozzip>
has_details = True
has_null_source = True
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0d2f3eaf10>

tests/comparators/utils/nonexisting.py:32: AssertionError
=============================== 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

----------- coverage: platform linux, python 3.7.4-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      1    98%   58
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     27    84%   34-35, 61-71, 83, 113-114, 164, 168, 172, 209-212, 218-221, 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     16    82%   68, 71, 115-116, 129-139, 157-159
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     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                             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   1026    76%
Coverage HTML written to dir htmlcov

=========================== short test summary info ============================
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:96: requires cbfstool
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:101: requires cbfstool
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:106: requires cbfstool
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:118: requires cbfstool
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:129: requires cbfstool
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:137: requires cbfstool
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_fsimage.py:48: guestfs not working on the system
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_fsimage.py:59: guestfs not working on the system
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_fsimage.py:77: guestfs not working on the system
SKIPPED [1] /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/test_haskell.py:36: mismatch between system ghc and fixture
SKIPPED [1] /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/test_haskell.py:50: mismatch between system ghc and fixture
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_macho.py:46: requires otool and lipo
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_macho.py:53: requires otool and lipo
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_utils.py:42: requires
SKIPPED [1] .pybuild/cpython3_3.7/build/tests/comparators/test_utils.py:46: requires /missing
== 57 failed, 201 passed, 15 skipped, 5 warnings, 25 error in 126.52 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 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
Sat 31 Aug 09:49:54 UTC 2019 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-OCO1lwUu, which will now be removed.
Build step 'Execute shell' marked build as failure



More information about the Qa-jenkins-scm mailing list