[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: more randomly select a package to build to better avoid race conditions (this commit should probably be reverted / improved one day

Holger Levsen holger at moszumanska.debian.org
Tue Sep 22 21:41:57 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 d91692119e074964a8b76ff1394b22600b71b387
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Sep 22 23:41:32 2015 +0200

    reproducible: more randomly select a package to build to better avoid race conditions (this commit should probably be reverted / improved one day
---
 bin/reproducible_build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 22df05a..827fac5 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -377,7 +377,7 @@ choose_package () {
 		FROM schedule AS sch JOIN sources AS s ON sch.package_id=s.id
 		WHERE sch.date_build_started = ''
 		AND s.architecture='$ARCH'
-		ORDER BY date_scheduled LIMIT 1")
+		ORDER BY date_scheduled LIMIT 5"|sort -R|head -1)
 	SUITE=$(echo $RESULT|cut -d "|" -f1)
 	SRCPKGID=$(echo $RESULT|cut -d "|" -f2)
 	SRCPACKAGE=$(echo $RESULT|cut -d "|" -f3)

-- 
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