[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Archlinux: correctly count unknown & untested packages

Holger Levsen gitlab at salsa.debian.org
Wed Sep 26 00:45:08 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
f8e26289 by Holger Levsen at 2018-09-25T23:45:00Z
reproducible Archlinux: correctly count unknown & untested packages

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_html_archlinux.sh


Changes:

=====================================
bin/reproducible_html_archlinux.sh
=====================================
@@ -54,8 +54,9 @@ repostats(){
 		NR_DEPWAIT=$(query_db "SELECT count(*) FROM sources AS s JOIN results AS r ON s.id=r.package_id WHERE s.architecture='x86_64' AND s.suite='$SUITE' AND r.status LIKE 'DEPWAIT_%';")
 		NR_404=$(query_db "SELECT count(*) FROM sources AS s JOIN results AS r ON s.id=r.package_id WHERE s.architecture='x86_64' AND s.suite='$SUITE' AND r.status LIKE '404_%';")
 		NR_BLACKLISTED=$(query_db "SELECT count(*) FROM sources AS s JOIN results AS r ON s.id=r.package_id WHERE s.architecture='x86_64' AND s.suite='$SUITE' AND r.status='BLACKLISTED';")
-		NR_UNKNOWN=$(query_db "SELECT count(*) FROM sources AS s JOIN results AS r ON s.id=r.package_id WHERE s.architecture='x86_64' AND s.suite='$SUITE' AND r.status='404';")
-		PERCENT_TOTAL=$(echo "scale=1 ; ($TESTED*100/$TOTAL)" | bc)
+		NR_UNKNOWN=$(query_db "SELECT count(*) FROM sources AS s JOIN results AS r ON s.id=r.package_id WHERE s.architecture='x86_64' AND s.suite='$SUITE' AND r.status LIKE 'UNKNOWN_%';")
+		let NR_UNKNOWN=$NR_UNKNOWN+$(query_db "SELECT count(s.name) FROM sources AS s WHERE s.architecture='x86_64' AND s.id NOT IN (SELECT package_id FROM results)")
+	PERCENT_TOTAL=$(echo "scale=1 ; ($TESTED*100/$TOTAL)" | bc)
 		if [ $(echo $PERCENT_TOTAL/1|bc) -lt 99 ] ; then
 			NR_TESTED="$TESTED <span style=\"font-size:0.8em;\">(tested $PERCENT_TOTAL% of $TOTAL)</span>"
 		else
@@ -229,6 +230,10 @@ state_pages(){
 			for PKG in $STATE_PKGS ; do
 				cat $ARCHBASE/$REPOSITORY/$PKG/pkg.html >> $PAGE 2>/dev/null || true
 			done
+			STATE_PKGS=$(query_db "SELECT s.name FROM sources AS s WHERE s.architecture='x86_64' AND s.id NOT IN (SELECT package_id FROM results)")
+			for PKG in $STATE_PKGS ; do
+				cat $ARCHBASE/$REPOSITORY/$PKG/pkg.html >> $PAGE 2>/dev/null || true
+			done
 		done
 		write_page "    </table>"
 		archlinux_page_footer



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/f8e26289cf25c6b568644b55e79d869a45dc6c5e

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/f8e26289cf25c6b568644b55e79d869a45dc6c5e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180925/590745bb/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list