[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible openwrt: show packages as ftbfs when one build failed

Holger Levsen holger at moszumanska.debian.org
Sun Jul 19 16:22:03 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 29825ec07f5077bf235f7d8e89b83cd3d8f9a205
Author: Reiner Herrmann <reiner at reiner-h.de>
Date:   Thu Jul 16 22:29:19 2015 +0200

    reproducible openwrt: show packages as ftbfs when one build failed
---
 bin/reproducible_openwrt.sh | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index cd6701e..4daa4c3 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -216,9 +216,21 @@ cd $TMPDIR/b1
 tree .
 for i in * ; do
 	cd $i
+
+	# search images in both paths to find non-existing ones
+	IMGS1=$(find * -type f -name "*.bin" -o -name "*.squashfs" | sort -u )
+	pushd $TMPDIR/b2/$i
+	IMGS2=$(find * -type f -name "*.bin" -o -name "*.squashfs" | sort -u )
+	popd
+
 	echo "       <table><tr><th>Images for <code>$i</code></th></tr>" >> $DBD_HTML
-	for j in $(find * -name "*.bin" -o -name "*.squashfs" |sort -u ) ; do
+	for j in $(printf "$IMGS1\n$IMGS2" | sort -u ) ; do
 		let ALL_IMAGES+=1
+		if [ ! -f $TMPDIR/b1/$i/$j -o ! -f $TMPDIR/b2/$i/$j ] ; then
+			echo "         <tr><td><img src=\"/userContent/static/weather-storm.png\" alt=\"ftbfs icon\" /> $j (${SIZE}K) failed to build once.</td></tr>" >> $DBD_HTML
+			rm -f $BASE/openwrt/dbd/$i/$j.html # cleanup from previous (unreproducible) tests - if needed
+			continue
+		fi
 		call_debbindiff $i $j
 		get_filesize $j
 		if [ -f $TMPDIR/$i/$j.html ] ; then
@@ -243,9 +255,21 @@ create_results_dirs
 cd $TMPDIR/b1
 for i in * ; do
 	cd $i
+
+	# search packages in both paths to find non-existing ones
+	PKGS1=$(find * -type f -name "*.ipk" | sort -u )
+	pushd $TMPDIR/b2/$i
+	PKGS2=$(find * -type f -name "*.ipk" | sort -u )
+	popd
+
 	echo "       <table><tr><th>Packages for <code>$i</code></th></tr>" >> $DBD_HTML
-	for j in $(find * -name "*.ipk" |sort -u ) ; do
+	for j in $(printf "$PKGS1\n$PKGS2" | sort -u ) ; do
 		let ALL_PACKAGES+=1
+		if [ ! -f $TMPDIR/b1/$i/$j -o ! -f $TMPDIR/b2/$i/$j ] ; then
+			echo "         <tr><td><img src=\"/userContent/static/weather-storm.png\" alt=\"ftbfs icon\" /> $j (${SIZE}K) failed to build once.</td></tr>" >> $DBD_HTML
+			rm -f $BASE/openwrt/dbd/$i/$j.html # cleanup from previous (unreproducible) tests - if needed
+			continue
+		fi
 		call_debbindiff $i $j
 		get_filesize $j
 		if [ -f $TMPDIR/$i/$j.html ] ; then

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