[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: abort create_pkg_job if there are warnings we can do nothing about (except filing bugs unrelated to reproducible builds)
Holger Levsen
holger at moszumanska.debian.org
Mon Sep 21 18:18:42 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 53a1e7b86e59135302dbab808c853cc395d00a84
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Sep 21 20:18:25 2015 +0200
reproducible: abort create_pkg_job if there are warnings we can do nothing about (except filing bugs unrelated to reproducible builds)
---
bin/reproducible_create_meta_pkg_sets.sh | 14 ++++++++++++++
logparse/reproducible.rules | 2 --
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index 1b77f5c..373c919 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -12,6 +12,10 @@ common_init "$@"
ARCH=amd64
+# everything should be ok…
+WARNING=false
+ABORT=false
+
# helper functions
packages_list_to_deb822() {
ALL_PKGS=$(cat $TMPFILE | cut -d ":" -f1 | sed "s#([^()]*)##g ; s#\[[^][]*\]##g ; s#,##g ; s# #\n#g" |sort -u | tr '\n' '|')
@@ -52,6 +56,7 @@ update_if_similar() {
mv $TMPFILE $TARGET.new
echo
echo "Warning: too much difference for $TARGET, aborting. Please investigate and update manually:"
+ WARNING=true
echo
echo diff -u $TARGET $TARGET.new
diff -u $TARGET $TARGET.new || true
@@ -87,6 +92,7 @@ get_installable_set() {
rm -f $TMPFILE
echo "Warning: dose-deb-coinstall cannot calculate the installable set for $1"
dose-deb-coinstall --explain --failures --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2}
+ ABORT=true
fi
rm -f ${TMPFILE2}
set -e
@@ -291,6 +297,7 @@ update_pkg_sets() {
update_if_similar ${META_PKGSET[16]}.pkgset
else
echo "Warning: could not download tail's latest packages file(s), skipping tails pkg set..."
+ ABORT=true
fi
fi
@@ -314,6 +321,7 @@ update_pkg_sets() {
update_if_similar ${META_PKGSET[18]}.pkgset
else
echo "Warning: could not download grml's latest dpkg.selections file, skipping pkg set..."
+ ABORT=true
fi
fi
@@ -440,3 +448,9 @@ done
rm -f $TMPFILE ${TMPFILE2}
echo
+
+# abort the job if there are problems we cannot do anything about (except filing bugs! (but these are unrelated to reproducible builds...))
+if "$ABORT" && ! "$WARNING" ; then
+ exec /srv/jenkins/bin/abort.sh
+fi
+# (if there are warnings, we want to see them. aborting a job disables its notifications...)
diff --git a/logparse/reproducible.rules b/logparse/reproducible.rules
index 6a2d45f..09e75ad 100644
--- a/logparse/reproducible.rules
+++ b/logparse/reproducible.rules
@@ -9,10 +9,8 @@ warning /Warning: Tried, but failed to delete these:/
warning /Warning: processes found which should not be there/
warning /Warning: Found files with bad permissions.+/
warning /Warning: .+ could not be fully removed.+/
-warning /Warning: could not download.+/
warning /Warning: cannot update html pages for.+/
warning /Warning: package .+is probably already building elsewhere, exiting./
warning /Warning: too much difference for .+, aborting. Please investigate and update manually./
warning /Warning: couldn't delete old files from.+/
-warning /Warning: dose-deb-coinstall cannot.+/
warning /Warning: failed to update the .+ schroot./
--
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