Debian Bug report logs - #911846
diffoscope: test failures in stretch-backports

version graph

Package: src:diffoscope; Maintainer for src:diffoscope is Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>;

Reported by: Mattia Rizzolo <mattia@debian.org>

Date: Thu, 25 Oct 2018 12:51:01 UTC

Severity: minor

Found in version diffoscope/104

Fixed in version diffoscope/105

Done: Mattia Rizzolo <mattia@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#911846; Package src:diffoscope. (Thu, 25 Oct 2018 12:51:03 GMT) (full text, mbox, link).


Message #3 received at submit@bugs.debian.org (full text, mbox, reply):

From: Mattia Rizzolo <mattia@debian.org>
To: submit@bugs.debian.org
Subject: diffoscope: test failures in stretch-backports
Date: Thu, 25 Oct 2018 14:47:08 +0200
[Message part 1 (text/plain, inline)]
Source: diffoscope
Version: 104
Severity: minor

Trying to build v104 in stretch-backports, one end up with this test
failure, introduced with the new ocaml comparator.

I just hope we won't need to do something like the haskell comparator,
which test basically never run... :(



=================================== FAILURES ===================================
__________________________________ test_diff ___________________________________

differences = []

    @skip_unless_tools_exist('ocamlobjinfo')
    def test_diff(differences):
        expected_diff = get_data('ocaml_expected_diff')
>       assert differences[0].unified_diff == expected_diff
E       IndexError: list index out of range

differences = []
expected_diff = '@@ -1,5 +1,14 @@\n Unit name: Uchar\n Interfaces imported:\n \t84838649f9351de166bfa8b9f2c84db4\tUchar\n \t07ea9e20ae...lib -safe-string -strict-formats -c uchar.mli\n+Load path: \n+cmt interface digest: 84838649f9351de166bfa8b9f2c84db4\n'

tests/comparators/test_ocaml.py:49: IndexError
__________________________ test_compare_non_existing ___________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e93627e80>
cmi1 = <<class 'abc.OcamlInterfaceFile'> /builds/reproducible-builds/diffoscope/tests/data/test1.cmi>

    @skip_unless_tools_exist('ocamlobjinfo')
    def test_compare_non_existing(monkeypatch, cmi1):
>       assert_non_existing(monkeypatch, cmi1, has_null_source=False)

cmi1       = <<class 'abc.OcamlInterfaceFile'> /builds/reproducible-builds/diffoscope/tests/data/test1.cmi>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e93627e80>

tests/comparators/test_ocaml.py:54:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e93627e80>
fixture = <<class 'abc.OcamlInterfaceFile'> /builds/reproducible-builds/diffoscope/tests/data/test1.cmi>
has_null_source = False, 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 /builds/reproducible-builds/diffoscope/tests/data/test1.cmi -- /nonexisting []>
fixture    = <<class 'abc.OcamlInterfaceFile'> /builds/reproducible-builds/diffoscope/tests/data/test1.cmi>
has_details = True
has_null_source = False
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e93627e80>

tests/utils/nonexisting.py:32: AssertionError
============== 2 failed, 377 passed, 30 skipped in 307.14 seconds ==============


-- 
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  `-
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#911846; Package src:diffoscope. (Thu, 25 Oct 2018 13:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>. (Thu, 25 Oct 2018 13:39:03 GMT) (full text, mbox, link).


Message #8 received at 911846@bugs.debian.org (full text, mbox, reply):

From: Chris Lamb <lamby@debian.org>
To: 911846@bugs.debian.org
Subject: Re: diffoscope: test failures in stretch-backports
Date: Thu, 25 Oct 2018 09:37:33 -0400
tags 911846 + pending
thanks

Fixed in Git, pending upload:

  https://salsa.debian.org/reproducible-builds/diffoscope/commit/554c9a20b9904ca27183688b2fc8c5775e9ce9cb

  tests/comparators/test_ocaml.py | 15 ++++++++++++---
  1 file changed, 12 insertions(+), 3 deletions(-)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-



Added tag(s) pending. Request was from Chris Lamb <lamby@debian.org> to control@bugs.debian.org. (Thu, 25 Oct 2018 13:39:04 GMT) (full text, mbox, link).


Reply sent to Mattia Rizzolo <mattia@debian.org>:
You have taken responsibility. (Thu, 08 Nov 2018 21:51:07 GMT) (full text, mbox, link).


Notification sent to Mattia Rizzolo <mattia@debian.org>:
Bug acknowledged by developer. (Thu, 08 Nov 2018 21:51:07 GMT) (full text, mbox, link).


Message #15 received at 911846-close@bugs.debian.org (full text, mbox, reply):

From: Mattia Rizzolo <mattia@debian.org>
To: 911846-close@bugs.debian.org
Subject: Bug#911846: fixed in diffoscope 105
Date: Thu, 08 Nov 2018 21:49:53 +0000
Source: diffoscope
Source-Version: 105

We believe that the bug you reported is fixed in the latest version of
diffoscope, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 911846@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mattia Rizzolo <mattia@debian.org> (supplier of updated diffoscope package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 08 Nov 2018 22:27:23 +0100
Source: diffoscope
Binary: diffoscope
Architecture: source
Version: 105
Distribution: unstable
Urgency: medium
Maintainer: Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>
Changed-By: Mattia Rizzolo <mattia@debian.org>
Description:
 diffoscope - in-depth comparison of files, archives, and directories
Closes: 911846 912756
Changes:
 diffoscope (105) unstable; urgency=medium
 .
   [ Chris Lamb ]
   * tests:
     + Prevent test failures when running under stretch-backports by checking
       the ocaml version number.  Closes: #911846
 .
   [ Mattia Rizzolo ]
   * debian: Reinstate apktool Build-Depends and Test-Depends.
   * Fix some flake8 and deprecation warnings.
 .
   [ Daniel Shahaf ]
   * comparators/pcap:
     + Fix recognition with the upcoming file(1) 5.35.  Closes: #912756
       Thanks to Christoph Biedl for the heads-up in advance.
 .
   [ Will Thompson ]
   * Add a new command line flag --list-missing-tools.  MR: !14
Checksums-Sha1:
 3a5e81aa4031f3f2c88d80e26dfe1980c59c0851 4496 diffoscope_105.dsc
 53a9a46ee9e664944e76a3cf5081c8a8abd21209 9270120 diffoscope_105.tar.xz
 6401f8ad31db4f39d04131ea8a91c1bb6c1ee820 22160 diffoscope_105_amd64.buildinfo
Checksums-Sha256:
 c55cc108e898aaac8fdfd13709a7dbb6d701b010d8c37af1e90baa49eb8cb9ac 4496 diffoscope_105.dsc
 0dc82b8192c2ef34e3a0904fb20c0eed8f95dc795db3cbe23e3e288ea8dd362b 9270120 diffoscope_105.tar.xz
 eac552b113dbb761e3976e20e05f24c708c50691ae9d973dadcf226a4e333e22 22160 diffoscope_105_amd64.buildinfo
Files:
 b969d6c60a843a375b8a60753eb3d98a 4496 devel optional diffoscope_105.dsc
 2ad34a8ff1387b54f3e6a45fd207bff9 9270120 devel optional diffoscope_105.tar.xz
 9a26fbf254000622b6a45248e614cc90 22160 devel optional diffoscope_105_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEi3hoeGwz5cZMTQpICBa54Yx2K60FAlvkrcoACgkQCBa54Yx2
K60jsw//Qyf2WvK5XYnn9g7xc/jT1r5c3WyMHoND6HKU0V8hWiskn1Z28typcz5v
J8cTk4IUBuJfipfpWSeSxHfq6JY+n7lRMBdTl9ieeObWwGlFTu32TvoqipgzeCQ3
Dmj7B0anWgGNxWyVYG0jHlBhYOIrSnH++6qNF/+VJRPhDtyK9tJ1LbQXoIcpxPbR
7rR2fncv6e7fVMiMrD07rp5D+WquL/rUXw9ixF4a1JQ2v5nE6HMLzZ6nm6Uh79Cm
wjLVU8PjJXkbjrxSmEgE7CiNvJWJ2IYIrRx+WS6IrSfX+GD9uw8q+7rvH6H4L5/q
3cqDCjTP9dULRNipLIYZkWu0a/pOPrJ3nt/1ln+FJKu37GJaEAPYYKUAl8cyrKMm
wnnQzcJ4I6GcWyaGTyGQTPp3QSBCuKCLFNJRdgBpGESOqfzxv1A/WpsZfL5bnhe/
oiATRu4AhJq8tFIC5ggDKDMNaWrxID4RgyGDCMRjk7U6jDAq++2no/rDDnOWOUk8
AYOL9wmiDmD2MkE5R7D9B+5bZOQRMfW+5UdQyDw7jD0uQ4KRhGnpS910/TbjU1vI
zqoTIl0Fo9y9g+jbMk04sD9BLCKaAqyfhsmlt/sWbqKJ1Baxks9oHfqKtYJeAvn3
/YHIi6W7pVKqgmJQ/tuq6iQ+9uv+GyeQsl4z06BOgAsYl9y4IyY=
=zN1g
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 07 Dec 2018 07:28:10 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 10:47:11 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.