Bug#897442: reprotest timeouts while installing the build-dependencies
Ross Vandegrift
ross at kallisti.us
Wed Jun 20 06:16:54 BST 2018
Package: reprotest
Version: 0.7.7
Followup-For: Bug #897442
I ran into this tonight and tracked it down to the timeouts hardcoded in
adt_testbed.py. A patch to allow overides from the environment is attached.
Ross
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing'), (40, 'unstable'), (30, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.16.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages reprotest depends on:
ii apt-utils 1.6.1
ii diffoscope 96
ii libdpkg-perl 1.19.0.5
ii procps 2:3.3.15-2
ii python3 3.6.5-3
ii python3-debian 0.1.32
ii python3-distro 1.0.1-2
ii python3-pkg-resources 39.1.0-1
ii python3-rstr 2.2.6-1
Versions of packages reprotest recommends:
ii diffoscope 96
ii diffutils 1:3.6-1
ii disorderfs 0.5.3-2
ii faketime 0.9.7-2
ii locales-all 2.27-3
ii sudo 1.8.23-1
Versions of packages reprotest suggests:
pn autodep8 <none>
pn qemu-system <none>
ii qemu-utils 1:2.12+dfsg-3
ii schroot 1.6.10-5
-- no debconf information
-------------- next part --------------
>From 04714ed7e82afaf4405296a01cac5bc0386df4d8 Mon Sep 17 00:00:00 2001
From: Ross Vandegrift <ross at kallisti.us>
Date: Tue, 19 Jun 2018 21:46:52 -0700
Subject: [PATCH] Allow user to override timeouts from the environment
---
reprotest/lib/adt_testbed.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/reprotest/lib/adt_testbed.py b/reprotest/lib/adt_testbed.py
index 937b05c..1766f4a 100644
--- a/reprotest/lib/adt_testbed.py
+++ b/reprotest/lib/adt_testbed.py
@@ -47,8 +47,13 @@ SYSTEM_INTERFACES = {
'arch': ArchInterface
}
-timeouts = {'short': 100, 'copy': 300, 'install': 3000, 'test': 10000,
- 'build': 100000}
+timeouts = {
+ 'short': int(os.getenv('REPROTEST_TIMEOUT_SHORT', 100)),
+ 'copy': int(os.getenv('REPROTEST_TIMEOUT_COPY', 300)),
+ 'install': int(os.getenv('REPROTEST_TIMEOUT_INSTALL', 3000)),
+ 'test': int(os.getenv('REPROTEST_TIMEOUT_TEST', 10000)),
+ 'build': int(os.getenv('REPROTEST_TIMEOUT_BUILD', 100000)),
+}
class Testbed:
--
2.17.1
More information about the Reproducible-builds
mailing list