[Git][qa/jenkins.debian.net][master] installation tests: turn the maintenance job into a no op
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu Aug 21 19:13:02 BST 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
06e08197 by Holger Levsen at 2025-08-21T20:12:12+02:00
installation tests: turn the maintenance job into a no op
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- bin/maintenance.sh
- job-cfg/chroot-installation.yaml.py
Changes:
=====================================
bin/maintenance.sh
=====================================
@@ -1,39 +1,12 @@
#!/bin/bash
-# Copyright 2012-2024 Holger Levsen <holger at layer-acht.org>
+# Copyright 2012-2025 Holger Levsen <holger at layer-acht.org>
# released under the GPLv2
DEBUG=false
. /srv/jenkins/bin/common-functions.sh
common_init "$@"
-check_for_mounted_chroots() {
- CHROOT_PATTERN="/chroots/${1}-*"
- OUTPUT=$(mktemp)
- ls $CHROOT_PATTERN 2>/dev/null > $OUTPUT || true
- if [ -s $OUTPUT ] ; then
- figlet "Warning:"
- echo
- echo "Probably manual cleanup needed:"
- echo
- echo "$ ls -la $CHROOT_PATTERN"
- # List the processes using the partition
- echo
- fuser -mv $CHROOT_PATTERN
- cat $OUTPUT
- rm $OUTPUT
- exit 1
- fi
- rm $OUTPUT
-}
-
-chroot_checks() {
- check_for_mounted_chroots $1
- report_disk_usage /chroots
- report_disk_usage /schroots
- echo "WARNING: should remove directories in /(s)chroots which are older than a month."
-}
-
compress_old_jenkins_logs() {
local COMPRESSED
# compress logs to save space
@@ -134,14 +107,6 @@ report_filetype_usage() {
rm $OUTPUT
}
-wait4idle() {
- echo "Waiting until no $1.sh process runs.... $(date)"
- while [ $(ps fax | grep -c $1.sh) -gt 1 ] ; do
- sleep 30
- done
- echo "Done waiting: $(date)"
-}
-
general_maintenance() {
uptime
@@ -264,10 +229,6 @@ if [ -z $1 ] ; then
fi
else
case $1 in
- chroot-installation*) wait4idle $1
- report_disk_usage $1
- chroot_checks $1
- ;;
d-i) report_old_directories /srv/d-i 7 /srv/d-i/workspace /srv/d-i/isos
remove_old_d-i_manual_builds
;;
=====================================
job-cfg/chroot-installation.yaml.py
=====================================
@@ -292,10 +292,10 @@ for base_distro in sorted(base_distros):
jobs.append({'{name}_{dist}_{action}': {
'action': 'maintenance',
'dist': maint_distros,
- 'my_description': 'Maintainance job for chroot-installation_{dist}_* jobs, do some cleanups and monitoring so that there is a predictable environment.',
+ 'my_description': 'No op maintainance job for chroot-installation_{dist}_* jobs, to trigger bootstrap jobs....',
'my_prio': '135',
'my_recipients': 'qa-jenkins-scm at lists.alioth.debian.org',
- 'my_shell': '/srv/jenkins/bin/jenkins_master_wrapper.sh chroot-installation_{dist}',
+ 'my_shell': '/usr/bin/true',
'my_view': 'jenkins.d.n'}})
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/06e081971ced7f06b3e536a86ab870759bc348ae
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/06e081971ced7f06b3e536a86ab870759bc348ae
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/20250821/e990e9a6/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list