summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-21 20:18:25 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-21 20:18:25 +0200
commit53a1e7b86e59135302dbab808c853cc395d00a84 (patch)
tree292dff5f8ea73332b8cba6034bf9a4b6753be7af
parenta01e47175f56431c8c05e59a7214cb88d51cc62c (diff)
downloadjenkins.debian.net-53a1e7b86e59135302dbab808c853cc395d00a84.tar.xz
reproducible: abort create_pkg_job if there are warnings we can do nothing about (except filing bugs unrelated to reproducible builds)
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh14
-rw-r--r--logparse/reproducible.rules2
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 1b77f5c6..373c9198 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 6a2d45fd..09e75ad7 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./