GNU logs - #35047, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#35047: "Running the Test Suite" root user
Resent-From: mikadoZero <mikadozero@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 30 Mar 2019 12:50:02 +0000
Resent-Message-ID: <handler.35047.B.15539501591077 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 35047
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 35047 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.15539501591077
          (code B ref -1); Sat, 30 Mar 2019 12:50:02 +0000
Received: (at submit) by debbugs.gnu.org; 30 Mar 2019 12:49:19 +0000
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>
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-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?




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: mikadoZero <mikadozero@HIDDEN>
Subject: bug#35047: Acknowledgement ("Running the Test Suite" root user)
Message-ID: <handler.35047.B.15539501591077.ack <at> debbugs.gnu.org>
References: <cuc5zs05y0z.fsf@HIDDEN>
X-Gnu-PR-Message: ack 35047
X-Gnu-PR-Package: guix
Reply-To: 35047 <at> debbugs.gnu.org
Date: Sat, 30 Mar 2019 12:50:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 35047 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
35047: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35047
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#35047: "Running the Test Suite" root user
Resent-From: Tobias Geerinckx-Rice <me@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 30 Mar 2019 13:51:01 +0000
Resent-Message-ID: <handler.35047.B35047.15539538576762 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 35047
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: mikadoZero <mikadozero@HIDDEN>
Cc: 35047 <at> debbugs.gnu.org
Received: via spool by 35047-submit <at> debbugs.gnu.org id=B35047.15539538576762
          (code B ref 35047); Sat, 30 Mar 2019 13:51:01 +0000
Received: (at 35047) by debbugs.gnu.org; 30 Mar 2019 13:50:57 +0000
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>
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-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-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#35047: "Running the Test Suite" root user
Resent-From: mikadoZero <mikadozero@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 30 Mar 2019 15:32:01 +0000
Resent-Message-ID: <handler.35047.B35047.155395990416928 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 35047
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Tobias Geerinckx-Rice <me@HIDDEN>
Cc: 35047 <at> debbugs.gnu.org
Received: via spool by 35047-submit <at> debbugs.gnu.org id=B35047.155395990416928
          (code B ref 35047); Sat, 30 Mar 2019 15:32:01 +0000
Received: (at 35047) by debbugs.gnu.org; 30 Mar 2019 15:31:44 +0000
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>
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-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.





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.