[Python-apps-team] Bug#946178: mercurial: FTBFS on hurd-i386: Testsuite failures

Paul Sonnenschein paul at sonnenschein.ruhr
Wed Dec 4 20:45:14 GMT 2019


Source: mercurial
Severity: important
Version: 5.2-1
User: debian-hurd at lists.debian.org
Usertags: hurd
X-Debbugs-CC: debian-hurd at lists.debian.org

Hello,

mercurial fails to build from source on hurd-i386 due to five failing
tests.

Of these tests, four fail due to unexpected error numbers.
This should be fixed in mercurial, because error numbers are not
standardized.

The test-http-bad-server.t fails due to an unexpected behaviour of
local sockets in the Hurd. This seems to be a bug in the Hurd itself
(pflocal specifically), being in violation of the POSIX specification
Issue 6 and newer.
This could be fixed by
 * Fixing the Hurd itself
 * Making the test more permissive
 * Blacklisting the test

The attached patch replaces the error number in the offending tests
with a * glob.

Thanks!


Excerpts from build log [0]:
> test-http-bad-server.t
> test-http-bad-server.t ... # Test test-http-bad-server.t 
> # Running sh "/tmp/hgtests.7iB8Fk/child58/test-http-bad-server.t.sh" 
> 
> --- /<<PKGBUILDDIR>>/tests/test-http-bad-server.t
> +++ /<<PKGBUILDDIR>>/tests/test-http-bad-server.t.err
> @@ -38,7 +38,7 @@
>    $ cat hg.pid > $DAEMON_PIDS
>  
>    $ hg clone http://localhost:$HGPORT/ clone
> -  abort: error: (\$ECONNRESET\$|\$EADDRNOTAVAIL\$) (re)
> +  abort: error: bad HTTP status line: No status line received - the
> server has closed the connection
>    [255]
>  
>  (The server exits on its own, but there is a race between that and
> starting a new server.
> 
> ERROR: test-http-bad-server.t output changed
> !# Ret was: 0 (test-http-bad-server.t) 

> test-lfs.t
> test-lfs.t ... # Test test-lfs.t 
> # Running sh "/tmp/hgtests.7iB8Fk/child104/test-lfs.t.sh" 
> 
> --- /<<PKGBUILDDIR>>/tests/test-lfs.t
> +++ /<<PKGBUILDDIR>>/tests/test-lfs.t.err
> @@ -40,7 +40,7 @@
>    > EOF
>  
>    $ hg config extensions
> -  *** failed to import extension lfs from missing.py: [Errno 2]
> $ENOENT$: 'missing.py'
> +  *** failed to import extension lfs from missing.py: [Errno
> 1073741826] $ENOENT$: 'missing.py'
>    abort: repository requires features unknown to this Mercurial:
> lfs!
>    (see https://mercurial-scm.org/wiki/MissingRequirement for more
> information)
>    [255]
> 
> ERROR: test-lfs.t output changed
> !# Ret was: 0 (test-lfs.t)

(Analogous failures exist for test-largefiles-misc.t, test-lfs-serve-
access.t and test-repair-strip.t)


[0]: 
https://buildd.debian.org/status/fetch.php?pkg=mercurial&arch=hurd-i386&ver=5.2-1&stamp=1573130161&raw=0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mercurial-hurd-errno-test-failures.patch
Type: text/x-patch
Size: 4769 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-apps-team/attachments/20191204/d68b6850/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/python-apps-team/attachments/20191204/d68b6850/attachment.sig>


More information about the Python-apps-team mailing list