[Qa-jenkins-scm] [jenkins.debian.net] 03/04: reproducible arch: randomize start times
Holger Levsen
holger at moszumanska.debian.org
Sun Oct 18 16:07:34 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 04fbc6b8df44eab6762af38b5976f55acdfd2039
Author: Holger Levsen <holger at layer-acht.org>
Date: Sun Oct 18 18:05:11 2015 +0200
reproducible arch: randomize start times
---
bin/reproducible_build.sh | 5 -----
bin/reproducible_build_arch_pkg.sh | 1 +
bin/reproducible_common.sh | 5 +++++
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 2fe8420..b2a68ae 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -13,11 +13,6 @@ common_init "$@"
set -e
-# sleep 1-23 secs to randomize start times
-delay_start() {
- /bin/sleep $(echo "scale=1 ; $(shuf -i 1-230 -n 1)/10" | bc )
-}
-
create_results_dirs() {
mkdir -vp $BASE/dbd/${SUITE}/${ARCH}
mkdir -vp $BASE/dbdtxt/${SUITE}/${ARCH}
diff --git a/bin/reproducible_build_arch_pkg.sh b/bin/reproducible_build_arch_pkg.sh
index fd01cd4..be634fa 100755
--- a/bin/reproducible_build_arch_pkg.sh
+++ b/bin/reproducible_build_arch_pkg.sh
@@ -173,6 +173,7 @@ fi
#
# main - only used in master-mode
#
+delay_start # randomize start times
# first, we need to choose a package…
#SESSION="arch-scheduler-$RANDOM"
#schroot --begin-session --session-name=$SESSION -c jenkins-reproducible-arch
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index c61be6e..84ff0e8 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -112,6 +112,11 @@ META_PKGSET[28]="maint_debian-ocaml"
META_PKGSET[29]="maint_debian-x"
META_PKGSET[30]="maint_lua"
+# sleep 1-23 secs to randomize start times
+delay_start() {
+ /bin/sleep $(echo "scale=1 ; $(shuf -i 1-230 -n 1)/10" | bc )
+}
+
schedule_packages() {
LC_USER="$REQUESTER" \
LOCAL_CALL="true" \
--
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