[Git][reproducible-builds/reprotest][master] 3 commits: Allow user to override timeouts from the environment.

Holger Levsen gitlab at salsa.debian.org
Tue Jan 14 13:50:17 UTC 2020



Holger Levsen pushed to branch master at Reproducible Builds / reprotest


Commits:
7f645f92 by Ross Vandegrift at 2020-01-14T14:28:22+01:00
Allow user to override timeouts from the environment.

These are the variable names and their current defaults:

REPROTEST_TIMEOUT_SHORT=100
REPROTEST_TIMEOUT_COPY=300
REPROTEST_TIMEOUT_INSTALL=3000
REPROTEST_TIMEOUT_TEST=10000
REPROTEST_TIMEOUT_BUILD=100000

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
9854c4f2 by Holger Levsen at 2020-01-14T14:32:32+01:00
Drop 'short' timeout and use 'install' timeout instead. Closes: #897442.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
8deca2b4 by Holger Levsen at 2020-01-14T14:48:43+01:00
release as 0.7.11

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


3 changed files:

- debian/changelog
- reprotest/__init__.py
- reprotest/lib/adt_testbed.py


Changes:

=====================================
debian/changelog
=====================================
@@ -1,9 +1,13 @@
-reprotest (0.7.11) UNRELEASED; urgency=medium
+reprotest (0.7.11) unstable; urgency=medium
 
-  *  WIP - changelog will be generated with gbp-dch at release time.
-     Please dont add changelog entries here until then.
+  [ Ross Vandegrift ]
+  * Allow user to override timeouts from the environment.
 
- -- Holger Levsen <holger at debian.org>  Sat, 26 Oct 2019 13:28:51 +0200
+  [ Holger Levsen ]
+  * Drop 'short' timeout and use 'install' timeout instead. Closes: #897442.
+  * setup.py: bump version number for this release.
+
+ -- Holger Levsen <holger at debian.org>  Tue, 14 Jan 2020 14:48:01 +0100
 
 reprotest (0.7.10) unstable; urgency=medium
 


=====================================
reprotest/__init__.py
=====================================
@@ -54,7 +54,7 @@ def get_all_servers():
 
 class Testbed(adt_testbed.Testbed):
 
-    def check_exec2(self, argv, stdout=False, kind='short', xenv=[]):
+    def check_exec2(self, argv, stdout=False, kind='install', xenv=[]):
         """Like check_exec but does not bomb on stderr, and can pass xenv."""
         (code, out, err) = self.execute(argv,
                                         stdout=(stdout and subprocess.PIPE or None),


=====================================
reprotest/lib/adt_testbed.py
=====================================
@@ -49,8 +49,12 @@ SYSTEM_INTERFACES = {
         'fedora': FedoraInterface,
         }
 
-timeouts = {'short': 100, 'copy': 300, 'install': 3000, 'test': 10000,
-            'build': 100000}
+timeouts = {
+    '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:
@@ -431,7 +435,7 @@ class Testbed:
             ll = list(map(urllib.parse.unquote, ll))
         return ll
 
-    def execute(self, argv, xenv=[], stdout=None, stderr=None, kind='short'):
+    def execute(self, argv, xenv=[], stdout=None, stderr=None, kind='install'):
         '''Run command in testbed.
 
         The commands stdout/err will be piped directly to autopkgtest and its log
@@ -489,7 +493,7 @@ class Testbed:
 
         return (proc.returncode, out, err)
 
-    def check_exec(self, argv, stdout=False, kind='short'):
+    def check_exec(self, argv, stdout=False, kind='install'):
         '''Run argv in testbed.
 
         If stdout is True, capture stdout and return it. Otherwise, don't



View it on GitLab: https://salsa.debian.org/reproducible-builds/reprotest/compare/fb2c0c91b195c52445c80aaf2e1c1665861dea99...8deca2b405f3f7e52eed70cfd98c66c2e0d683e2

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reprotest/compare/fb2c0c91b195c52445c80aaf2e1c1665861dea99...8deca2b405f3f7e52eed70cfd98c66c2e0d683e2
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200114/d5a42fb4/attachment.htm>


More information about the rb-commits mailing list