Skip to content

Commit e89cbe2

Browse files
committed
fix(ci): tolerate apt-get update timeout, rely on cached lists
Run 25750098370 hit apt-get update timeout (180s) against a flaky mirror and aborted the whole step. The github-runner image ships an up-to-date package cache, so we can safely continue with cached lists when update is slow. Updates t27#592
1 parent 7954cb3 commit e89cbe2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/build-fgg676.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ jobs:
9797
done
9898
9999
export DEBIAN_FRONTEND=noninteractive
100-
timeout 180 sudo -E apt-get update -qq -o Acquire::Retries=3
100+
# apt-get update may stall on a flaky mirror; ignore failure
101+
# because the GitHub runner image already ships an up-to-date
102+
# package cache for everything we install below.
103+
timeout 180 sudo -E apt-get update -qq -o Acquire::Retries=3 \
104+
|| echo "WARN: apt-get update failed/timeout, continuing with cached lists"
101105
102106
# Core CLI tools (always required) installed strictly.
103107
timeout 300 sudo -E apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)