[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Arch Linux: improve scheduler output

Holger Levsen holger at layer-acht.org
Tue Dec 12 11:31:44 UTC 2017


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 e0a48b351d41961ddc5b7b62d9ce273509c27b6b
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Dec 12 11:31:41 2017 +0000

    reproducible Arch Linux: improve scheduler output
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_archlinux_scheduler.sh | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_archlinux_scheduler.sh b/bin/reproducible_archlinux_scheduler.sh
index 0fa763b..ea308f2 100755
--- a/bin/reproducible_archlinux_scheduler.sh
+++ b/bin/reproducible_archlinux_scheduler.sh
@@ -75,18 +75,22 @@ update_archlinux_repositories() {
 	done
 	echo "$(date -u) - the following packages are known to us with higher versions than the repo because we build trunk:"
 	cat $OLDER
-	rm $OLDER
 	# schedule 250 packages we already know about
 	# (only if less than 300 packages are currently scheduled)
-	# FIXME: this doesnt schedule packages without build1.log...
+	# FIXME: this doesnt reschedule packages without build1.log...
 	old=""
 	if [ $(find $BASE/archlinux/ -name pkg.needs_build | wc -l ) -le 300 ] ; then
 		# reschedule
 		find $BASE/archlinux/ -name build1.log -type f -printf '%T+ %p\n' | sort | head -n 250|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 | head -n 250|cut -d "/" -f8-9 | sort | xargs echo "Old packages rescheduled: "
 		old=" 250 old ones"
+		# explain, for debugging…
+		find $BASE/archlinux/ -name build1.log -type f -printf '%T+ %p\n' | sort | head -n 250|cut -d "/" -f8-9 | sort > $OLDER
+		echo "$(date -u) - Old, previously tested packages rescheduled: "
+		for REPO in $ARCHLINUX_REPOS ; do
+			grep ^$REPO $OLDER | sed "s#^#  #g"
+		done
 	fi
+	rm $OLDER
 	# de-schedule blacklisted packages
 	# (so sometimes '250 old ones' is slightly inaccurate…)
 	for REPO in $ARCHLINUX_REPOS ; do

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