From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:57280) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnQaZ-0004Ph-Ey for guix-patches@gnu.org; Tue, 16 Jul 2019 12:46:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnQaY-0004Zm-63 for guix-patches@gnu.org; Tue, 16 Jul 2019 12:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnQaY-0004Ze-0G for guix-patches@gnu.org; Tue, 16 Jul 2019 12:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnQaX-0006L6-Ku for guix-patches@gnu.org; Tue, 16 Jul 2019 12:46:01 -0400 Subject: [bug#36692] test failures Resent-Message-ID: From: Marius Bakke In-Reply-To: <7CE61390-AB3B-42B9-B453-3C9D1FDD10D2@vllmrt.net> References: <20190716154734.22605-1-rob@vllmrt.net> <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> <87tvbm54gm.fsf@devup.no> <7CE61390-AB3B-42B9-B453-3C9D1FDD10D2@vllmrt.net> Date: Tue, 16 Jul 2019 18:45:31 +0200 Message-ID: <87o91u53o4.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Robert Vollmert Cc: 36692@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Robert Vollmert writes: >> On 16. Jul 2019, at 18:28, Marius Bakke wrote: >>=20 >> Robert Vollmert writes: >>=20 >>> I was able to run both tests from the build directory in /tmp, >>> and they both passed fine. Also they both involve user ids, I >>> suspect those might differ in the build container? >>>=20 >>> main =3D do >>> void $ forkIO $ forever $ getGroupEntryForID 0 >>> void $ forkIO $ forever $ getGroupEntryForID 0 >>> threadDelay (3*1000*1000) >>>=20 >>> main =3D do >>> root <- getUserEntryForName "root" >>> putStrLn (ue2String root) >>> root' <- getUserEntryForID (userID root) >>> putStrLn (ue2String root') >>> if homeDirectory root =3D=3D homeDirectory root' && >>> userShell root =3D=3D userShell root' >>> then putStrLn "OK" >>> else putStrLn =E2=80=9CMismatch" >>=20 >> The only reliable user ID available in the build container is 'nobody' >> with UID and GID 65534 and the (see nix/libstore/build.cc:1862). >>=20 >> You can likely patch these tests to refer to that instead. > > Thanks, I=E2=80=99ll give that a shot! > > > There=E2=80=99s something I don=E2=80=99t understand: Comments above the = definition > of ghc-7 mention test failures, particularly one of these (posix010): > > ;; - Test posix010 tries to check the existence of a user on the system: > ;; getUserEntryForName: does not exist (no such user) > > But I don=E2=80=99t see any place in the definitions of any of the GHC pa= ckages > (ghc-7, ghc-8.0, ghc-8.4) that patch any tests out, and tests aren=E2=80= =99t > disabled either. So how can these packages apparently be fine? It looks like failing tests don't cause these builds to fail for some reason. Here is an excerpt from the GHC 7 build log on 'core-updates' [0]: Unexpected results from: TEST=3D"T8108 process002 process001 posix010 exec_signals T9203 T9961 parsi= ng001 haddock.base" OVERALL SUMMARY for test run started at Wed Jul 10 09:03:57 2019 UTC 0:59:45 spent to go through 4434 total tests, which gave rise to 17996 test cases, of which 13907 were skipped 49 had missing libraries 3989 expected passes 42 expected failures 1 caused framework failures 0 unexpected passes 5 unexpected failures 4 unexpected stat failures Unexpected failures: ../../libraries/process/tests process001 [bad exit code] (normal) ../../libraries/process/tests process002 [bad exit code] (normal) ../../libraries/unix/tests T8108 [bad stderr] (normal) ../../libraries/unix/tests/libposix posix010 [bad exit code] (normal) rts exec_signals [bad exit code] (norma= l) Unexpected stat failures: perf/compiler T9961 [stat not good enough] (normal) perf/compiler parsing001 [stat too good] (normal) perf/haddock haddock.base [stat too good] (normal) perf/should_run T9203 [stat too good] (normal) make[2]: Leaving directory '/tmp/guix-build-ghc-7.10.2.drv-0/ghc-7.10.2/tes= tsuite/tests' make[1]: Leaving directory '/tmp/guix-build-ghc-7.10.2.drv-0/ghc-7.10.2/tes= tsuite/tests' phase `check' succeeded after 3588.0 seconds [0]: https://ci.guix.gnu.org/log/42f20g43jaxs27jd407wn6fad9cpwjf7-ghc-7.10.2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0t/ysACgkQoqBt8qM6 VPqTCQgAgs8QINEvfBdfW6aXzqnzs1DihHyq4GQpK1C1KjD8lQQhU9Gx6U3ysI56 SqIAjPCr0odOAeEQXjymcbmidfDPkzl6Q/qp6WnP52yEwq99oHcyhKeTe1g+HF2X 8x0uriQP8TfdE5mgeXQnXdWcZg+9vr0aZmVVDcRdRsAd4CdkB9QAJLXALtnOqzND 0r8Vnl/77m/tzJNEwjo5dUsSh/ZENYD8YRqLxuQSZV7FTA8HZBA2AoSf3PwiOtTm ahAIVk+yKLniRhgnndYykAstK1fEh+iqOf4rDNkP5Z3Aqz9pamdYUNhWfadlhbxQ neoK9as6e6uoC7SzjIfTeAjWRGAkmw== =igMk -----END PGP SIGNATURE----- --=-=-=--