Bug#1100712: diffoscope: pytest autopkgtest on s390x fails due to new src:file

Luca Boccassi bluca at debian.org
Tue Mar 18 11:02:34 GMT 2025


On Mon, 17 Mar 2025 17:55:32 +0000 Luca Boccassi <bluca at debian.org>
wrote:
> Source: diffoscope
> Version: 289
> 
> Dear Maintainer(s),
> 
> Since the upload of file/1:5.46-2 there is a test in the pytest suite
> that consistently fails on s390x:
> 
> https://qa.debian.org/excuses.php?package=file
> 
> 204s tests/test_quines.py:59: 
> 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ 
> 204s 
> 204s difference = <Difference filetype from file(1) -- filetype from
file(1) []>
> 204s filename = 'quine_expected_diff'
> 204s 
> 204s     def assert_diff(difference, filename):
> 204s         # Assign seen and expected values to local variables to
improve contextual
> 204s         # information in failed tests.
> 204s         seen = difference.unified_diff
> 204s         expected = get_data(filename)
> 204s >       assert seen == expected
> 204s E       AssertionError
> 204s 
> 204s difference = <Difference filetype from file(1) -- filetype from
file(1) []>
> 204s expected   = ('@@ -1 +1 @@\n'
> 204s  '-gzip compressed data, was "recursive", from FAT filesystem
(MS-DOS, OS/2, '
> 204s  'NT)\n'
> 204s  '+Zip archive data, made by v2.0, extract using at least v2.0,
last modified, '
> 204s  'last modified Sun, Mar 04 2010 00:24:16, uncompressed size
440, '
> 204s  'method=deflate\n')
> 204s filename   = 'quine_expected_diff'
> 204s seen       = ('@@ -1 +1 @@\n'
> 204s  '-gzip compressed data, was "recursive", from FAT filesystem
(MS-DOS, OS/2, '
> 204s  'NT)\n'
> 204s  '+Zip archive data, made by v2.0, extract using at least v2.0,
last modified, '
> 204s  'last modified Sun, Jan 28 2030 01:00:06, uncompressed size
440, '
> 204s  'method=deflate\n')
> 204s 
> 204s tests/utils/data.py:64: AssertionError
> 
> 
> I've re-run it a few times but no changes. Not sure if it's a genuine
> regression or just a test case that needs updating.
> 
> This is affecting other packages such as libzstd:
> 
> https://qa.debian.org/excuses.php?package=libzstd

The very first time this failed:

https://ci.debian.net/packages/d/diffoscope/testing/s390x/58769019/

This was triggered by the src:file upload, and still had libzstd 1.5.6,
proving that the issue is unrelated to src:libzstd, and most likely due
to src:file.



More information about the Reproducible-builds mailing list