Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Prune nested demo runtime stores
rcourtman72c8d9677a8a
diff --git a/.github/workflows/update-demo-server.yml b/.github/workflows/update-demo-server.ymlindex 4b0cde5cb0..4088089463 100644--- a/.github/workflows/update-demo-server.yml+++ b/.github/workflows/update-demo-server.yml@@ -385,19 +385,23 @@ jobs:if command -v systemctl >/dev/null 2>&1; thensudo systemctl stop "$SERVICE_NAME" || truefi- for volatile_path in \- "$CONFIG_DIR/metrics.db" \- "$CONFIG_DIR/metrics.db-shm" \- "$CONFIG_DIR/metrics.db-wal" \- "$CONFIG_DIR/notification_queue.db" \- "$CONFIG_DIR/notification_queue.db-shm" \- "$CONFIG_DIR/notification_queue.db-wal"- do- if [[ -e "$volatile_path" ]]; then- printf 'Removing demo volatile store: %s\n' "$volatile_path"- sudo rm -f -- "$volatile_path"- pruned_volatile=true- fi+ mapfile -d '' volatile_paths < <(+ sudo find "$CONFIG_DIR" -xdev -type f \( \+ -name "metrics.db" -o \+ -name "metrics.db-shm" -o \+ -name "metrics.db-wal" -o \+ -name "notification_queue.db" -o \+ -name "notification_queue.db-shm" -o \+ -name "notification_queue.db-wal" -o \+ -name "deploy.db" -o \+ -name "deploy.db-shm" -o \+ -name "deploy.db-wal" \+ \) -print0 2>/dev/null || true+ )+ for volatile_path in "${volatile_paths[@]}"; do+ printf 'Removing demo volatile store: %s\n' "$(basename "$volatile_path")"+ sudo rm -f -- "$volatile_path"+ pruned_volatile=truedoneconfig_kb="$(sudo du -sk "$CONFIG_DIR" | awk 'NR == 1 {print $1}')"free_kb="$(df -Pk "$BACKUP_PARENT" | awk 'NR == 2 {print $4}')"diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.goindex 8efbf6c9f8..0f043059a5 100644--- a/scripts/installtests/build_release_assets_test.go+++ b/scripts/installtests/build_release_assets_test.go@@ -761,6 +761,8 @@ func TestUpdateDemoWorkflowUsesGovernedNetworkPath(t *testing.T) {`KEEP_BACKUPS=2`,`Removing demo backup to restore install headroom: %s`,`Pruning demo volatile runtime stores to restore install headroom.`,+ `sudo find "$CONFIG_DIR" -xdev -type f`,+ `-name "metrics.db"`,`Removing demo volatile store: %s`,`Demo host does not have enough free space to back up $CONFIG_DIR before install.`,`Verify public browser smoke`,