Package: nix
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu mantic ubuntu-patch
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Nix autopkgtests nix-env, nix-shell require internet access and may fail when
the remote server is not available.
Would it be possible to add needs-internet and flaky restrictions to those
tests (please see the attached patch)?

Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
  APT prefers lunar-updates
  APT policy: (500, 'lunar-updates'), (500, 'lunar-security'), (500, 'lunar'), 
(100, 'lunar-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.2.0-34-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru nix-2.16.1+dfsg/debian/tests/control 
nix-2.16.1+dfsg/debian/tests/control
--- nix-2.16.1+dfsg/debian/tests/control        2023-08-07 21:29:40.000000000 
+1200
+++ nix-2.16.1+dfsg/debian/tests/control        2023-10-04 15:33:09.000000000 
+1300
@@ -4,14 +4,14 @@
 
 Tests: nix-env
 Depends: @, ca-certificates, make
-Restrictions: allow-stderr, isolation-container, needs-root
+Restrictions: allow-stderr, isolation-container, needs-root, needs-internet, 
flaky
 # armhf: error: Package ‘hello-2.12’ in /nix/store/.../hello/default.nix:32 is 
not supported on ‘arm-linux’, refusing to evaluate.
 # ppc64el: error: evaluation aborted with the following error message: 
'unsupported platform for the pure Linux stdenv'
 Architecture: amd64 arm64 i386
 
 Tests: nix-shell
 Depends: @, ca-certificates, make
-Restrictions: allow-stderr, isolation-container, needs-root
+Restrictions: allow-stderr, isolation-container, needs-root, needs-internet, 
flaky
 # armhf, ppc64el gives:
 # error: Package ‘shell’ in /nix/store/.../trivial-builders.nix:73 is not 
supported on ‘arm-linux’, refusing to evaluate.
-Architecture: amd64 arm64 i386
\ No newline at end of file
+Architecture: amd64 arm64 i386

Reply via email to