[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian buildinfo stats: include number of packages without .buildinfo file

Holger Levsen gitlab at salsa.debian.org
Thu Feb 27 18:39:47 GMT 2020



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


Commits:
c733ee1d by Holger Levsen at 2020-02-27T19:39:30+01:00
reproducible Debian buildinfo stats: include number of packages without .buildinfo file

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

- - - - -


1 changed file:

- bin/reproducible_html_builtin-pho.sh


Changes:

=====================================
bin/reproducible_html_builtin-pho.sh
=====================================
@@ -22,7 +22,6 @@ query_builtin_pho_db() {
 	else
 		local SUITE=$SUITE
 	fi
- 
 	psql --tuples-only buildinfo <<EOF > $DUMMY_FILE
 SELECT DISTINCT p.source,p.version
 FROM
@@ -47,16 +46,18 @@ EOF
 create_buildinfo_page() {
 	VIEW=buildinfo
 	PAGE=index_${VIEW}.html
+	echo "$(date -u) - querying builtin-pho database for $SUITE/$ARCH."
+	query_builtin_pho_db
 	echo "$(date -u) - starting to write $PAGE page for $SUITE/$ARCH."
 	write_page_header $VIEW "Overview of various statistics about .buildinfo files for $SUITE/$ARCH"
-	write_page "<p>Packages without .buildinfo files in $SUITE/$ARCH:"
-	write_page "<br/><small>ToDo: include count at top</small>"
+	write_page "<p>"
+	cat $DUMMY_FILE | wc -l >> $PAGE
+	write_page "packages without .buildinfo files in $SUITE/$ARCH:"
 	write_page "<br/><small>ToDo: graph that count</small>"
 	write_page "<br/><small>ToDo: trigger rsync job on success</small>"
 	write_page "<br/><small>ToDo: link these pages from navigation</small>"
 	write_page "<br/><small>ToDo: make buildinfo-pool links work with server side redirects</small>"
 	write_page "</p>"
-	query_builtin_pho_db
 	write_page "<pre>"
 	cat $DUMMY_FILE | tr -d ' '  | sed -E "s/([^|]*)(.*)/<a href=\"https:\/\/tracker.debian.org\/\1\">\1<\/a> <a href=\"https:\/\/packages.debian.org\/$SUITE\/\1\">binaries (\2)<\/a> <a href=\"https:\/\/buildinfos.debian.net\/\1\">.buildinfo<\/a>/g" | tr -d '|' >> $PAGE
 	write_page "</pre>"



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/c733ee1d734b01cce7eafecd0996dadd35a2bc3b
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/20200227/2986b69c/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list