[Qa-jenkins-scm] [jenkins.debian.net] 01/06: reproducible: remote_scheduler: look for the LOCAL_CALL env var and remove the scheduling limits in that case
Holger Levsen
holger at moszumanska.debian.org
Sun Jun 14 20:37:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit c83b788568167ed7f197d8613e93817e4f98ebaf
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Fri Jun 12 23:48:34 2015 +0200
reproducible: remote_scheduler: look for the LOCAL_CALL env var and remove the scheduling limits in that case
---
bin/reproducible_remote_scheduler.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index 55b7663..6259d0d 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -52,6 +52,13 @@ except KeyError:
'schedule packages. Ask in #debian-reproducible if you have '
'trouble with that.' + bcolors.ENDC)
sys.exit(1)
+# this variable is setted by reproducible scripts, and it's clearly available
+# only on calls made by the local host
+try:
+ local = True if os.environ['LOCAL_CALL'] == 'true' else False
+except KeyError:
+ local = False
+
suite = scheduling_args.suite
reason = ' '.join(scheduling_args.message)
packages = scheduling_args.packages
@@ -137,7 +144,7 @@ try:
except IndexError:
amount = 0
log.debug(requester + ' already scheduled ' + str(amount) + ' packages today')
-if amount + len(ids) > 50:
+if amount + len(ids) > 50 and not local:
log.error(bcolors.FAIL + 'You have exceeded the maximum number of manual ' +
'reschedulings allowed for a day. Please ask in ' +
'#debian-reproducible if you need to schedule more packages.' +
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list