From b6a75d1fef3a42d1974c20152ea93344dc533cb8 Mon Sep 17 00:00:00 2001 From: Gustavo Trott Date: Sat, 26 Oct 2024 09:56:07 -0300 Subject: [PATCH] check if there is apt and dpkg running --- .github/workflows/automated-tests.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/automated-tests.yml b/.github/workflows/automated-tests.yml index 05ddceae06..49a489b01c 100644 --- a/.github/workflows/automated-tests.yml +++ b/.github/workflows/automated-tests.yml @@ -295,14 +295,15 @@ jobs: echo "Retrying installation within $RETRY_INTERVAL seconds..." sleep $RETRY_INTERVAL fi + + echo "Check if there is some process still locking:1" + ps aux | grep -E 'dpkg|apt' + echo "Stop any ongoing processes related to apt-get or dpkg that might be stuck" # Use -q to suppress "no process found" messages # Kill any apt-get or dpkg processes that might be hanging - for process in apt-get dpkg; do - pkill -9 "$process" 2>/dev/null || true - done - killall -q apt-get || true - killall -q dpkg || true + killall -9 -q apt-get || true + killall -9 -q dpkg || true echo "Remove the lock files that may have been left behind" # Group lock file removal for better readability @@ -318,9 +319,12 @@ jobs: apt-get clean apt-get autoremove - echo "Identify if there is some process still locking" + echo "Check if there is some process still locking:2" ps aux | grep -E 'dpkg|apt' + #remove all apt-update to make the install faster + sed -i 's/apt-get update/#apt-get update/g' bbb-install.sh + RETRY_COUNT=$((RETRY_COUNT + 1)) done