Bug#854745: diffoscope: autopkgtest failures
Mattia Rizzolo
mattia at debian.org
Fri Feb 10 00:30:24 UTC 2017
Source: diffoscope
Version: 65
Severity important
https://ci.debian.net/data/packages/unstable/amd64/d/diffoscope/20170209_233402.autopkgtest.log.gz
adt-run [23:40:53]: test command1: debian/tests/pytest
adt-run [23:40:53]: test command1: [-----------------------
============================= test session starts ==============================
platform linux -- Python 3.5.3, pytest-3.0.6, py-1.4.32, pluggy-0.4.0 -- /usr/bin/python3
cachedir: .cache
rootdir: /tmp/autopkgtest-virt-lxc.shared.f_roa_k1/downtmp/autopkgtest_tmp, inifile:
collecting ... collected 286 items
...
=========================== short test summary info ============================
FAIL tests/comparators/test_debian.py::test_dot_changes_invalid
FAIL tests/comparators/test_debian.py::test_dot_changes_no_differences_exclude_buildinfo
FAIL tests/comparators/test_debian.py::test_dot_changes_identical_contents_and_different_files
FAIL tests/comparators/test_debian.py::test_dot_changes_different_contents_and_identical_files
FAIL tests/comparators/test_debian.py::test_dot_dsc_invalid
FAIL tests/comparators/test_debian.py::test_dot_dsc_internal_diff
FAIL tests/comparators/test_debian.py::test_dot_dsc_compare_non_existing
FAIL tests/comparators/test_debian.py::test_dot_buildinfo_invalid
FAIL tests/comparators/test_debian.py::test_dot_buildinfo_internal_diff
FAIL tests/comparators/test_debian.py::test_dot_buildinfo_compare_non_existing
FAIL tests/comparators/test_elf.py::test_differences_with_dbgsym
...
=================================== FAILURES ===================================
___________________________ test_dot_changes_invalid ___________________________
tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_dot_changes_invalid0')
@skip_unless_module_exists('debian.deb822')
def test_dot_changes_invalid(tmpdir):
tmpdir.mkdir('a')
dot_changes_path = str(tmpdir.join('a/test_1.changes'))
shutil.copy(TEST_DOT_CHANGES_FILE1_PATH, dot_changes_path)
# we don't copy the referenced .deb
identified = specialize(FilesystemFile(dot_changes_path))
> assert not isinstance(identified, DotChangesFile)
E assert not True
E + where True = isinstance(<<class 'abc.DotChangesFile'> /tmp/pytest-of-debci/pytest-0/test_dot_changes_invalid0/a/test_1.changes>, DotChangesFile)
dot_changes_path = '/tmp/pytest-of-debci/pytest-0/test_dot_changes_invalid0/a/test_1.changes'
identified = <<class 'abc.DotChangesFile'> /tmp/pytest-of-debci/pytest-0/test_dot_changes_invalid0/a/test_1.changes>
tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_dot_changes_invalid0')
tests/comparators/test_debian.py:96: AssertionError
______________ test_dot_changes_no_differences_exclude_buildinfo _______________
dot_changes1 = <<class 'abc.DotChangesFile'> /tmp/pytest-of-debci/pytest-0/test_dot_changes_no_difference1/a/test_1.changes>
dot_changes3 = <<class 'abc.DotChangesFile'> /tmp/pytest-of-debci/pytest-0/test_dot_changes_no_difference1/c/test_3.changes>
@skip_unless_module_exists('debian.deb822')
def test_dot_changes_no_differences_exclude_buildinfo(dot_changes1, dot_changes3):
difference = dot_changes1.compare(dot_changes3)
> assert difference is None
E assert <Difference /tmp/pytest-of-debci/pytest-0/test_dot_changes_no_difference1/a/test_1.changes -- /tmp/pytest-of-debci/pytest-0/test_dot_changes_no_difference1/c/test_3.changes []> is None
difference = <Difference /tmp/pytest-of-debci/pytest-0/test_dot_changes_no_difference1/a/test_1.changes -- /tmp/pytest-of-debci/pytest-0/test_dot_changes_no_difference1/c/test_3.changes []>
dot_changes1 = <<class 'abc.DotChangesFile'> /tmp/pytest-of-debci/pytest-0/test_dot_changes_no_difference1/a/test_1.changes>
dot_changes3 = <<class 'abc.DotChangesFile'> /tmp/pytest-of-debci/pytest-0/test_dot_changes_no_difference1/c/test_3.changes>
tests/comparators/test_debian.py:126: AssertionError
___________ test_dot_changes_identical_contents_and_different_files ____________
dot_changes_differences_identical_contents_and_different_files = []
@skip_unless_module_exists('debian.deb822')
def test_dot_changes_identical_contents_and_different_files(dot_changes_differences_identical_contents_and_different_files):
> assert dot_changes_differences_identical_contents_and_different_files[0]
E IndexError: list index out of range
dot_changes_differences_identical_contents_and_different_files = []
tests/comparators/test_debian.py:130: IndexError
___________ test_dot_changes_different_contents_and_identical_files ____________
dot_changes_differences_different_contents_and_identical_files = []
@skip_unless_module_exists('debian.deb822')
def test_dot_changes_different_contents_and_identical_files(dot_changes_differences_different_contents_and_identical_files):
> assert dot_changes_differences_different_contents_and_identical_files[0]
E IndexError: list index out of range
dot_changes_differences_different_contents_and_identical_files = []
tests/comparators/test_debian.py:136: IndexError
_____________________________ test_dot_dsc_invalid _____________________________
tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_dot_dsc_invalid0')
dot_dsc2 = <<class 'abc.DotDscFile'> /tmp/pytest-of-debci/pytest-0/test_dot_dsc_invalid0/b/test_1.dsc>
@skip_unless_module_exists('debian.deb822')
def test_dot_dsc_invalid(tmpdir, dot_dsc2):
tmpdir.mkdir('a')
dot_dsc_path = str(tmpdir.join('a/test_1.dsc'))
shutil.copy(TEST_DOT_CHANGES_FILE1_PATH, dot_dsc_path)
# we don't copy the referenced .tar.gz
identified = specialize(FilesystemFile(dot_dsc_path))
> assert not isinstance(identified, DotDscFile)
E assert not True
E + where True = isinstance(<<class 'abc.DotDscFile'> /tmp/pytest-of-debci/pytest-0/test_dot_dsc_invalid0/a/test_1.dsc>, DotDscFile)
dot_dsc2 = <<class 'abc.DotDscFile'> /tmp/pytest-of-debci/pytest-0/test_dot_dsc_invalid0/b/test_1.dsc>
dot_dsc_path = '/tmp/pytest-of-debci/pytest-0/test_dot_dsc_invalid0/a/test_1.dsc'
identified = <<class 'abc.DotDscFile'> /tmp/pytest-of-debci/pytest-0/test_dot_dsc_invalid0/a/test_1.dsc>
tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_dot_dsc_invalid0')
tests/comparators/test_debian.py:175: AssertionError
__________________________ test_dot_dsc_internal_diff __________________________
dot_dsc_differences = []
@skip_unless_module_exists('debian.deb822')
def test_dot_dsc_internal_diff(dot_dsc_differences):
> assert dot_dsc_differences[1].source1 == 'test_1.tar.gz'
E IndexError: list index out of range
dot_dsc_differences = []
tests/comparators/test_debian.py:188: IndexError
______________________ test_dot_dsc_compare_non_existing _______________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fad49304e10>
dot_dsc1 = <<class 'abc.DotDscFile'> /tmp/pytest-of-debci/pytest-0/test_dot_dsc_compare_non_exist0/a/test_1.dsc>
@skip_unless_module_exists('debian.deb822')
def test_dot_dsc_compare_non_existing(monkeypatch, dot_dsc1):
monkeypatch.setattr(Config(), 'new_file', True)
difference = dot_dsc1.compare(MissingFile('/nonexisting', dot_dsc1))
assert difference.source2 == '/nonexisting'
> assert difference.details[-1].source2 == '/dev/null'
E IndexError: list index out of range
difference = <Difference /tmp/pytest-of-debci/pytest-0/test_dot_dsc_compare_non_exist0/a/test_1.dsc -- /nonexisting []>
dot_dsc1 = <<class 'abc.DotDscFile'> /tmp/pytest-of-debci/pytest-0/test_dot_dsc_compare_non_exist0/a/test_1.dsc>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fad49304e10>
tests/comparators/test_debian.py:195: IndexError
__________________________ test_dot_buildinfo_invalid __________________________
tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_dot_buildinfo_invalid0')
@skip_unless_module_exists('debian.deb822')
def test_dot_buildinfo_invalid(tmpdir):
tmpdir.mkdir('a')
dot_buildinfo_path = str(tmpdir.join('a/test_1.buildinfo'))
shutil.copy(TEST_DOT_BUILDINFO_FILE1_PATH, dot_buildinfo_path)
# we don't copy the referenced .deb
identified = specialize(FilesystemFile(dot_buildinfo_path))
> assert not isinstance(identified, DotBuildinfoFile)
E assert not True
E + where True = isinstance(<<class 'abc.DotBuildinfoFile'> /tmp/pytest-of-debci/pytest-0/test_dot_buildinfo_invalid0/a/test_1.buildinfo>, DotBuildinfoFile)
dot_buildinfo_path = '/tmp/pytest-of-debci/pytest-0/test_dot_buildinfo_invalid0/a/test_1.buildinfo'
identified = <<class 'abc.DotBuildinfoFile'> /tmp/pytest-of-debci/pytest-0/test_dot_buildinfo_invalid0/a/test_1.buildinfo>
tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_dot_buildinfo_invalid0')
tests/comparators/test_debian.py:226: AssertionError
_______________________ test_dot_buildinfo_internal_diff _______________________
dot_buildinfo_differences = []
@skip_unless_module_exists('debian.deb822')
def test_dot_buildinfo_internal_diff(dot_buildinfo_differences):
> assert dot_buildinfo_differences[1].source1 == 'test_1_all.deb'
E IndexError: list index out of range
dot_buildinfo_differences = []
tests/comparators/test_debian.py:239: IndexError
___________________ test_dot_buildinfo_compare_non_existing ____________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fad4939bd30>
dot_buildinfo1 = <<class 'abc.DotBuildinfoFile'> /tmp/pytest-of-debci/pytest-0/test_dot_buildinfo_compare_non0/a/test_1.buildinfo>
@skip_unless_module_exists('debian.deb822')
def test_dot_buildinfo_compare_non_existing(monkeypatch, dot_buildinfo1):
> assert_non_existing(monkeypatch, dot_buildinfo1)
dot_buildinfo1 = <<class 'abc.DotBuildinfoFile'> /tmp/pytest-of-debci/pytest-0/test_dot_buildinfo_compare_non0/a/test_1.buildinfo>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fad4939bd30>
tests/comparators/test_debian.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fad4939bd30>
fixture = <<class 'abc.DotBuildinfoFile'> /tmp/pytest-of-debci/pytest-0/test_dot_buildinfo_compare_non0/a/test_1.buildinfo>
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/pytest-of-debci/pytest-0/test_dot_buildinfo_compare_non0/a/test_1.buildinfo -- /nonexisting []>
fixture = <<class 'abc.DotBuildinfoFile'> /tmp/pytest-of-debci/pytest-0/test_dot_buildinfo_compare_non0/a/test_1.buildinfo>
has_details = True
has_null_source = True
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fad4939bd30>
tests/comparators/utils/nonexisting.py:32: AssertionError
_________________________ test_differences_with_dbgsym _________________________
dbgsym_differences = <Difference /tmp/autopkgtest-virt-lxc.shared.f_roa_k1/downtmp/autopkgtest_tmp/tests/comparators/../data/dbgsym/add/tes...-wide --decompress --hex-dump=.gnu_debuglink {} -- readelf --wide --decompress --hex-dump=.gnu_debuglink {} []>]>]>]>]>
@skip_unless_tools_exist('readelf', 'objdump', 'objcopy')
@skip_if_binutils_does_not_support_x86()
@skip_unless_module_exists('debian.deb822')
def test_differences_with_dbgsym(dbgsym_differences):
assert dbgsym_differences.details[2].source1 == 'data.tar.xz'
bin_details = dbgsym_differences.details[2].details[0].details[0]
assert bin_details.source1 == './usr/bin/test'
assert bin_details.details[1].source1.startswith('objdump')
> assert 'test-cases/dbgsym/package/test.c:2' in bin_details.details[1].unified_diff
E assert 'test-cases/dbgsym/package/test.c:2' in '@@ -1,14 +1,14 @@\n \n \n \n Disassembly of section .text:\n \n 0000000000400400 <.text>:\n- 400400:\t8d 47 2a ...\n 40040d:\t48 83 e4 f0 \tand $0xfffffffffffffff0,%rsp\n 400411:\t50 \tpush %rax\n'
E + where '@@ -1,14 +1,14 @@\n \n \n \n Disassembly of section .text:\n \n 0000000000400400 <.text>:\n- 400400:\t8d 47 2a ...\n 40040d:\t48 83 e4 f0 \tand $0xfffffffffffffff0,%rsp\n 400411:\t50 \tpush %rax\n' = <Difference objdump --line-numbers --disassemble --demangle --section=.text {} -- objdump --line-numbers --disassemble --demangle --section=.text {} []>.unified_diff
bin_details = <Difference ./usr/bin/test -- ./usr/bin/test [<Difference readelf --wide --notes {} -- readelf --wide --notes {} []>, ...delf --wide --decompress --hex-dump=.gnu_debuglink {} -- readelf --wide --decompress --hex-dump=.gnu_debuglink {} []>]>
dbgsym_differences = <Difference /tmp/autopkgtest-virt-lxc.shared.f_roa_k1/downtmp/autopkgtest_tmp/tests/comparators/../data/dbgsym/add/tes...-wide --decompress --hex-dump=.gnu_debuglink {} -- readelf --wide --decompress --hex-dump=.gnu_debuglink {} []>]>]>]>]>
tests/comparators/test_elf.py:129: AssertionError
============== 11 failed, 184 passed, 91 skipped in 60.15 seconds ==============
adt-run [23:41:54]: test command1: -----------------------]
adt-run [23:41:54]: test command1: - - - - - - - - - - results - - - - - - - - - -
command1 FAIL non-zero exit status 1
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20170210/c376bef7/attachment.sig>
More information about the Reproducible-builds
mailing list