From 24e012abad667fbf9499810228c10bf2ff2294df Mon Sep 17 00:00:00 2001 From: viniciusdc Date: Thu, 7 Mar 2024 13:22:26 -0300 Subject: [PATCH] fix: update CI job to address /var/lib/dpkg/lock-frontend issue and kill any process holding the lock --- .github/workflows/kvm-test.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/kvm-test.yaml b/.github/workflows/kvm-test.yaml index e4a8fcac..0c3342b0 100644 --- a/.github/workflows/kvm-test.yaml +++ b/.github/workflows/kvm-test.yaml @@ -10,9 +10,9 @@ jobs: test-kvm: name: KVM Test - # Disable ci-run untill addressing apt-get lock issue - runs-on: "cirun-runner--${{ github.run_id }}" - # runs-on: "ubuntu-latest" + # Disable ci-run untill addressing /var/lib/dpkg/lock-frontend issue + # runs-on: "cirun-runner--${{ github.run_id }}" + runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4 @@ -42,6 +42,10 @@ - name: Check hosts run: | cat /etc/hosts + - name: Kill any process that helds the lock + run: | + sudo lsof /var/lib/dpkg/lock-frontend + sudo kill -9 $(sudo lsof /var/lib/dpkg/lock-frontend | awk '{print $2}') - name: Extract Network Information run: |