summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-07-31 15:05:21 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-08-01 12:20:59 +0000
commit609d68de146dca473180486aee94fff0430c9560 (patch)
tree864bab03f3d8c2dd19fa41d2c484714c3537ac4a /bin/reproducible_build.sh
parentc22c77e35185c6b01a88fd4e8d29a0ff3194c137 (diff)
downloadjenkins.debian.net-609d68de146dca473180486aee94fff0430c9560.tar.xz
reproducible: add a new status, "depwait", where package failing to install their build-deps ends to. This will clear FTBFS a few, and give a more easy filtering for some use cases
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 3941bfea..c1d30a08 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -195,6 +195,16 @@ handle_404() {
exit 0 # RBUILDLOG and SAVE_ARTIFACTS and NOTIFY are used in cleanup_all called at exit
}
+handle_depwait() {
+ echo "Downloading the build dependencies failed" | tee -a "$RBUILDLOG"
+ echo "Maybe there was a network problem, or the build dependencies are currently uninstallable; consider filing a bug in the last case."
+ echo "Network problems are automatically retried after some hours."
+ calculate_build_duration
+ update_db_and_html "depwait"
+ if [ $SAVE_ARTIFACTS -eq 1 ] ; then SAVE_ARTIFACTS=0 ; fi
+ if [ -n "$NOTIFY" ] ; then NOTIFY="depwait" ; fi
+}
+
handle_not_for_us() {
# a list of valid architecture for this package should be passed to this function
echo "Package ${SRCPACKAGE} (${VERSION}) shall only be build on \"$(echo "$@" | xargs echo )\" and thus was skipped." | tee -a ${RBUILDLOG}
@@ -207,7 +217,14 @@ handle_not_for_us() {
}
handle_ftbfs() {
+ local BUILD
echo "${SRCPACKAGE} failed to build from source."
+ for BUILD in "1" "2"; do
+ if zgrep -F "E: pbuilder-satisfydepends failed." "$BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ; then
+ handle_depwait
+ return
+ fi
+ done
calculate_build_duration
update_db_and_html "FTBFS"
if [ $SAVE_ARTIFACTS -eq 1 ] ; then SAVE_ARTIFACTS=0 ; fi