From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:52285) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnQK8-0000dU-Un for guix-patches@gnu.org; Tue, 16 Jul 2019 12:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnQK7-00011G-W4 for guix-patches@gnu.org; Tue, 16 Jul 2019 12:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnQK7-00010s-Q7 for guix-patches@gnu.org; Tue, 16 Jul 2019 12:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnQK5-0005ol-VO for guix-patches@gnu.org; Tue, 16 Jul 2019 12:29:03 -0400 Subject: [bug#36692] test failures Resent-Message-ID: From: Marius Bakke In-Reply-To: <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> References: <20190716154734.22605-1-rob@vllmrt.net> <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> Date: Tue, 16 Jul 2019 18:28:25 +0200 Message-ID: <87tvbm54gm.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 , 36692@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Robert Vollmert writes: > 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? > > main =3D do > void $ forkIO $ forever $ getGroupEntryForID 0 > void $ forkIO $ forever $ getGroupEntryForID 0 > threadDelay (3*1000*1000) > > 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" 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). You can likely patch these tests to refer to that instead. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0t+ykACgkQoqBt8qM6 VPon2Qf+Nk2Qynzdye1whkGHoUtpnMlAJloOMWn9STaG7c64My3WdaiVHtudWVXN sORQHwpReY3JwifL0ZgpTS1j+8j7RrlEG9G+I9kfbQb0y6qQF+hn66cu1H6Szq5y eW6TFqPRf4HP9tf7mhqERVuHXD63pmIht0/XNkOCtuBPPP+pf1cmlVXf3u3rcKvF bsco+RgFZL1YyLxlNLtTqq54OLWoZPZaUg+2Y4KEXhSwCnXylSlmF7EEgSBlVlwf hQOk6pcxjxwjjr9qbWuKI/QxmMzL9inScqp8ojj5JLQLJkI9kQEjI72xCfOViFpA 52X47U532BPEDz5nPwvc7v/ZoV/R6g== =/6Yt -----END PGP SIGNATURE----- --=-=-=--