#983362 libnfs: autopkg testsuite always fails

Package:
src:libnfs
Source:
libnfs
Submitter:
Ryutaroh Matsumoto
Date:
2023-07-04 18:03:49 UTC
Severity:
normal
Tags:
#983362#5
Date:
2021-02-23 00:31:48 UTC
From:
To:
Dear Maintainer,

I made a qemu testbed by debci setup -f -s sid -a amd64 -b qemu.
Then I run autopkgtest -B -U -u debci libnfs -- qemu
The testsuite always fails with the following message

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required

The log is attached.

Best regards, Ryutaroh Matsumoto

#983362#10
Date:
2021-02-23 09:58:31 UTC
From:
To:
Hi Simon,
Thank you very much for the explanation.
Previously reported another issue to src:libnfs
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983362
seems to be caused by the same machanism.

Should #983362 and #983367 be merged and reassigned to autopkgtest?

Bes regards, Ryutaroh

From: Simon McVittie <smcv@debian.org>
Subject: Re: Bug#983367: gvfs: autopkg test always fails on qemu testbed
Date: Tue, 23 Feb 2021 08:39:16 +0000

#983362#15
Date:
2021-02-25 00:22:51 UTC
From:
To:
I was told that autopkg test scripts should not assume that an ordinary user can sudo at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983432#10

#983362#20
Date:
2021-04-01 16:19:58 UTC
From:
To:
Hi Ryutaroh.

This can be looked at several ways and thank you for collecting a few opinions.

As Simon pointed out passwordless sudo is available in Ubuntu test
images (both for VMs and LXC runners), thus it is not a surprise that
tests started relying on that. IMO making passwordless sudo available
is the most pleasant way of enabling testing as a normal user and
still allowing raising privileges for a few operations.
On Ubuntu isolation-container and isolation-machine will keep implying
passwordless sudo being available and IMO the easiest solution forward
would be generating Debian test images the same way. Personally I'd
like to see Debian executing the tests using sudo and any other way
would be just more complicated.

The needs-sudo restriction can be a good way of documenting the tests'
requirements and the test runners' capability.

Should none of the above would be adopted in Debian I can make the
test SKIP if sudo fails.

Cheers,
Balint

#983362#29
Date:
2023-07-04 18:00:23 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libnfs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 983362@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Balint Reczey <balint@balintreczey.hu> (supplier of updated libnfs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 02 Jul 2023 12:09:23 +0200
Source: libnfs
Binary: libnfs-dev libnfs-utils libnfs-utils-dbgsym libnfs14 libnfs14-dbgsym
Architecture: source amd64
Version: 5.0.2-1~exp1
Distribution: experimental
Urgency: medium
Maintainer: Ritesh Raj Sarraf <rrs@debian.org>,
Changed-By: Balint Reczey <balint@balintreczey.hu>
Description:
 libnfs-dev - NFS client library (development files)
 libnfs-utils - NFS client library (binaries)
 libnfs14   - NFS client library (shared library)
Closes: 983362 1039578
Changes:
 libnfs (5.0.2-1~exp1) experimental; urgency=medium
 .
   * Remove myself as a Maintainer
   * debian/watch: Convert to version 4 format
   * debian/gbp.conf: Set upstream-branch to 'upstream'
   * debian/gbp.conf: Set upstream-vcs-tag to empty.
     The packaging repository imports whole tarballs only to the upstream
     branch.
   * New upstream version 5.0.2 (Closes: #1039578)
   * debian/tests/control: Adds needs-sudo restriction to autopkgtest
     (Closes: #983362)
   * Refresh patches
   * Bump SO version
   * debian/libnfs-utils.manpages: Ship manpages as installed by upstream
   * debian/not-installed: List not installed files
   * Bump compat version to 13
Checksums-Sha1:
 dcc52828b90d4f86aca0a7bed96d290ce8f1ec38 2122 libnfs_5.0.2-1~exp1.dsc
 afa9d1a272ebb505a1e782288556d56c90b2bd91 281154 libnfs_5.0.2.orig.tar.gz
 437a8c21cb97bbf35aeebf2e9b8147c1239a371a 12180 libnfs_5.0.2-1~exp1.debian.tar.xz
 36136035ba46c73c249e0318000d8485144be119 135336 libnfs-dev_5.0.2-1~exp1_amd64.deb
 a93f1785533e201b03016cef6c07d7247c83cc8f 24900 libnfs-utils-dbgsym_5.0.2-1~exp1_amd64.deb
 9523d49f3d7096231321181ac22126d13395c67f 16056 libnfs-utils_5.0.2-1~exp1_amd64.deb
 cf549ec91f7be62b0f195f25ad256cdaa3dd2bea 383832 libnfs14-dbgsym_5.0.2-1~exp1_amd64.deb
 44a31f6d53c50f18bc702e1e23623e45b0824930 104500 libnfs14_5.0.2-1~exp1_amd64.deb
 fb9f794072c4694f793bcdb3660b576f816abb5a 7271 libnfs_5.0.2-1~exp1_amd64.buildinfo
Checksums-Sha256:
 24dafa0ab8320b3ffc632ed15043992a4199fe35bcde7b8c1b8cb5e235d168f5 2122 libnfs_5.0.2-1~exp1.dsc
 637e56643b19da9fba98f06847788c4dad308b723156a64748041035dcdf9bd3 281154 libnfs_5.0.2.orig.tar.gz
 79cc36c1af3e24a38409af6981c0bcd5973218f87bf7e8d2d205a7a77f3d2bf4 12180 libnfs_5.0.2-1~exp1.debian.tar.xz
 02890fbaecf2a14eb2bba36de37e76ec926d371ca991b6160880739caa1f6426 135336 libnfs-dev_5.0.2-1~exp1_amd64.deb
 197b6edc8bbddd5ae0723cf8b822c9eec5573cbff8a1a08b3e36071e6c4df217 24900 libnfs-utils-dbgsym_5.0.2-1~exp1_amd64.deb
 9bbc56044a20b196741d4aa6b8fb857410955cf6e4e2de463fb07db24f83858a 16056 libnfs-utils_5.0.2-1~exp1_amd64.deb
 10fc2ea14e1532c3cfd615405bac20563d80131d1a0cf34bbe215caded4dbaa4 383832 libnfs14-dbgsym_5.0.2-1~exp1_amd64.deb
 406a0c9d215a7adb86b2f8a11674bcc5582d546e6bfb943cfb27472e8bdcbf94 104500 libnfs14_5.0.2-1~exp1_amd64.deb
 43602c5d9f991362b46c8130008a75ca6f3bebb4abbd0735152c4b6d7e7a749e 7271 libnfs_5.0.2-1~exp1_amd64.buildinfo
Files:
 9dc24f83bdcb7dbd9cd9b1e0ebd7a68a 2122 libs optional libnfs_5.0.2-1~exp1.dsc
 115034aab322d05235a9555d057f8b14 281154 libs optional libnfs_5.0.2.orig.tar.gz
 8a87d28211996d04827eb6d582944c59 12180 libs optional libnfs_5.0.2-1~exp1.debian.tar.xz
 d8941dc4dd02798b114a01eeed1cc484 135336 libdevel optional libnfs-dev_5.0.2-1~exp1_amd64.deb
 af0b1f26e017ca6a0d78fff52ff94a8b 24900 debug optional libnfs-utils-dbgsym_5.0.2-1~exp1_amd64.deb
 6393a4b3f047d6ab947824408eeb53da 16056 libs optional libnfs-utils_5.0.2-1~exp1_amd64.deb
 a22d11be4e9a497a8accd7057c3b1ba4 383832 debug optional libnfs14-dbgsym_5.0.2-1~exp1_amd64.deb
 68a77342f89885c40c1a6dd570839018 104500 libs optional libnfs14_5.0.2-1~exp1_amd64.deb
 3f2349c44b2bddb3c25bc19a0657ee03 7271 libs optional libnfs_5.0.2-1~exp1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEI/PvTgXX55rLQUfDg6KBkWslS0UFAmShdngACgkQg6KBkWsl
S0ViBxAAtVqQ8h2BR0oIo+Va9qoieOKsuFltwI7HDA+M+6Idoyrc+9VlR40wRQD5
uw4W30iIrwWYsjmJplvMYiYBRR0HU9Ads1s8TGwKS2zmCtOhorRV65Vo5BiIyRR8
1rWa4b8KZm4k2kl3OvI6njETtJrvMS/kHMq//uwqdI05S61Iq3382YQPSUnLq9HO
RgUwuN8iqnN4QKYXObeCpBY9BU26vHQ300R3NqRPFxFDbhPltuX70SmgCIMDXcpC
PoMVeERqTTLWAauuomctW3pwuGb1HyUVlmCrS0+jy/iS3wrAbF9TTYPvTl2vxtAU
hQLVRPHkSqB9wotrH6za316Kc3AGSfFTwGTZtVD5uewpSVTi6kwRnpYefppqtHlv
Xj4eLcksFJiKZK/9wFV3vlcUoDelto/ozbiemAmAuMz0KmJIGjfk/BC++uHUiy7Q
94IQULdf9Wg5wC7cYa05ykj6YnKNYYP5uuVewS/o+O2V9inwshdwO3mawFwTaTml
SwUEK+ABT5tNgVfvTLloS1iMvZJjMgAqePmFLUsH+OO4CR4Iz3jLsUGmvUx/tONH
SVSuR5EI6oz3dVuk0w6W36dpjYBOwqPM/KluaXxfd214qaf9X7DXNjitwMyi/GkS
Mf39PwmJrsezPmk0lgrqPSD9Xr17pvQIras2M/tDzFY14TXiopY=
=QBsR
-----END PGP SIGNATURE-----