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

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Thu Aug 1 01:34:52 BST 2019


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

Changes:

------------------------------------------
[...truncated 414.47 KB...]

    @skip_unless_tools_exist('black')
    def test_code_is_black_clean():
        output = subprocess.check_output(
            ('black', '--diff', '.'), stderr=subprocess.PIPE
        ).decode('utf-8')
    
        # Display diff in "captured stdout call"
        print(output)
    
>       assert len(output) == 0
E       assert 1015 == 0
E        +  where 1015 = len('--- tests/utils/tools.py\t2019-08-01 00:19:36.739666 +0000\n+++ tests/utils/tools.py\t2019-08-01 00:25:17.728862 +000...een,\n )\n \n re_html = re.compile(\n     r\'.*<body(?P<body>.*)<div class="footer">\', re.MULTILINE | re.DOTALL\n )\n')

output     = ('--- tests/utils/tools.py\t2019-08-01 00:19:36.739666 +0000\n'
 '+++ tests/utils/tools.py\t2019-08-01 00:25:17.728862 +0000\n'
 '@@ -194,8 +194,9 @@\n'
 ' def skip_unless_file_version_is_at_least(version):\n'
 "     return skip_unless_tool_is_at_least('file', file_version, version)\n"
 ' \n'
 ' \n'
 ' def skip_unless_file_version_is_between(min_version, max_version):\n'
 "-    return skip_unless_tool_is_between('file', file_version, min_version,\n"
 '-            max_version)\n'
 '-\n'
 '+    return skip_unless_tool_is_between(\n'
 "+        'file', file_version, min_version, max_version\n"
 '+    )\n'
 '+\n'
 '--- tests/test_presenters.py\t2019-08-01 00:19:36.739666 +0000\n'
 '+++ tests/test_presenters.py\t2019-08-01 00:25:17.831838 +0000\n'
 '@@ -32,11 +32,11 @@\n'
 ' \n'
 ' from .utils import diff_expand\n'
 ' from .utils.data import cwd_data, data, get_data\n'
 ' from .utils.tools import (\n'
 '     skip_unless_tools_exist,\n'
 '-    skip_unless_file_version_is_between\n'
 '+    skip_unless_file_version_is_between,\n'
 ' )\n'
 ' \n'
 ' re_html = re.compile(\n'
 '     r\'.*<body(?P<body>.*)<div class="footer">\', re.MULTILINE | re.DOTALL\n'
 ' )\n')

tests/test_source.py:38: AssertionError
----------------------------- Captured stdout call -----------------------------
--- tests/utils/tools.py	2019-08-01 00:19:36.739666 +0000
+++ tests/utils/tools.py	2019-08-01 00:25:17.728862 +0000
@@ -194,8 +194,9 @@
 def skip_unless_file_version_is_at_least(version):
     return skip_unless_tool_is_at_least('file', file_version, version)
 
 
 def skip_unless_file_version_is_between(min_version, max_version):
-    return skip_unless_tool_is_between('file', file_version, min_version,
-            max_version)
-
+    return skip_unless_tool_is_between(
+        'file', file_version, min_version, max_version
+    )
+
--- tests/test_presenters.py	2019-08-01 00:19:36.739666 +0000
+++ tests/test_presenters.py	2019-08-01 00:25:17.831838 +0000
@@ -32,11 +32,11 @@
 
 from .utils import diff_expand
 from .utils.data import cwd_data, data, get_data
 from .utils.tools import (
     skip_unless_tools_exist,
-    skip_unless_file_version_is_between
+    skip_unless_file_version_is_between,
 )
 
 re_html = re.compile(
     r'.*<body(?P<body>.*)<div class="footer">', re.MULTILINE | re.DOTALL
 )

______________________ test_compare_different_compression ______________________

bug881937_deb1 = <<class 'abc.DebFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/bug881937_1.deb>
bug881937_deb2 = <<class 'abc.DebFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/bug881937_2.deb>

    @skip_unless_tools_exist('xz')
    def test_compare_different_compression(bug881937_deb1, bug881937_deb2):
        difference = bug881937_deb1.compare(bug881937_deb2)
>       assert difference.details[1].source1 == 'control.tar.gz'
E       AssertionError: assert 'filetype from file(1)' == 'control.tar.gz'
E         - filetype from file(1)
E         + control.tar.gz

bug881937_deb1 = <<class 'abc.DebFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/bug881937_1.deb>
bug881937_deb2 = <<class 'abc.DebFile'> /tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/bug881937_2.deb>
difference = <Difference /tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/bug881937_1.deb -- /tmp/testrun/.pybuild/cpython3_3.7/build/tests/data/bug881937_2.deb [<Difference file list -- file list []>, <Difference filetype from file(1) -- filetype from file(1) []>, <Difference control.tar.gz -- control.tar.xz [<Difference filetype from file(1) -- filetype from file(1) []>, <Difference filetype from diffoscope -- filetype from diffoscope []>, <Difference control.tar -- control.tar [<Difference file list -- file list []>, <Difference ./control -- ./control []>, <Difference ./md5sums -- ./md5sums [<Difference ./md5sums -- ./md5sums []>]>, <Difference ./postinst -- ./postinst []>, <Difference ./postrm -- ./postrm []>]>]>]>

tests/comparators/test_deb.py:151: AssertionError
--------- generated xml file: /tmp/job-exports/test-results/tests.xml ----------

----------- coverage: platform linux, python 3.7.4-final-0 -----------
Name                                         Stmts   Miss  Cover   Missing
--------------------------------------------------------------------------
diffoscope/__init__.py                           1      0   100%
diffoscope/changes.py                          122     52    57%   85, 93, 96, 105, 112, 119, 140, 177, 183, 189, 195-197, 203, 209, 225-228, 231-234, 243, 255-287, 308-315, 322, 334
diffoscope/comparators/__init__.py              39     14    64%   129-131, 136-145, 150-154
diffoscope/comparators/android.py               40      1    98%   50
diffoscope/comparators/apk.py                  100      1    99%   41
diffoscope/comparators/ar.py                    26      0   100%
diffoscope/comparators/berkeley_db.py           19      0   100%
diffoscope/comparators/binary.py                16      0   100%
diffoscope/comparators/binwalk.py               58      5    91%   32-33, 37-38, 73
diffoscope/comparators/bzip2.py                 24      0   100%
diffoscope/comparators/cbfs.py                  85     43    49%   39-40, 46, 49, 55-66, 69, 72, 75, 79-93, 106-109, 140-143, 147-161, 164
diffoscope/comparators/cpio.py                  10      0   100%
diffoscope/comparators/deb.py                  118      8    93%   36-37, 50, 75, 134, 185-187
diffoscope/comparators/debian.py               142      5    96%   79-81, 235, 256, 276
diffoscope/comparators/debian_fallback.py       25      0   100%
diffoscope/comparators/device.py                47      6    87%   49-52, 87-90
diffoscope/comparators/dex.py                   26      1    96%   36
diffoscope/comparators/directory.py            162     22    86%   56-59, 103, 115, 122-123, 130-133, 150-153, 160, 164-165, 167, 170-171, 182-183, 242, 296
diffoscope/comparators/docx.py                  13      0   100%
diffoscope/comparators/dtb.py                   13      0   100%
diffoscope/comparators/elf.py                  289     32    89%   73, 81-82, 217, 256, 286, 327, 353-361, 381-383, 391, 403-405, 413, 461, 478-487, 495, 508, 519, 525, 538-542, 552-557
diffoscope/comparators/ffprobe.py               27      9    67%   36-38, 42, 46, 49-53
diffoscope/comparators/fontconfig.py            27      0   100%
diffoscope/comparators/fonts.py                 15      0   100%
diffoscope/comparators/fsimage.py               76     15    80%   32-33, 41, 48-49, 53-59, 63-65, 71, 77, 120
diffoscope/comparators/gettext.py               36      0   100%
diffoscope/comparators/gif.py                   40      4    90%   58-59, 102-103
diffoscope/comparators/git.py                   29      0   100%
diffoscope/comparators/gnumeric.py              19      0   100%
diffoscope/comparators/gzip.py                  26      0   100%
diffoscope/comparators/haskell.py               58     13    78%   37, 47, 87-89, 98, 104-111, 115, 126-127, 144, 147
diffoscope/comparators/icc.py                   13      0   100%
diffoscope/comparators/image.py                 78      6    92%   138-139, 167-168, 187-188
diffoscope/comparators/ipk.py                    4      0   100%
diffoscope/comparators/iso9660.py               48      3    94%   33, 73, 96
diffoscope/comparators/java.py                  47      4    91%   42, 45-47
diffoscope/comparators/javascript.py            12      0   100%
diffoscope/comparators/json.py                  43      5    88%   29-30, 76, 83-84
diffoscope/comparators/kbx.py                   16      1    94%   38
diffoscope/comparators/llvm.py                  20      0   100%
diffoscope/comparators/lz4.py                   27      0   100%
diffoscope/comparators/macho.py                 56     28    50%   33-35, 39, 42, 46-49, 54, 59, 64, 69, 82-92, 98-154
diffoscope/comparators/missing_file.py          49      3    94%   67, 70, 89
diffoscope/comparators/mono.py                  13      0   100%
diffoscope/comparators/ocaml.py                 18      0   100%
diffoscope/comparators/odt.py                   13      0   100%
diffoscope/comparators/ogg.py                   13      1    92%   32
diffoscope/comparators/openssh.py               13      0   100%
diffoscope/comparators/pcap.py                  13      0   100%
diffoscope/comparators/pdf.py                   34      2    94%   30-31
diffoscope/comparators/pgp.py                   21      0   100%
diffoscope/comparators/png.py                   30      2    93%   75-76
diffoscope/comparators/ppu.py                   52     14    73%   73, 86-99
diffoscope/comparators/ps.py                    24      2    92%   48-49
diffoscope/comparators/rdata.py                 45     16    64%   44-58, 92, 100-102
diffoscope/comparators/rpm.py                   70      2    97%   41, 48
diffoscope/comparators/rpm_fallback.py          11      0   100%
diffoscope/comparators/rust.py                  32      0   100%
diffoscope/comparators/sqlite.py                13      0   100%
diffoscope/comparators/squashfs.py             161     19    88%   98, 116, 130, 138, 141, 155, 163, 189-190, 196-197, 203-204, 219, 246-247, 289-291
diffoscope/comparators/symlink.py               32      2    94%   58-59
diffoscope/comparators/tar.py                   12      0   100%
diffoscope/comparators/text.py                  33      2    94%   85-87
diffoscope/comparators/utils/__init__.py         0      0   100%
diffoscope/comparators/utils/archive.py         90     13    86%   57, 61, 65, 69, 110-111, 127, 130, 133, 142, 152, 155, 160
diffoscope/comparators/utils/command.py         44      3    93%   67, 85, 88
diffoscope/comparators/utils/compare.py         90      6    93%   40-41, 80, 95, 107-108
diffoscope/comparators/utils/container.py      108      6    94%   67, 71, 116-120
diffoscope/comparators/utils/file.py           229     36    84%   39-40, 53-59, 88-98, 110, 243-244, 297-299, 306, 310, 314, 385-388, 396-399, 441, 446, 467, 475, 491-493
diffoscope/comparators/utils/fuzzy.py           29      2    93%   27-28
diffoscope/comparators/utils/libarchive.py     172     22    87%   44-47, 51-54, 66-69, 73-76, 80-83, 131-134, 173, 202, 210, 213, 226, 240, 254-255, 323-324
diffoscope/comparators/utils/specialize.py      31      2    94%   72, 75
diffoscope/comparators/wasm.py                  17      1    94%   32
diffoscope/comparators/xml.py                   41      2    95%   140-141
diffoscope/comparators/xsb.py                   16      0   100%
diffoscope/comparators/xz.py                    27      0   100%
diffoscope/comparators/zip.py                  123      4    97%   118, 121, 153, 238
diffoscope/config.py                            43      4    91%   76-87
diffoscope/diff.py                             413     51    88%   101, 138, 193, 228, 230, 276-279, 292-320, 370, 559, 580, 585, 618-619, 622-623, 642-643, 646-656, 664-667, 677-680, 695
diffoscope/difference.py                       173     13    92%   116, 218-222, 235, 272, 279-280, 344, 350, 377
diffoscope/exc.py                               14      0   100%
diffoscope/excludes.py                          24      6    75%   31-35, 42-44
diffoscope/external_tools.py                     3      0   100%
diffoscope/feeders.py                           58      2    97%   82-83
diffoscope/locale.py                            13      0   100%
diffoscope/logging.py                           27      6    78%   28-31, 35-38
diffoscope/main.py                             283     67    76%   61-62, 73, 432, 439, 441-447, 459-463, 470-499, 513, 540, 565-588, 597, 605, 614-617, 621-627, 656, 660-667, 684, 691-692, 697, 702-709, 728-731, 736, 738-744, 759
diffoscope/path.py                               7      0   100%
diffoscope/presenters/__init__.py                0      0   100%
diffoscope/presenters/formats.py                37      4    89%   98-101
diffoscope/presenters/html/__init__.py           1      0   100%
diffoscope/presenters/html/html.py             455    126    72%   84-91, 131-134, 138, 140-142, 265-266, 269, 302, 330, 347-358, 408, 423, 440-444, 449, 456-462, 473, 478-497, 500-517, 545-548, 552-557, 560, 566-570, 594-602, 607-619, 624-641, 656, 676-679, 754, 789, 818, 834-836, 846-878, 896
diffoscope/presenters/html/templates.py          9      0   100%
diffoscope/presenters/icon.py                    1      0   100%
diffoscope/presenters/json.py                   32      1    97%   56
diffoscope/presenters/markdown.py               19      0   100%
diffoscope/presenters/restructuredtext.py       25      0   100%
diffoscope/presenters/text.py                   43      7    84%   62-67, 72-73, 82-83
diffoscope/presenters/utils.py                 156     12    92%   43, 72, 154, 159, 166, 308, 354, 420-425
diffoscope/profiling.py                         38      0   100%
diffoscope/progress.py                         164     16    90%   39-46, 72, 80-83, 86, 111, 218, 233-234, 242
diffoscope/readers/__init__.py                   7      0   100%
diffoscope/readers/json.py                      17      1    94%   34
diffoscope/readers/utils.py                      2      0   100%
diffoscope/tempfiles.py                         45     11    76%   56-57, 66-78
diffoscope/tools.py                             66     20    70%   26-27, 52-53, 63-64, 103, 116, 120-123, 129-130, 134-142
--------------------------------------------------------------------------
TOTAL                                         5986    787    87%
Coverage HTML written to dir htmlcov

=========================== short test summary info ============================
SKIP [1] .pybuild/cpython3_3.7/build/tests/test_presenters.py:89: requires 5.33 >= file >= 5.36 (5.37 detected)
SKIP [1] .pybuild/cpython3_3.7/build/tests/test_quines.py:55: requires 5.33 >= file >= 5.36 (5.37 detected)
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:111: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:123: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:134: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_cbfs.py:142: requires cbfstool
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_containers.py:68: requires 5.33 >= file >= 5.36 (5.37 detected)
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_containers.py:86: requires 5.33 >= file >= 5.36 (5.37 detected)
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_ffprobe.py:46: requires ffprobe
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_ffprobe.py:52: requires ffprobe
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_gzip.py:64: requires 5.33 >= file >= 5.36 (5.37 detected)
SKIP [1] /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/test_haskell.py:37: mismatch between system ghc and fixture
SKIP [1] /tmp/testrun/.pybuild/cpython3_3.7/build/tests/comparators/test_haskell.py:54: mismatch between system ghc and fixture
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_ipk.py:48: requires 5.33 >= file >= 5.36 (5.37 detected)
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_java.py:77: requires procyon
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_java.py:87: requires procyon
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_macho.py:50: requires otool and lipo
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_macho.py:58: requires otool and lipo
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_ogg.py:46: requires oggDump
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_ogg.py:52: requires oggDump
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_utils.py:49: requires
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_utils.py:54: requires /missing
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_wasm.py:47: requires wasm2wat
SKIP [1] .pybuild/cpython3_3.7/build/tests/comparators/test_wasm.py:54: requires wasm2wat
============== 2 failed, 398 passed, 26 skipped in 617.78 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 --junit-xml=/tmp/job-exports/test-results/tests.xml
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.7 returned exit code 13
make: *** [debian/rules:35: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed
'/chroots/chroot-run-sid.UAzdUWxHS//tmp/job-exports/test-results' -> '<https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/ws/job-exports/test-results'>
'/chroots/chroot-run-sid.UAzdUWxHS//tmp/job-exports/test-results/tests.xml' -> '<https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/ws/job-exports/test-results/tests.xml'>
Thu  1 Aug 00:34:52 UTC 2019 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-VLvLK8Fm, which will now be removed.
Build step 'Execute shell' marked build as failure



More information about the Qa-jenkins-scm mailing list