[Qa-jenkins-scm] [jenkins.debian.net] 01/03: reproducible archlinux: refactor, define repositories once

Holger Levsen holger at moszumanska.debian.org
Fri Dec 11 13:44:12 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 77ecda496b8ef4ef0994e3ccecfb63cafb3221ae
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Dec 11 14:36:12 2015 +0100

    reproducible archlinux: refactor, define repositories once
---
 bin/reproducible_build_archlinux_pkg.sh | 6 ++++--
 bin/reproducible_common.sh              | 3 +++
 bin/reproducible_html_archlinux.sh      | 2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index 38f51a2..a15f7bf 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -46,7 +46,7 @@ choose_package() {
 	local SESSION="archlinux-scheduler-$RANDOM"
 	schroot --begin-session --session-name=$SESSION -c jenkins-reproducible-archlinux
 	local REPO
-	for REPO in core extra ; do
+	for REPO in $ARCHLINUX_REPOS ; do
 		if [ ! -f ${ARCHLINUX_PKGS}_$REPO ] || [ $DUMMY -nt ${ARCHLINUX_PKGS}_$REPO ] ; then
 			echo "$(date -u ) - updating list of available packages in repository '$REPO'."
 			schroot --run-session -c $SESSION --directory /var/abs/$REPO -- ls -1|sort -R|xargs echo > ${ARCHLINUX_PKGS}_$REPO
@@ -57,12 +57,14 @@ choose_package() {
 	schroot --end-session -c $SESSION
 	rm $DUMMY > /dev/null
 	local PKG
-	for REPO in core extra ; do
+	for REPO in $ARCHLINUX_REPOS ; do
 		case $REPO in
 			core)	MIN_AGE=6
 				;;
 			extra)	MIN_AGE=27
 				;;
+			*)	MIN_AGE=99	# should never happen…
+				;;
 		esac
 		for PKG in $(cat ${ARCHLINUX_PKGS}_$REPO) ; do
 			# build package if it has never build or at least $MIN_AGE days ago
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index dd07e72..f6a6bde 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -52,6 +52,9 @@ BUILD_ENV_VARS="ARCH NUM_CPU CPU_MODEL DATETIME KERNEL1 KERNEL2" # these also ne
 # existing usertags in the Debian BTS
 USERTAGS="toolchain infrastructure timestamps fileordering buildpath username hostname uname randomness buildinfo cpu signatures environment umask ftbfs locale"
 
+# archlinux repositories to be tested
+ARCHLINUX_REPOS="extra core"
+
 # number of cores to be used
 NUM_CPU=$(grep -c '^processor' /proc/cpuinfo)
 
diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index 04847ec..c42b997 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -38,7 +38,7 @@ EOF
 write_page_intro 'Arch Linux'
 write_explaination_table 'Arch Linux'
 write_page "    <table><tr><th>repository</th><th>source package</th><th>test result</th><th>test date</th><th>1st build log</th><th>2nd build log</th></tr>"
-for REPOSITORY in core extra ; do
+for REPOSITORY in $ARCHLINUX_REPOS ; do
 	for PKG in $(find $ARCHBASE/$REPOSITORY/* -maxdepth 1 -type d -exec basename {} \;) ; do
 		write_page "     <tr>"
 		write_page "      <td>$REPOSITORY</td>"

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