[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 3 commits: reproducible: use common prefix for console message

Holger Levsen gitlab at salsa.debian.org
Thu Oct 4 17:06:43 BST 2018


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


Commits:
50fbefa7 by Holger Levsen at 2018-10-04T15:52:36Z
reproducible: use common prefix for console message

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

- - - - -
e60076f2 by Holger Levsen at 2018-10-04T16:05:04Z
reproducible Archlinux: add new page with recent builds in the last 24h

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

- - - - -
dc7f9baf by Holger Levsen at 2018-10-04T16:06:23Z
reproducible Archlinux: rename single_main_page() to dashboard_page()

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

- - - - -


2 changed files:

- bin/reproducible_common.sh
- bin/reproducible_html_archlinux.sh


Changes:

=====================================
bin/reproducible_common.sh
=====================================
@@ -564,7 +564,7 @@ publish_page() {
 	fi
 	cp -v $PAGE $BASE/$TARGET
 	rm $PAGE
-	echo "Enjoy $REPRODUCIBLE_URL/$TARGET"
+	echo "$(date -u) - enjoy $REPRODUCIBLE_URL/$TARGET"
 }
 
 gen_package_html() {


=====================================
bin/reproducible_html_archlinux.sh
=====================================
@@ -183,7 +183,7 @@ archlinux_page_footer(){
 	publish_page archlinux
 }
 
-archlinux_page_repostats(){
+archlinux_repostats_table(){
 	write_page "    <table><tr><th>repository</th><th>all source packages</th>"
 	write_page "     <th><a href='/archlinux/state_GOOD.html'>reproducible packages</a></th>"
 	write_page "     <th><a href='/archlinux/state_FTBR.html'>unreproducible packages</a></th>"
@@ -194,17 +194,15 @@ archlinux_page_repostats(){
 	write_page "     <th><a href='/archlinux/state_UNKNOWN.html'>unknown state</a></th></tr>"
 	cat $HTML_REPOSTATS >> $PAGE
 	write_page "    </table>"
+	write_page "    <p><a href='/archlinux/recent_builds.html'>(recent builds)</a></p>"
 }
 
-single_main_page(){
-	#
-	# write out the actual webpage
-	#
+dashboard_page(){
 	PAGE=archlinux.html
 	TITLE="Reproducible archlinux ?!"
 	archlinux_page_header
 	write_page_intro 'Arch Linux'
-	archlinux_page_repostats
+	archlinux_repostats_table
 	# include graphs
 	write_page '<p style="clear:both;">'
 	for REPOSITORY in $ARCHLINUX_REPOS ; do
@@ -222,7 +220,7 @@ repository_pages(){
 		TITLE="Reproducible archlinux $REPOSITORY ?!"
 		echo "$(date -u) - starting to write page for $REPOSITORY'."
 		archlinux_page_header
-		archlinux_page_repostats
+		archlinux_repostats_table
 		SUITE="archlinux_$REPOSITORY"
 		TESTED=$(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';")
@@ -244,7 +242,7 @@ state_pages(){
 		TITLE="Reproducible archlinux, packages in state $STATE"
 		echo "$(date -u) - starting to write page for state $STATE'."
 		archlinux_page_header
-		archlinux_page_repostats
+		archlinux_repostats_table
 		TESTED=$(query_db "SELECT count(*) FROM sources AS s JOIN results AS r ON s.id=r.package_id
 				WHERE s.architecture='x86_64' AND r.status LIKE '$STATE%';")
 		if [ "$STATE" = "UNKNOWN" ] ; then
@@ -286,7 +284,7 @@ repository_state_pages(){
 			TITLE="Reproducible archlinux, packages in $REPOSITORY in state $STATE"
 			echo "$(date -u) - starting to write page for packages in $REPOSITORY in state $STATE'."
 			archlinux_page_header
-			archlinux_page_repostats
+			archlinux_repostats_table
 			TESTED=$(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 '$STATE%';")
 			if [ "$STATE" = "UNKNOWN" ] ; then
@@ -318,6 +316,27 @@ repository_state_pages(){
 	done
 }
 
+recent_builds(){
+	PAGE=recent_builds.html
+	TITLE="Reproducible archlinux, builds in the last 24h"
+	echo "$(date -u) - starting to write page recent builds."
+	archlinux_page_header
+	archlinux_repostats_table
+	write_page "<h2>Recent builds of Archlinux packages in the last 24h</h2>"
+	include_pkg_table_header_in_page
+	MAXDATE="$(date -u +'%Y-%m-%d %H:%M' -d '24 hours ago')"
+	STATE_PKGS=$(query_db "SELECT s.name FROM sources AS s JOIN results AS r ON s.id=r.package_id
+			WHERE s.architecture='x86_64'
+			AND r.build_date > '$MAXDATE'
+			ORDER BY r.build_date
+			DESC")
+	for SRCPACKAGE in ${STATE_PKGS} ; do
+		include_pkg_html_in_page
+	done
+	write_page "    </table>"
+	archlinux_page_footer
+}
+
 #
 # main
 #
@@ -349,7 +368,8 @@ if [ -z "$1" ] ; then
 	HEIGHT=960
 
 	repostats
-	single_main_page
+	dashboard_page
+	recent_builds
 	repository_pages
 	state_pages
 	repository_state_pages



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/5dd4287a378afcea7836e24b611e052cebeab4a2...dc7f9baf5690d83253636b7f09157de1abd5aa73

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/5dd4287a378afcea7836e24b611e052cebeab4a2...dc7f9baf5690d83253636b7f09157de1abd5aa73
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/20181004/8a405af1/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list