Debian Bug report logs -
#849142
test regression in test_dex.test_differences with enjarify >= 1.0.3
Reported by: Levente Polyak <levente@leventepolyak.net>
Date: Thu, 22 Dec 2016 22:57:01 UTC
Severity: serious
Found in versions 65, diffoscope/63
Fixed in version diffoscope/66
Done: Chris Lamb <lamby@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#849142; Package diffoscope.
(Thu, 22 Dec 2016 22:57:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Levente Polyak <levente@leventepolyak.net>:
New Bug report received and forwarded. Copy sent to Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>.
(Thu, 22 Dec 2016 22:57:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: diffoscope
current version: git HEAD 8dde15f9200094882c26a1cf422556c43ec5d5dc
The test_differences test case fails in the test_dex module when using
enjarify 1.0.3. A downgrade of enjarify to 1.0.2 makes the test pass
again. As enjarify 1.0.3 itself seems to do what its supposed to do, i
think the test diff/output is just too strictly tied to the 1.0.2 output.
If the guess above is actually the case, a possible workaround may be to
expect enjarify to be 1.0.2 and skip the test otherwise.
However we start ending up with too many tests strictly tight to a very
specific toolset version, making a more general approach for multiple
sets more and more important.
cheers,
Levente
Logs:
=================================== FAILURES
===================================
_______________________________ test_differences
_______________________________
differences = [<Difference test1.jar -- test2.jar [<Difference zipinfo
-v {} -- zipinfo -v {} []>, <Difference com/example/MainActiv....class
[<Difference javap -verbose -constants -s -l -private {} -- javap
-verbose -constants -s -l -private {} []>]>]>]
@skip_unless_tools_exist('enjarify', 'zipinfo', 'javap')
@skip_unless_tool_is_at_least('javap', javap_version, '1.8')
def test_differences(differences):
assert differences[0].source1 == 'test1.jar'
assert differences[0].source2 == 'test2.jar'
zipinfo = differences[0].details[0]
classdiff = differences[0].details[1]
assert zipinfo.source1 == 'zipinfo -v {}'
assert zipinfo.source2 == 'zipinfo -v {}'
assert classdiff.source1 == 'com/example/MainActivity.class'
assert classdiff.source2 == 'com/example/MainActivity.class'
expected_diff = open(data('dex_expected_diffs')).read()
found_diff = zipinfo.unified_diff +
classdiff.details[0].unified_diff
> assert expected_diff == found_diff
E assert '@@ -54,15 +5...args_size=1\n' == '@@ -54,15
+54...args_size=1\n'
E Skipping 500 identical leading characters in diff, use -v to show
E Skipping 1284 identical trailing characters in diff, use -v to
show
E - fc227a58
E + bc28236e
E - + 32-bit CRC value (hex): 19c9f64e
E ? ^ ^ ^^^
E + + 32-bit CRC value (hex): 59c3af78
E ? ^ ^^ ^^
E compr
tests/comparators/test_dex.py:57: AssertionError
Information forwarded
to debian-bugs-dist@lists.debian.org, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#849142; Package diffoscope.
(Sat, 24 Dec 2016 17:39:04 GMT) (full text, mbox, link).
Message #8 received at 849142@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: severity -1 serious
Control: found -1 65
On Thu, Dec 22, 2016 at 11:53:04PM +0100, Levente Polyak wrote:
> current version: git HEAD 8dde15f9200094882c26a1cf422556c43ec5d5dc
>
> The test_differences test case fails in the test_dex module when using
> enjarify 1.0.3. A downgrade of enjarify to 1.0.2 makes the test pass
> again. As enjarify 1.0.3 itself seems to do what its supposed to do, i
> think the test diff/output is just too strictly tied to the 1.0.2 output.
And this now came into unstable too, and we're seeing that error in
buildds and in ci.d.n.
> If the guess above is actually the case, a possible workaround may be to
> expect enjarify to be 1.0.2 and skip the test otherwise.
> However we start ending up with too many tests strictly tight to a very
> specific toolset version, making a more general approach for multiple
> sets more and more important.
ISTR you mentioning a patch for that making the test compatible with
both versions, care to share? :)
--
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)]
Severity set to 'serious' from 'normal'
Request was from Mattia Rizzolo <mattia@debian.org>
to 849142-submit@bugs.debian.org.
(Sat, 24 Dec 2016 17:39:04 GMT) (full text, mbox, link).
Marked as found in versions 65.
Request was from Mattia Rizzolo <mattia@debian.org>
to 849142-submit@bugs.debian.org.
(Sat, 24 Dec 2016 17:39:04 GMT) (full text, mbox, link).
Reply sent
to Chris Lamb <lamby@debian.org>:
You have taken responsibility.
(Sat, 24 Dec 2016 19:51:06 GMT) (full text, mbox, link).
Notification sent
to Levente Polyak <levente@leventepolyak.net>:
Bug acknowledged by developer.
(Sat, 24 Dec 2016 19:51:06 GMT) (full text, mbox, link).
Message #17 received at 849142-close@bugs.debian.org (full text, mbox, reply):
Source: diffoscope
Source-Version: 66
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 849142@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Chris Lamb <lamby@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: SHA256
Format: 1.8
Date: Sat, 24 Dec 2016 19:18:30 +0000
Source: diffoscope
Binary: diffoscope
Architecture: source
Version: 66
Distribution: unstable
Urgency: medium
Maintainer: Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>
Changed-By: Chris Lamb <lamby@debian.org>
Description:
diffoscope - in-depth comparison of files, archives, and directories
Closes: 848049 849142
Changes:
diffoscope (66) unstable; urgency=medium
.
[ Chris Lamb ]
* Update dex_expected_diffs and test requirement to ensure test compatibility
with enjarify >= 1.0.3. (Closes: #849142)
* Print the detected version in @skip_unless_tool_is_at_least test utility.
.
[ Maria Glukhova ]
* Add detection of order-only difference in plain text format. (Closes: #848049)
.
[ anthraxx ]
* Add OpenSSH Arch package to Recommends.
Checksums-Sha1:
90f5202c59082bfa9f446c9cb61f785b82537c98 2923 diffoscope_66.dsc
a83d0ae72f61eeb2ac8166b313d7c0d38103f90c 315872 diffoscope_66.tar.xz
Checksums-Sha256:
7a5e88ce749f0b3169e2fdb46b3e6fd5c13df26d6e54762fb73deff281f3ee84 2923 diffoscope_66.dsc
fe41876d0c1889663b963090cc2f30d58e1afe8bb3a16e61118d6ad81deed3f4 315872 diffoscope_66.tar.xz
Files:
da0c63fe0280c90dd49ff0efb54903ea 2923 devel optional diffoscope_66.dsc
fbfb52a82f331a5bd8ebd6ebcbdb45f5 315872 devel optional diffoscope_66.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAlhezDEACgkQHpU+J9Qx
Hlg4XxAAwhkGTmPkmIEQ7Gph01RCKCjtkOdjagwDIPE3nBzp0NBjSksbyi8QkY4n
yfjk8bLjX01YRGegqaT0CXLtbsCjsTBabaKgh4X1mKn/51nghuOFChIeQRG/rsA0
/eYLAJAAQ/ag2siEiPoISa5YCWRNLYV8K0JUtJnEKCmqPvVxk5Q8zKFaJqUBO8QV
Om1rV1RBUGb863UUMpOYZCXkaN1gvtv+/u3l4yhr3SyV0cEquh5JiDMLcl27yAlB
7gDw4Nb5UuwkNTlUr+5Fkc5GsTeW3A9lsI61VEQPTqc7zwGRB5LjjMVr2+muGfjR
x9ZNtrDZozjwB/6ufnueVoPIE9sHv4IgXvyU5biSk19oN6ZXYHmw7ekZwXKyI7Rm
zGzfJIkIC7Fu4LL5bsUYD6atjQWpyxwvcFCVFv3wmAhN/sQsUs/V/ljUehfUTnEw
rOloYZdALE8E8TBTMpPXIAJNrnM73wMIOpI1wOrFgYYCTsaSVf/NTLzKZAm7FDXy
JWTM5UXeI8wDT30hvCQCFNxVgEMR3KeR3ipN/YqUWBdlilFU4WAEVlsdReV2PC9t
DpYF69VX0J7+UId+O8frmW9jDwyBpqR3TmnCmd9OL99Oozg595nL+rwX2ZLMCoFU
+m6nBaU9/Q/l8bEKcjnXoSncsbHtuJ0la4RqTr20opEiRLRSAQM=
=M1F+
-----END PGP SIGNATURE-----
Information forwarded
to debian-bugs-dist@lists.debian.org, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#849142; Package diffoscope.
(Sat, 24 Dec 2016 20:39:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Daniel Shahaf <danielsh@apache.org>:
Extra info received and forwarded to list. Copy sent to Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>.
(Sat, 24 Dec 2016 20:39:07 GMT) (full text, mbox, link).
Message #22 received at 849142@bugs.debian.org (full text, mbox, reply):
Chris Lamb wrote on Sat, Dec 24, 2016 at 18:57:38 +0000:
> @@ -30,6 +31,17 @@ from test_java import javap_version
> +def enjarify_version():
> + # Module enjarify.typeinference appeared in enjarify 1.0.3. We use a call
> + # directly to the python3 binary over importing with this module to escape
> + # virtualenvs, etc.
> + if subprocess.call(
> + ('python3', '-c', 'import enjarify.typeinference'),
Use sys.executable instead of hardcoding 'python3', to handle the case
that there's more than one python3 binary on the system?
(This would be correct for straight python3; is it also correct with
virtualenvs at play?)
Cheers,
Daniel
> + stderr=subprocess.PIPE,
> + ) == 0:
> + return '1.0.3'
> + return '1.0.2'
Information forwarded
to debian-bugs-dist@lists.debian.org, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#849142; Package diffoscope.
(Sat, 24 Dec 2016 22:36:02 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>.
(Sat, 24 Dec 2016 22:36:02 GMT) (full text, mbox, link).
Message #27 received at 849142@bugs.debian.org (full text, mbox, reply):
Daniel Shahaf wrote:
> > + if subprocess.call(
> > + ('python3', '-c', 'import enjarify.typeinference'),
>
> Use sys.executable instead of hardcoding 'python3', to handle the case
> that there's more than one python3 binary on the system?
I deliberately used python3 to match the behaviour of what the
/usr/bin/enjarify script does.
Besides, sys.executable could be the virtualenv's python which we don't
want to call :)
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Information forwarded
to debian-bugs-dist@lists.debian.org, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#849142; Package diffoscope.
(Sun, 25 Dec 2016 12:15:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Jérémy Bobbio <lunar@debian.org>:
Extra info received and forwarded to list. Copy sent to Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>.
(Sun, 25 Dec 2016 12:15:08 GMT) (full text, mbox, link).
Message #32 received at 849142@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Chris Lamb:
> Daniel Shahaf wrote:
>
> > > + if subprocess.call(
> > > + ('python3', '-c', 'import enjarify.typeinference'),
> >
> > Use sys.executable instead of hardcoding 'python3', to handle the case
> > that there's more than one python3 binary on the system?
>
> I deliberately used python3 to match the behaviour of what the
> /usr/bin/enjarify script does.
Guess it's worth adding a comment about it for future readers. :)
--
Lunar .''`.
lunar@debian.org : :Ⓐ : # apt-get install anarchism
`. `'`
`-
[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#849142; Package diffoscope.
(Sun, 25 Dec 2016 15:21:04 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>.
(Sun, 25 Dec 2016 15:21:04 GMT) (full text, mbox, link).
Message #37 received at 849142@bugs.debian.org (full text, mbox, reply):
Jérémy Bobbio wrote:
> > I deliberately used python3 to match the behaviour of what the
> > /usr/bin/enjarify script does.
>
> Guess it's worth adding a comment about it for future readers. :)
Excellent point; added in 53c649cef48de11e1584a09795ad890dcdb95eb4.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Marked as found in versions diffoscope/63.
Request was from Adrian Bunk <bunk@stusta.de>
to control@bugs.debian.org.
(Tue, 27 Dec 2016 23:03:05 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 01 Feb 2017 07:29:16 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 14:00:57 2023;
Machine Name:
bembo
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.