[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Arch Linux: cleanup scheduler output
Holger Levsen
holger at layer-acht.org
Tue Dec 12 11:24:35 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 dfec4a1ee1fa7c389f0e38566d5ddd13d9147dd5
Author: Holger Levsen <holger at layer-acht.org>
Date: Tue Dec 12 11:24:29 2017 +0000
reproducible Arch Linux: cleanup scheduler output
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_archlinux_scheduler.sh | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/bin/reproducible_archlinux_scheduler.sh b/bin/reproducible_archlinux_scheduler.sh
index cdcec4d..0fa763b 100755
--- a/bin/reproducible_archlinux_scheduler.sh
+++ b/bin/reproducible_archlinux_scheduler.sh
@@ -16,6 +16,7 @@ update_archlinux_repositories() {
echo "$(date -u) - Updating Arch Linux repositories, currently $(find $BASE/archlinux/ -name pkg.needs_build | wc -l ) packages scheduled."
UPDATED=$(mktemp -t archlinuxrb-scheduler-XXXXXXXX)
NEW=$(mktemp -t archlinuxrb-scheduler-XXXXXXXX)
+ OLDER=$(mktemp -t archlinuxrb-scheduler-XXXXXXXX)
local SESSION="archlinux-scheduler-$RANDOM"
schroot --begin-session --session-name=$SESSION -c jenkins-reproducible-archlinux
schroot --run-session -c $SESSION --directory /var/tmp -- sudo pacman -Syu --noconfirm
@@ -51,12 +52,12 @@ update_archlinux_repositories() {
if [ "$VERCMP" = "1" ] ; then
# schedule packages where an updated version is availble
echo $REPO/$pkgbase >> $UPDATED
- echo "$(date -u ) - we know about $REPO/$pkgbase $VERSION, but the repo has $version, so rescheduling... "
+ echo "$(date -u ) - we know $REPO/$pkgbase $VERSION, but repo has $version, so rescheduling... "
touch $BASE/archlinux/$REPO/$pkgbase/pkg.needs_build
elif [ "$VERCMP" = "-1" ] ; then
- echo "We know about $pkgbase $VERSION, but repo has $version, but thats ok because we build from trunk."
+ echo "$REPO/$pkgbase $VERSION > $version" >> $OLDER
else
- echo "This should never happen, we know about $pkgbase $VERSION, but repo has $version. \$VERCMP=$VERCMP"
+ echo "$(date -u ) - This should never happen: we know about $pkgbase $VERSION, but repo has $version. \$VERCMP=$VERCMP"
fi
fi
else
@@ -72,6 +73,9 @@ update_archlinux_repositories() {
updated=$(grep -c ^$REPO $UPDATED || true)
echo "$(date -u ) - scheduled $new/$updated packages in repository '$REPO'."
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...
--
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