[Git][qa/jenkins.debian.net][master] rdn: deal gracefully with no backups for the day and some refactoring too
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu Apr 17 12:39:08 BST 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
ce0ff100 by Holger Levsen at 2025-04-17T13:38:47+02:00
rdn: deal gracefully with no backups for the day and some refactoring too
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- bin/debrebuild_cache_limiter.sh
- bin/rebuilderd_db_backup_compress.sh
Changes:
=====================================
bin/debrebuild_cache_limiter.sh
=====================================
@@ -10,12 +10,11 @@ if [ ! -d $CACHE ] ; then
exit 1
fi
+LIMIT=100
case $HOSTNAME in
ionos17*) LIMIT=50 ;;
codethink*) LIMIT=12 ;;
osuosl*-amd64) LIMIT=333 ;;
- osuosl*-ppc64el) LIMIT=100 ;;
- infom07*|infom08*) LIMIT=100 ;;
riscv64*) LIMIT=180 ;;
*) echo "Limit for $HOSTNAME not defined."
exit 1 ;;
=====================================
bin/rebuilderd_db_backup_compress.sh
=====================================
@@ -10,7 +10,7 @@ set -e
# actually compress those backups
TODAY=$(date '+%Y-%m-%d' -u)
-FILES=$(find /srv/rebuilderd/*/stats/db-backup/db-back-$TODAY -type f ! -name '*.zst' ! -name '*.xz')
+FILES=$(find /srv/rebuilderd/*/stats/db-backup/db-back-$TODAY -type f ! -name '*.zst' ! -name '*.xz' 2>/dev/null || exit 0)
for i in $FILES ; do
zstdmt --rm -4 $i
done
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ce0ff1002590f5b7ce8ed3bd3da18a125197babe
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ce0ff1002590f5b7ce8ed3bd3da18a125197babe
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/20250417/47218f3a/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list