Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by Santiago Vila
Wed, 25 Nov 2026 13:10
Bug#1155259: diffoscope: FTBFS: E AssertionError
Author: Santiago Vila
Date: Wed, 25 Nov 2026 13:10
Date: Wed, 25 Nov 2026 13:10
244 lines
21234 bytes
21234 bytes
Package: src:diffoscope
Version: 339
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202611/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:diffoscope, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
def assert_diff_endswith(difference, filename):
haystack = difference.unified_diff
needle = get_data(filename)
> assert haystack.endswith(needle)
^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError
difference = <Difference ocamlobjinfo -- ocamlobjinfo []>
filename = 'ocaml_expected_diff'
haystack = ('@@ -1,6 +1,6 @@\n'
'-Unit name: Test1\n'
'+Unit name: Test2\n'
' Flags: [ Alerts _ ]\n'
' Interfaces imported:\n'
'-\t9a976a555caaf9bf38b2fa9d55b36743\tTest1\n'
'+\ta107df065c15f0f2aa531d4f69214d35\tTest2\n'
' \t42a1edbc6bc6dbbcc6b5a3283ab7eace\tStdlib\n'
' \tf9cffaf08a26afd0f40a6789c22e729d\tCamlinternalFormatBasics\n')
needle = (' Interfaces imported:\n'
'-\t351c2dc2fb4a56dac258b47c26262db6\tTest1\n'
'+\tac02205dc900024a67ede9f394c59d72\tTest2\n'
' \t8d797bdbce78b02196f5124ffdf821f4\tStdlib\n'
' \td36fdcde5aeb0f3274fcde2ca4b10edd\tCamlinternalFormatBasics\n')
tests/utils/data.py:76: AssertionError
=================================== XPASSES ====================================
================================ tests coverage ================================
_______________ coverage: platform linux, python 3.14.10-final-0 _______________
Name Stmts Miss Cover Missing
--------------------------------------------------------------------------
diffoscope/__init__.py 1 0 100%
diffoscope/changes.py 122 52 57% 84, 92, 95, 104, 111, 118, 139, 176, 182, 188, 194-198, 204, 210, 226-229, 232-235, 244, 256-288, 306-308, 313-316, 323, 335
diffoscope/comparators/__init__.py 47 13 72% 153-159, 164-173
diffoscope/comparators/android.py 43 1 98% 49
diffoscope/comparators/apk.py 193 119 38% 58, 63-144, 147, 152-154, 157, 160, 163-168, 171, 174-201, 204-210, 252, 263-266, 273-281, 296-319, 323-347, 351-365
diffoscope/comparators/ar.py 27 2 93% 48-49
diffoscope/comparators/arsc.py 38 15 61% 101, 112-113, 129-140
diffoscope/comparators/asar.py 34 15 56% 38-65, 68, 73, 78
diffoscope/comparators/berkeley_db.py 20 0 100%
diffoscope/comparators/binary.py 20 0 100%
diffoscope/comparators/binwalk.py 65 9 86% 35-36, 40-42, 80-81, 105-106
diffoscope/comparators/bzip2.py 25 0 100%
diffoscope/comparators/cbfs.py 89 1 99% 166
diffoscope/comparators/cpio.py 10 0 100%
diffoscope/comparators/deb.py 126 9 93% 37-39, 52, 77, 136, 189-191
diffoscope/comparators/debian.py 173 13 92% 26-30, 49, 96-98, 125-130, 198, 267-271, 291, 367
diffoscope/comparators/debian_fallback.py 17 0 100%
diffoscope/comparators/decompile.py 195 102 48% 38-39, 58-59, 62-67, 71, 74, 78, 86-97, 101-109, 116, 119, 122, 132-133, 137, 140, 143, 156-159, 165, 169, 175, 178, 181, 184, 187, 193-204, 207-212, 224-231, 234, 241, 245-249, 253, 257, 261-264, 268-279, 283-288, 311-331, 334, 340, 343, 346-347, 350-351
diffoscope/comparators/device.py 48 6 88% 48-51, 86-89
diffoscope/comparators/dex.py 53 14 74% 38, 70-75, 90, 94-106
diffoscope/comparators/directory.py 162 43 73% 41-44, 103-111, 117-120, 124-148, 178-179, 182, 185-206, 261, 276
diffoscope/comparators/docx.py 14 0 100%
diffoscope/comparators/dtb.py 14 0 100%
diffoscope/comparators/elf.py 352 41 88% 73, 78-79, 175-177, 218, 233, 240, 324, 327, 330, 338, 382, 404-406, 414, 426-428, 436, 468, 508-517, 522-523, 528-530, 535, 548, 559, 565, 578-582, 594-599, 688-691
diffoscope/comparators/ffprobe.py 27 0 100%
diffoscope/comparators/fit.py 57 2 96% 88, 118
diffoscope/comparators/fontconfig.py 27 0 100%
diffoscope/comparators/fonts.py 27 2 93% 55-56
diffoscope/comparators/fsimage.py 86 18 79% 34-36, 44, 51-52, 59-65, 69-71, 77, 82-83, 87, 132
diffoscope/comparators/gettext.py 37 0 100%
diffoscope/comparators/gif.py 42 4 90% 56-57, 100-101
diffoscope/comparators/git.py 29 0 100%
diffoscope/comparators/gnumeric.py 19 0 100%
diffoscope/comparators/gzip.py 29 1 97% 61
diffoscope/comparators/haskell.py 66 23 65% 37, 47, 85-87, 96, 102-109, 120-145, 155, 158
diffoscope/comparators/hdf.py 16 0 100%
diffoscope/comparators/html.py 27 4 85% 51-54
diffoscope/comparators/icc.py 14 0 100%
diffoscope/comparators/image.py 83 9 89% 131-132, 148-161, 180-181
diffoscope/comparators/ipk.py 4 0 100%
diffoscope/comparators/iso9660.py 49 19 61% 34, 39-40, 44-51, 54-56, 78, 88-102
diffoscope/comparators/java.py 58 8 86% 44, 47-49, 57-60
diffoscope/comparators/javascript.py 13 0 100%
diffoscope/comparators/json.py 60 10 83% 35-37, 55-56, 87, 96, 105-106, 114
diffoscope/comparators/kbx.py 18 1 94% 35
diffoscope/comparators/llvm.py 22 0 100%
diffoscope/comparators/lz4.py 28 0 100%
diffoscope/comparators/lzip.py 27 0 100%
diffoscope/comparators/lzma.py 25 0 100%
diffoscope/comparators/macho.py 305 60 80% 64, 67, 70, 93-95, 99, 103, 106, 110-113, 118, 123, 128, 133, 147-150, 154, 158, 161, 165-168, 173-174, 180, 183-184, 189-190, 212, 323, 327, 331-348, 365, 471, 494, 508-511, 537, 558-561, 581, 585, 624, 636-644
diffoscope/comparators/missing_file.py 55 4 93% 71, 74, 77, 95
diffoscope/comparators/mono.py 14 0 100%
diffoscope/comparators/nar.py 118 64 46% 56, 61, 64, 67, 70, 73, 76, 81-82, 86, 89, 102-105, 108-116, 119-130, 134, 143-151, 162-178, 200, 204-236
diffoscope/comparators/ocaml.py 19 0 100%
diffoscope/comparators/odt.py 33 6 82% 37, 46-47, 61-63
diffoscope/comparators/ogg.py 14 0 100%
diffoscope/comparators/openssh.py 14 0 100%
diffoscope/comparators/openssl.py 33 9 73% 60-79, 82-88
diffoscope/comparators/pcap.py 14 0 100%
diffoscope/comparators/pdf.py 104 24 77% 44-46, 54-63, 68-78, 116-123, 151, 181-183
diffoscope/comparators/pe32.py 18 5 72% 31, 41-44, 52
diffoscope/comparators/pgp.py 65 11 83% 84, 110-124
diffoscope/comparators/png.py 32 2 94% 78-79
diffoscope/comparators/ppu.py 57 16 72% 73, 85-98, 101-107
diffoscope/comparators/ps.py 25 2 92% 50-51
diffoscope/comparators/python.py 46 5 89% 56-58, 69-70
diffoscope/comparators/rdata.py 69 9 87% 92, 100-103, 108-111, 115, 188
diffoscope/comparators/rpm.py 81 1 99% 45
diffoscope/comparators/rpm_fallback.py 12 0 100%
diffoscope/comparators/rust.py 32 0 100%
diffoscope/comparators/sevenz.py 52 5 90% 63-64, 75, 98-99
diffoscope/comparators/socket_or_fifo.py 52 10 81% 45-63, 101
diffoscope/comparators/sphinx.py 25 2 92% 63-67
diffoscope/comparators/sqlite.py 14 0 100%
diffoscope/comparators/squashfs.py 204 34 83% 102, 120, 134, 142, 145, 159, 167, 193-194, 198-199, 205-206, 221, 235-247, 250-251, 254, 257, 286-287, 344, 360-362
diffoscope/comparators/symlink.py 33 2 94% 55-56
diffoscope/comparators/tar.py 160 53 67% 84-85, 89-92, 116, 125-126, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170-174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 204, 206, 208, 210, 212, 216, 218, 220-226, 228, 230, 232
diffoscope/comparators/text.py 33 2 94% 81-83
diffoscope/comparators/uimage.py 24 0 100%
diffoscope/comparators/uki.py 29 3 90% 50, 57-58
diffoscope/comparators/utils/__init__.py 0 0 100%
diffoscope/comparators/utils/archive.py 102 14 86% 67, 71, 75, 79, 125-126, 145, 148, 151, 160, 163, 170, 173, 178
diffoscope/comparators/utils/command.py 60 3 95% 66, 80, 108
diffoscope/comparators/utils/compare.py 104 12 88% 91, 111, 129-130, 146, 165-173
diffoscope/comparators/utils/container.py 131 13 90% 66, 70, 115-119, 196-199, 206-207, 219
diffoscope/comparators/utils/file.py 314 51 84% 39-40, 53-59, 80-99, 127, 133, 307-308, 363-365, 373-375, 379-381, 389, 393, 397, 401, 466-469, 511-514, 570-583, 602, 609, 632
diffoscope/comparators/utils/fuzzy.py 33 2 94% 27-28
diffoscope/comparators/utils/libarchive.py 201 37 82% 47-50, 54-57, 69-72, 76-79, 83-86, 90-93, 97-100, 137, 149-152, 187, 219, 227, 230, 243, 257, 262-263, 266, 269, 283-284, 315, 358-359, 382-398
diffoscope/comparators/utils/operation.py 26 6 77% 33, 40, 48, 55, 62, 66
diffoscope/comparators/utils/specialize.py 40 2 95% 108, 111
diffoscope/comparators/vmlinuz.py 16 3 81% 34-40, 48
diffoscope/comparators/wasm.py 19 0 100%
diffoscope/comparators/xar.py 68 45 34% 33-35, 38, 41, 44-65, 68-84, 98-100, 119-174
diffoscope/comparators/xml.py 65 12 82% 35-38, 46-61, 66, 103, 143, 195-196
diffoscope/comparators/xmlb.py 19 3 84% 31, 43, 46
diffoscope/comparators/xsb.py 17 0 100%
diffoscope/comparators/xz.py 45 0 100%
diffoscope/comparators/zip.py 201 11 95% 154, 177, 196, 199, 211, 236, 242, 294, 296, 310-311
diffoscope/comparators/zst.py 26 0 100%
diffoscope/config.py 50 4 92% 81-96
diffoscope/diff.py 444 60 86% 103, 140, 199, 237, 239, 283-286, 299-327, 409, 565-570, 589-590, 601, 618, 620, 624, 640, 645, 679-680, 683-684, 707-708, 711-721, 729-732, 742-745, 760
diffoscope/difference.py 233 13 94% 116, 229, 249, 284, 291-292, 311, 346-349, 380, 396, 402, 466
diffoscope/environ.py 13 0 100%
diffoscope/exc.py 21 0 100%
diffoscope/excludes.py 24 5 79% 31-36, 43-45
diffoscope/external_tools.py 4 0 100%
diffoscope/feeders.py 83 3 96% 36, 116-117
diffoscope/logging.py 28 4 86% 29-30, 35-36
diffoscope/main.py 293 71 76% 61-63, 67-69, 75, 452, 460-467, 479-483, 531, 571-616, 633, 688, 702-703, 725, 732-736, 743-744, 749, 754-762, 783, 785-788, 790-791, 796-802, 820
diffoscope/path.py 15 2 87% 30-31
diffoscope/presenters/__init__.py 0 0 100%
diffoscope/presenters/formats.py 43 4 91% 99-102
diffoscope/presenters/html/__init__.py 1 0 100%
diffoscope/presenters/html/html.py 472 125 74% 81-88, 142-145, 149, 151-153, 267-268, 271, 306, 330, 345-354, 413, 424, 437-441, 446, 453-460, 471, 476-488, 491-506, 537-540, 544-549, 552, 558-562, 587-596, 601-613, 618-632, 647, 667-670, 745, 747, 811, 827, 838-870, 888
diffoscope/presenters/html/templates.py 11 0 100%
diffoscope/presenters/icon.py 1 0 100%
diffoscope/presenters/json.py 32 1 97% 55
diffoscope/presenters/markdown.py 21 0 100%
diffoscope/presenters/restructuredtext.py 25 0 100%
diffoscope/presenters/text.py 44 7 84% 61-66, 71-72, 81-82
diffoscope/presenters/utils.py 165 14 92% 41, 70, 152, 157, 164, 309, 345, 356, 359, 424-429
diffoscope/profiling.py 47 3 94% 70-72
diffoscope/progress.py 182 21 88% 33-35, 44-51, 77, 88-89, 94, 119, 210, 229, 252-253, 264, 291-292
diffoscope/readers/__init__.py 9 0 100%
diffoscope/readers/json.py 17 1 94% 34
diffoscope/readers/utils.py 2 0 100%
diffoscope/tempfiles.py 57 9 84% 83-84, 99-105, 123-124
diffoscope/tools.py 97 16 84% 26-27, 98-99, 109-110, 149, 162, 167, 182-185, 195-198
diffoscope/utils.py 40 3 92% 45, 79-80
--------------------------------------------------------------------------
TOTAL 8525 1465 83%
Coverage HTML written to dir htmlcov
=========================== short test summary info ============================
SKIPPED [1] tests/comparators/test_apk.py:62: requires apktool; try installing apktool
SKIPPED [1] tests/comparators/test_apk.py:67: requires apktool; try installing apktool
SKIPPED [1] tests/comparators/test_apk.py:74: requires apktool; try installing apktool
SKIPPED [1] tests/comparators/test_apk.py:86: requires apktool; try installing apktool
SKIPPED [1] tests/comparators/test_apk.py:92: requires apktool; try installing apktool
SKIPPED [1] tests/comparators/test_apk.py:111: requires apktool; try installing apktool
SKIPPED [1] tests/comparators/test_arsc.py:53: requires aapt2; try installing aapt
SKIPPED [1] tests/comparators/test_arsc.py:60: requires aapt2; try installing aapt
SKIPPED [1] tests/comparators/test_asar.py:48: requires asar
SKIPPED [1] tests/comparators/test_berkeley_db.py:64: requires db_dump; try installing db-util >= 6.0; 5.3.28 detected
SKIPPED [1] tests/comparators/test_dex.py:88: requires javap; try installing default-jdk-headless | default-jdk | java-sdk min 9.0.4 >= 14.0; 25.0.5.1 detected
SKIPPED [1] tests/comparators/test_dex.py:96: requires dexdump; try installing dexdump and procyon; try installing procyon-decompiler
SKIPPED [1] tests/comparators/test_elf_decompiler.py:78: radare2 didn't recognize pdgj command
SKIPPED [1] tests/comparators/test_elf_decompiler.py:88: radare2 didn't recognize pdgj command
SKIPPED [1] tests/comparators/test_elf_decompiler.py:98: requires r2pipe Python module
SKIPPED [1] tests/comparators/test_fit.py:115: requires dumpimage; try installing u-boot-tools >= 2026.01; 2025.01 detected
SKIPPED [1] tests/comparators/test_haskell.py:34: mismatch between system ghc and fixture
SKIPPED [1] tests/comparators/test_haskell.py:51: mismatch between system ghc and fixture
SKIPPED [1] tests/comparators/test_ico_image.py:61: requires identify; try installing imagemagick min 6.9.10-23 >= 7.0.0; 7.1.2-36 detected
SKIPPED [1] tests/comparators/test_ico_image.py:69: requires identify; try installing imagemagick min 6.9.10-23 >= 7.0.0; 7.1.2-36 detected
SKIPPED [1] tests/comparators/test_iso9660.py:52: requires isoinfo; try installing genisoimage
SKIPPED [1] tests/comparators/test_iso9660.py:61: requires isoinfo; try installing genisoimage
SKIPPED [1] tests/comparators/test_iso9660.py:70: requires isoinfo; try installing genisoimage
SKIPPED [1] tests/comparators/test_iso9660.py:77: requires isoinfo; try installing genisoimage
SKIPPED [1] tests/comparators/test_iso9660.py:85: requires isoinfo; try installing genisoimage
SKIPPED [1] tests/comparators/test_java.py:80: requires procyon; try installing procyon-decompiler
SKIPPED [1] tests/comparators/test_java.py:85: requires javap; try installing default-jdk-headless | default-jdk | java-sdk min 9.0.4 >= 14.0; 25.0.5.1 detected
SKIPPED [1] tests/comparators/test_java.py:101: requires procyon; try installing procyon-decompiler
SKIPPED [1] tests/comparators/test_jpeg_image.py:76: requires identify; try installing imagemagick min 6.9.6 >= 7.0.0; 7.1.2-36 detected
SKIPPED [1] tests/comparators/test_jpeg_image.py:84: requires convert; try installing imagemagick min 6.9.6 >= 7.0.0; 7.1.2-36 detected
SKIPPED [1] tests/comparators/test_macho.py:58: requires otool and lipo
SKIPPED [1] tests/comparators/test_macho.py:66: requires otool and lipo
SKIPPED [1] tests/comparators/test_macho_decompiler.py:86: radare2 didn't recognize pdgj command
SKIPPED [1] tests/comparators/test_macho_decompiler.py:96: radare2 didn't recognize pdgj command
SKIPPED [1] tests/comparators/test_macho_decompiler.py:109: requires r2pipe Python module
SKIPPED [1] tests/comparators/test_nar.py:56: requires guix; try installing guix
SKIPPED [1] tests/comparators/test_nar.py:65: requires guix; try installing guix
SKIPPED [1] tests/comparators/test_nar.py:70: requires guix; try installing guix
SKIPPED [1] tests/comparators/test_nar.py:78: requires guix; try installing guix
SKIPPED [1] tests/comparators/test_nar.py:85: requires guix; try installing guix
SKIPPED [1] tests/comparators/test_openssh_pub_key.py:75: requires ssh-keygen; try installing openssh-client <= 9.7p1; 10.6p2 detected
SKIPPED [1] tests/comparators/test_utils.py:47: Skipped
SKIPPED [1] tests/comparators/test_utils.py:52: requires /missing
XPASS tests/comparators/test_dex.py::test_compare_non_existing
======= 1 failed, 758 passed, 43 skipped, 1 xpassed in 111.15s (0:01:51) =======
E: pybuild pybuild:485: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest -vv -r sxX -l --cov=diffoscope --cov-report=term-missing --cov-report=html
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.15 3.14" --parallel=2 returned exit code 13
make: *** [debian/rules:35: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Bug#1155259: diffoscope: FTBFS: E AssertionError
Author: Chris Lamb
Date: Wed, 25 Nov 2026 20:40
Date: Wed, 25 Nov 2026 20:40
19 lines
3342 bytes
3342 bytes
tags 1155259 + pending
thanks
Fixed in Git, pending upload:
https://salsa.debian.org/reproducible-builds/diffoscope/commit/a157cc4aae54baab66f38639e3afd949305b23c3
tests/comparators/test_ocaml.py | 2 +-
tests/data/ocaml_expected_diff | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads