From 0b36d28a3516172c1b70071c035d6f06aa24e9c2 Mon Sep 17 00:00:00 2001 From: Morten Harders Date: Fri, 6 Nov 2026 11:00:59 +0100 Subject: [PATCH] ci: fail fast when an apt mirror stalls The linux-amd64 release build hung for 20+ minutes downloading from the Azure Ubuntu mirror (v0.1.3 and v0.1.4). Retry downloads with a 30s timeout and cap the step at 10 minutes. --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/release.yml | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9b3aa0..86084f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,8 @@ jobs: cache: npm cache-dependency-path: frontend/package-lock.json - name: System libraries - run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev + timeout-minutes: 10 # a stalled mirror fails fast instead of hanging the job + run: sudo apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 update && sudo apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 install -y libgtk-3-dev libwebkit2gtk-4.1-dev - name: Frontend working-directory: frontend run: npm ci && npm run build @@ -67,7 +68,8 @@ jobs: cache-dependency-path: frontend/package-lock.json - name: System libraries if: runner.os == 'Linux' - run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev + timeout-minutes: 10 # a stalled mirror fails fast instead of hanging the job + run: sudo apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 update && sudo apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 install -y libgtk-3-dev libwebkit2gtk-4.1-dev - name: Frontend working-directory: frontend run: npm ci && npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6059a56..8330582 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,8 @@ jobs: cache-dependency-path: frontend/package-lock.json - name: System libraries if: runner.os == 'Linux' - run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev + timeout-minutes: 10 # a stalled mirror fails fast instead of hanging the job + run: sudo apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 update && sudo apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 install -y libgtk-3-dev libwebkit2gtk-4.1-dev - name: Wails run: go install github.com/wailsapp/wails/v2/cmd/wails@$(go list -m -f '{{.Version}}' github.com/wailsapp/wails/v2) - name: Build