[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Archlinux: really reschedule all Archlinux packages (see removed FIXME)

Holger Levsen gitlab at salsa.debian.org
Fri Sep 14 19:58:25 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
ec5affe8 by Holger Levsen at 2018-09-14T18:57:23Z
reproducible Archlinux: really reschedule all Archlinux packages (see removed FIXME)

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_archlinux_scheduler.sh


Changes:

=====================================
bin/reproducible_archlinux_scheduler.sh
=====================================
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-# Copyright 2015-2017 Holger Levsen <holger at layer-acht.org>
+# Copyright 2015-2018 Holger Levsen <holger at layer-acht.org>
 # released under the GPLv=2
 
 DEBUG=false
@@ -76,25 +76,25 @@ update_archlinux_repositories() {
 	schroot --end-session -c $SESSION
 	echo "$(date -u) - the following packages are known to us with higher versions than the repo because we build trunk:"
 	cat $OLDER
+	rm -f $OLDER
 	# schedule up to $MAX packages we already know about
 	# (only if less than $THRESHOLD packages are currently scheduled)
-	# FIXME: this doesnt reschedule packages without build1.log, 
-	# though there shouldnt be any.
 	old=""
 	local MAX=350
 	local THRESHOLD=450
 	if [ $(find $BASE/archlinux/ -name pkg.needs_build | wc -l ) -le $THRESHOLD ] ; then
 		local BLACKLIST="/($(echo $ARCHLINUX_BLACKLISTED | sed "s# #|#g"))/"
 		# reschedule
-		find $BASE/archlinux/ -name build1.log -type f -printf '%T+ %p\n' | sort | egrep -v "$BLACKLIST" | head -n $MAX| cut -d " " -f2 | sed -s 's#build1.log$#pkg.needs_build#g' | xargs -r touch
-		# explain, for debugging…
-		find $BASE/archlinux/ -name build1.log -type f -printf '%T+ %p\n' | sort | egrep -v "$BLACKLIST" | head -n $MAX| cut -d "/" -f8-9 | sort > $OLDER
+	        for i in $( ( for REPO in $ARCHLINUX_REPOS ; do
+			find $BASE/archlinux/$REPO -type d -wholename "$BASE/archlinux/$REPO/*" -printf '%T+ %p\n' | egrep -v "$BLACKLIST"
+		done ) | sort | head -n $MAX| cut -d " " -f2 ) ; do
+			touch $i/pkg.needs_build
+			echo "$(basename $(dirname $i))/$(basename $i)" >> $OLDER
+		done
 		if [ -s $OLDER ] ; then
 			old=" $(cat $OLDER | wc -l) old ones"
 			echo "$(date -u) - Old, previously tested packages rescheduled: "
-			for REPO in $ARCHLINUX_REPOS ; do
-				grep ^$REPO $OLDER | sed "s#^#  #g"
-			done
+			cat $OLDER
 		fi
 	fi
 	rm $OLDER



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/ec5affe8b90a81865d65b44f4af45a4634b656de

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/ec5affe8b90a81865d65b44f4af45a4634b656de
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180914/75ac6fdb/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list