[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: run scheduler less frequently
Holger Levsen
holger at moszumanska.debian.org
Thu Mar 12 20:43:06 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 6725ef53532e75331f417e1b21cbc16002263dd8
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu Mar 12 21:41:04 2015 +0100
reproducible: run scheduler less frequently
---
bin/reproducible_scheduler.py | 11 ++++-------
job-cfg/reproducible.yaml | 2 +-
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index bdc757f..102957f 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -292,11 +292,10 @@ def scheduler():
if __name__ == '__main__':
- # scheduler is called 4 times per hour, so we only update the schroots roughly every 4th time
- if random.randrange(1,5) == 4:
- log.info('Updating schroots for all suites.')
- for suite in SUITES:
- call_apt_update(suite)
+ log.info('Updating schroots and sources tables for all suites.')
+ for suite in SUITES:
+ call_apt_update(suite)
+ update_sources_tables(suite)
try:
overall = int(query_db('SELECT count(*) FROM schedule')[0][0])
except:
@@ -305,6 +304,4 @@ if __name__ == '__main__':
log.info(str(overall) + ' packages already scheduled, nothing to do.')
sys.exit()
log.info(str(overall) + ' packages already scheduled, scheduling some more...')
- for suite in SUITES:
- update_sources_tables(suite)
scheduler()
diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml
index ecc21ac..00cc190 100644
--- a/job-cfg/reproducible.yaml
+++ b/job-cfg/reproducible.yaml
@@ -251,7 +251,7 @@
my_recipients: 'qa-jenkins-scm at lists.alioth.debian.org'
- '{name}_scheduler':
my_description: 'Schedule packages to be tested for reproducibility.'
- my_timed: '11,23,42,52 * * * *'
+ my_timed: '42 * * * *'
my_shell: '/srv/jenkins/bin/reproducible_scheduler.py'
my_recipients: 'qa-jenkins-scm at lists.alioth.debian.org'
- '{name}_html_graphs':
--
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