GNU bug report logs - #35047
"Running the Test Suite" root user

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: mikadoZero <mikadozero@HIDDEN>; dated Sat, 30 Mar 2019 12:50:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 35047 <at> debbugs.gnu.org:


Received: (at 35047) by debbugs.gnu.org; 30 Mar 2019 15:31:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 30 11:31:44 2019
Received: from localhost ([127.0.0.1]:37525 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hAFxQ-0004Oy-H4
	for submit <at> debbugs.gnu.org; Sat, 30 Mar 2019 11:31:44 -0400
Received: from forward103j.mail.yandex.net ([5.45.198.246]:46394)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mikadozero@HIDDEN>) id 1hAFxN-0004Oh-2B
 for 35047 <at> debbugs.gnu.org; Sat, 30 Mar 2019 11:31:42 -0400
Received: from mxback3j.mail.yandex.net (mxback3j.mail.yandex.net
 [IPv6:2a02:6b8:0:1619::10c])
 by forward103j.mail.yandex.net (Yandex) with ESMTP id D9B07674294D;
 Sat, 30 Mar 2019 18:31:32 +0300 (MSK)
Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net
 [2a02:6b8:0:1a2d::26])
 by mxback3j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id yr9cfANlxh-VWai2Jha; 
 Sat, 30 Mar 2019 18:31:32 +0300
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail;
 t=1553959892; bh=FHlxTFzej4H2V4SvnkQ6MzLzLL6w2NKjQ9mgB4kWds0=;
 h=In-reply-to:Subject:Cc:To:From:Date:References:Message-ID;
 b=i2wuSa051bk6Api+2sViOWFRvjc4U1VCZqt7/ploiy3XqDVyzMqblLJiGfhDV11zh
 jETHByWhDJMc270/npLxWytsJkUMiiziX7yCduPi0Gjrjphq01olsgc7Tr0xM7qkRi
 Kehn27gNnKKtn85iOzK/unMFOG9pBDR0lQZQHJv0=
Authentication-Results: mxback3j.mail.yandex.net;
 dkim=pass header.i=@yandex.com
Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id
 4VITBYWLL0-VVw4v3DN; Sat, 30 Mar 2019 18:31:31 +0300
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client certificate not present)
References: <cuc5zs05y0z.fsf@HIDDEN> <874l7ka2ve.fsf@nckx>
User-agent: mu4e 1.0; emacs 26.1
From: mikadoZero <mikadozero@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: bug#35047: "Running the Test Suite" root user
In-reply-to: <874l7ka2ve.fsf@nckx>
Date: Sat, 30 Mar 2019 11:30:52 -0400
Message-ID: <cuc4l7k5qhf.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 35047
Cc: 35047 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


Tobias Geerinckx-Rice writes:

> mikadoZero,
>
> mikadoZero wrote:
>> Looking at "2.3 Running the Test Suite" of the manual it does not
>> mention that tests should be run as a non root user.
>
> I guess this is one of those (Unix-)cultural knowledge things: it
> wouldn't even occur to me to build or test anything as root unless
> explicitly asked to do so :-)
>
>> The test `tests/pack` fails when `make check` is run as a root user.
>> It
>> does not fail when run as a non root user.  I found this example by
>> running `make check TESTS=3D"tests/pack.scm"`.  Is this an issue for
>> many
>> tests?
>>
>> I can prepare a patch for the relevant part (parts if this also
>> applies
>> to `make check-system` as well) in "2.3 Running the Test Suite" of
>> the
>> manual.
>
> Thanks for the offer!  I think adding yet another gotcha to the manual
> should be a last resort, though.  Many people still miss them and get
> into trouble (and on to IRC).
>
> Could we, in order of preference:
>
> - make these tests pass even when run as root?  (I guess not?)
> - skip them and add =E2=80=98n tests not run as root=E2=80=99 to the fina=
l tally?
> - refuse to even start the test suite as root?
>
> What =E2=80=98root=E2=80=99 means here will depend on why these tests are=
 failing.
>
> Kind regards,
>
> T G-R

Preventing the issue instead of warning of it in the manual sounds like
a better solution to me.




Information forwarded to bug-guix@HIDDEN:
bug#35047; Package guix. Full text available.

Message received at 35047 <at> debbugs.gnu.org:


Received: (at 35047) by debbugs.gnu.org; 30 Mar 2019 13:50:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 30 09:50:57 2019
Received: from localhost ([127.0.0.1]:36355 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hAENs-0001l0-RU
	for submit <at> debbugs.gnu.org; Sat, 30 Mar 2019 09:50:57 -0400
Received: from tobias.gr ([80.241.217.52]:48308)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1hAENq-0001kp-7J
 for 35047 <at> debbugs.gnu.org; Sat, 30 Mar 2019 09:50:55 -0400
Received: by tobias.gr (OpenSMTPD) with ESMTP id 71b171dc;
 Sat, 30 Mar 2019 13:50:47 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc
 :subject:message-id:references:in-reply-to:date:mime-version
 :content-type; s=2018; i=me@HIDDEN; bh=kKa2eMb0wj+eGM4rZR+xQI
 uSmqFPjJFUqPKgtIAvnOw=; b=Pc83zbLVQBDhs5Wn4MT1TqkcMSq5u7VEpTEtHj
 sPxixMHIR3xGTFPVc0noRLXSENDaJRk5r+qPIVvyGNo/2+9ywd5ENxzHDQL6BnZd
 AZ1APo3pAeCh3AU7T9ThCX+IBEODHh7IsfN6dFE/PbrRPrUnB92RHbJ3+IRHUZap
 kTMHCcNzfb9b/klEEa0LswZdF9Sv6jl519B3jwsNtcwlnbSP9c+hlfkc3NEBXXr8
 RT41u22X3fBCMpLdozbXzkyQIPbXCxgBX3VVVCFb5xfSTphLw7WkQ1bIl07kabhZ
 4okr1TZyxeaU+Re8RQtW4VJHajnO8Nm4gJ7u/qbCywD8pQ3A==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id c2a4bdf6
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); 
 Sat, 30 Mar 2019 13:50:45 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: mikadoZero <mikadozero@HIDDEN>
Subject: Re: bug#35047: "Running the Test Suite" root user
Message-ID: <874l7ka2ve.fsf@nckx>
References: <cuc5zs05y0z.fsf@HIDDEN>
In-reply-to: <cuc5zs05y0z.fsf@HIDDEN>
Date: Sat, 30 Mar 2019 14:50:35 +0100
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35047
Cc: 35047 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

mikadoZero,

mikadoZero wrote:
> Looking at "2.3 Running the Test Suite" of the manual it does=20
> not
> mention that tests should be run as a non root user.

I guess this is one of those (Unix-)cultural knowledge things: it=20
wouldn't even occur to me to build or test anything as root unless=20
explicitly asked to do so :-)

> The test `tests/pack` fails when `make check` is run as a root=20
> user.  It
> does not fail when run as a non root user.  I found this example=20
> by
> running `make check TESTS=3D"tests/pack.scm"`.  Is this an issue=20
> for many
> tests?
>
> I can prepare a patch for the relevant part (parts if this also=20
> applies
> to `make check-system` as well) in "2.3 Running the Test Suite"=20
> of the
> manual.

Thanks for the offer!  I think adding yet another gotcha to the=20
manual should be a last resort, though.  Many people still miss=20
them and get into trouble (and on to IRC).

Could we, in order of preference:

=2D make these tests pass even when run as root?  (I guess not?)
=2D skip them and add =E2=80=98n tests not run as root=E2=80=99 to the fina=
l tally?
=2D refuse to even start the test suite as root?

What =E2=80=98root=E2=80=99 means here will depend on why these tests are f=
ailing.

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXJ90KwAKCRANsP+IT1Vt
eSOSAQCiLU+fJfaMQguGFjKiI0unkMAE4Ep2DERF7SUl4r9iuwD8CU+8Ezk8MDFu
EcdXKz3MlZ3x45WKrdUu7KKNFD9hyQs=
=idEb
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#35047; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Mar 2019 12:49:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 30 08:49:19 2019
Received: from localhost ([127.0.0.1]:36314 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hADQF-0000HJ-DX
	for submit <at> debbugs.gnu.org; Sat, 30 Mar 2019 08:49:19 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50215)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mikadozero@HIDDEN>) id 1hADQD-0000H5-6r
 for submit <at> debbugs.gnu.org; Sat, 30 Mar 2019 08:49:18 -0400
Received: from lists.gnu.org ([209.51.188.17]:40653)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mikadozero@HIDDEN>)
 id 1hADQ6-0002ft-Pr
 for submit <at> debbugs.gnu.org; Sat, 30 Mar 2019 08:49:11 -0400
Received: from eggs.gnu.org ([209.51.188.92]:36351)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mikadozero@HIDDEN>) id 1hADQ5-00041s-P5
 for bug-guix@HIDDEN; Sat, 30 Mar 2019 08:49:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mikadozero@HIDDEN>) id 1hADPx-0002b7-TR
 for bug-guix@HIDDEN; Sat, 30 Mar 2019 08:49:03 -0400
Received: from forward102o.mail.yandex.net ([2a02:6b8:0:1a2d::602]:33313)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mikadozero@HIDDEN>)
 id 1hADPp-0002RT-RB
 for bug-guix@HIDDEN; Sat, 30 Mar 2019 08:48:55 -0400
Received: from mxback6g.mail.yandex.net (mxback6g.mail.yandex.net
 [IPv6:2a02:6b8:0:1472:2741:0:8b7:167])
 by forward102o.mail.yandex.net (Yandex) with ESMTP id D3F0E6680721
 for <bug-guix@HIDDEN>; Sat, 30 Mar 2019 15:48:36 +0300 (MSK)
Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net
 [2a02:6b8:0:1619::15:6])
 by mxback6g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id VLP4aoaI84-maquqqHO; 
 Sat, 30 Mar 2019 15:48:36 +0300
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail;
 t=1553950116; bh=jiCh7rcp1JHadpovfrcu/OZldRHqTZ7J4qYePMXhBoY=;
 h=Subject:To:From:Date:Message-ID;
 b=LPULYbv2hOAJbBR57Hja12MJp+WPw75SWgVmD8oeB+7HR0h+BaOZ4JHVYtN4to0xc
 jXC0k/QRsSUHp4FAaDMp6YgkMf7tynna/fmv/KbRiKjQyLioHQ2Ztk/wEFFOyidO54
 NT6KvXpNz0d5VxkPWGQgAWchQt+Etve/vqe6FYsQ=
Authentication-Results: mxback6g.mail.yandex.net;
 dkim=pass header.i=@yandex.com
Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id
 KzpDKCG5YY-mZKSO6AH; Sat, 30 Mar 2019 15:48:35 +0300
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client certificate not present)
User-agent: mu4e 1.0; emacs 26.1
From: mikadoZero <mikadozero@HIDDEN>
To: bug-guix@HIDDEN
Subject: "Running the Test Suite" root user
Date: Sat, 30 Mar 2019 08:47:56 -0400
Message-ID: <cuc5zs05y0z.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2a02:6b8:0:1a2d::602
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Looking at "2.3 Running the Test Suite" of the manual it does not
mention that tests should be run as a non root user.

The test `tests/pack` fails when `make check` is run as a root user.  It
does not fail when run as a non root user.  I found this example by
running `make check TESTS="tests/pack.scm"`.  Is this an issue for many
tests?

I can prepare a patch for the relevant part (parts if this also applies
to `make check-system` as well) in "2.3 Running the Test Suite" of the
manual.

Should `make check-system` also be run as a non root user to avoid
failing tests?

Is there a section in the manual that explains why tests should not be
run as a root user which I can just refer to in the patch?  If not could
anyone provide an explanation which I could include in the patch?




Acknowledgement sent to mikadoZero <mikadozero@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#35047; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.