From ec372804e96e3ab3400d8f7469a5a8f319533cd2 Mon Sep 17 00:00:00 2001 From: chruffins <23645059+chruffins@users.noreply.github.com> Date: Thu, 3 Sep 2026 15:15:45 +0000 Subject: [PATCH] Wait for the dpkg lock before installing test dependencies Concurrent jobs on the shared runner occasionally hold the dpkg frontend lock while this step runs apt-get install, which then fails immediately with exit 100. Let apt wait up to five minutes for the lock and widen the step timeout to match. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2d1eba05..582f95e0c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -95,7 +95,7 @@ jobs: ! command -v swtpm &> /dev/null || \ ! test -d /usr/share/OVMF; then apt_update_with_retry - timeout 300s sudo apt-get install -y erofs-utils e2fsprogs iptables ovmf qemu-system-x86 qemu-utils swtpm + timeout 600s sudo apt-get -o DPkg::Lock::Timeout=300 install -y erofs-utils e2fsprogs iptables ovmf qemu-system-x86 qemu-utils swtpm fi if test -f /usr/share/OVMF/OVMF_CODE_4M.secboot.fd && test -f /usr/share/OVMF/OVMF_VARS_4M.ms.fd; then ovmf_code=/usr/share/OVMF/OVMF_CODE_4M.secboot.fd