[Git][qa/jenkins.debian.net][master] 3 commits: reproducible Debian dashboard: refactoring, update several more static stats only every 12h

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Mar 23 13:12:56 GMT 2024



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


Commits:
10a894d0 by Holger Levsen at 2024-03-23T14:03:38+01:00
reproducible Debian dashboard: refactoring, update several more static stats only every 12h

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

- - - - -
724cd340 by Holger Levsen at 2024-03-23T14:10:49+01:00
refactoring

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

- - - - -
452c6ecb by Holger Levsen at 2024-03-23T14:12:39+01:00
TODO: review eatmydata setup

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

- - - - -


3 changed files:

- TODO.infrastructure
- bin/reproducible_html_dashboard.sh
- hosts/common/etc/pbuilderrc


Changes:

=====================================
TODO.infrastructure
=====================================
@@ -16,6 +16,7 @@ ordered todo
 ------------
 turn SSD based swap on ionos1+5+11+15 into hdd based one
 check /srv/workspace (tmpfs or not) on all ionos nodes and all nodes in general
+	also, our pbuilderc is setup to only use eatmydata on armhf+i386 - because amd64+arm64 build on tmpfs anyway (which is not true anymore...)
 fix all FIXMEs and answer all question marks
 setup ionos4 as proxy for fkb, needs 2 core, 4gb ram, 128gb hdd (8 swap, 20 system, 100 /var/spool/squid)
 setup ionos14 as proxy for fra, needs 2 core, 4gb ram, 128gb hdd (8 swap, 20 system, 100 /var/spool/squid)


=====================================
bin/reproducible_html_dashboard.sh
=====================================
@@ -824,12 +824,22 @@ create_variations_page() {
 	publish_page debian
 }
 
+run_every_12h() {
+	if [[ $(($(date +%k) % 12)) -ne 0 ]]; then
+		return -1
+	else
+		return 0
+	fi
+}
+
+
 #
 # main
 #
 SUITE="unstable"
-update_bug_stats
-update_notes_stats
+# some stats are only updated every 12h
+run_every_12h && update_bug_stats
+run_every_12h && update_notes_stats
 for ARCH in ${ARCHS} ; do
 	for SUITE in $SUITES ; do
 		update_suite_arch_stats
@@ -845,10 +855,8 @@ for ARCH in ${ARCHS} ; do
 	done
 done
 create_performance_page
-create_variations_page
-create_bugs_page
-if [[ $(($(date +%k) % 12)) -eq 0 ]]; then
-	create_oldsuites_page
-fi
+run_every_12h && create_variations_page
+run_every_12h && create_bugs_page
+run_every_12h && create_oldsuites_page
 create_dashboard_page
 rm -f $DUMMY_FILE >/dev/null


=====================================
hosts/common/etc/pbuilderrc
=====================================
@@ -7,7 +7,7 @@
 #
 # cater for different locations
 MIRRORSITE="http://deb.debian.org/debian"
-# only use eatmydata on armhf+i386 - on amd64+arm64 we build in tmpfs anyway
+# only use eatmydata on armhf+i386 - on amd64+arm64 we build on tmpfs anyway
 case $HOSTNAME in
 	*i386*|*armhf*)
 		EATMYDATA=yes ;;
@@ -28,9 +28,9 @@ fi
 
 # needed to ignore failures due to running 398 days in the future…
 # (only on those nodes running in the future…)
-if [ "$HOSTNAME" = "ionos5-amd64" ] || [ "$HOSTNAME" = "ionos6-i386" ] || \
-   [ "$HOSTNAME" = "ionos15-amd64" ] || [ "$HOSTNAME" = "ionos16-i386" ] || \
-   [ "$HOSTNAME" = "codethink01-arm64" ] || [ "$HOSTNAME" = "codethink03-arm64" ] || \
-   [ "$HOSTNAME" = "infom02-amd64" ] ; then
-	APTGETOPT=(-o Acquire::Check-Valid-Until="false")
-fi
+case $HOSTNAME in
+	ionos5-amd64|ionos6-i386|ionos15-amd64|ionos16-i386|codethink01-arm64|codethink03-arm64|infom02-amd64)
+		APTGETOPT=(-o Acquire::Check-Valid-Until="false")
+		;;
+	*)	;;
+esac



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/7d3b8df0f15a24b3396f9333f3a0fb843b1ff066...452c6ecbb4d794ee80640960f74951a05463d3e8

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/7d3b8df0f15a24b3396f9333f3a0fb843b1ff066...452c6ecbb4d794ee80640960f74951a05463d3e8
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/20240323/ff28405a/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list