From 1e9b61c141161aef464fc4055b108860af4c1b23 Mon Sep 17 00:00:00 2001 From: Martin Matyas Date: Tue, 17 Nov 2026 12:33:04 +0100 Subject: [PATCH] CI: apt retries a failed download 10 times The nightly emulator run failed twice on 17 November when Launchpad's PPA (the ST's cross-mint) answered 503 for one package, after apt's default 3 tries. Every apt-get update and install now takes Acquire::Retries=10; apt waits longer between tries (up to 30 s), about three minutes in all. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/build.yml | 6 +++--- .github/workflows/emulators.yml | 30 +++++++++++++++--------------- .github/workflows/test.yml | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a89b7c..a5611a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -91,7 +91,7 @@ jobs: tar -xJf /tmp/llvm-mos.tar.xz -C ~ - name: c1541 (the C64's disk image; VICE's package, no ROMs needed) if: matrix.dir == 'c64' - run: sudo apt-get update -q && sudo apt-get install -y -q --no-install-recommends vice + run: sudo apt-get -o Acquire::Retries=10 update -q && sudo apt-get -o Acquire::Retries=10 install -y -q --no-install-recommends vice - name: build run: C1541=$(command -v c1541 || true) LLVM_MOS=~/llvm-mos python3 tools/${{ matrix.script }} - name: memory budget @@ -131,8 +131,8 @@ jobs: - name: cross-mint (ppa:vriviere/ppa) run: | sudo add-apt-repository -y ppa:vriviere/ppa - sudo apt-get update -q - sudo apt-get install -y -q cross-mint-essential + sudo apt-get -o Acquire::Retries=10 update -q + sudo apt-get -o Acquire::Retries=10 install -y -q cross-mint-essential - name: build run: python3 tools/build_st.py --st - uses: actions/upload-artifact@v4 diff --git a/.github/workflows/emulators.yml b/.github/workflows/emulators.yml index edc9290..0d404c7 100644 --- a/.github/workflows/emulators.yml +++ b/.github/workflows/emulators.yml @@ -49,8 +49,8 @@ jobs: mkdir -p ~/openwatcom && tar -xJf /tmp/ow.tar.xz -C ~/openwatcom - name: DOSBox-X, the displays, the relay run: | - sudo apt-get update -q - sudo apt-get install -y -q dosbox-x xvfb x11-utils xdotool ffmpeg + sudo apt-get -o Acquire::Retries=10 update -q + sudo apt-get -o Acquire::Retries=10 install -y -q dosbox-x xvfb x11-utils xdotool ffmpeg tools/ci/displays.sh tools/ci/relay.sh build/venv/bin/pip install -q numpy @@ -111,7 +111,7 @@ jobs: ~/emsdk/emsdk install "$EMSDK_VERSION" && ~/emsdk/emsdk activate "$EMSDK_VERSION" - name: the displays, the relay run: | - sudo apt-get update -q && sudo apt-get install -y -q xvfb x11-utils + sudo apt-get -o Acquire::Retries=10 update -q && sudo apt-get -o Acquire::Retries=10 install -y -q xvfb x11-utils tools/ci/displays.sh tools/ci/relay.sh build/venv/bin/pip install -q websockets @@ -136,8 +136,8 @@ jobs: - name: cross-mint, Hatari, the displays, the relay run: | sudo add-apt-repository -y ppa:vriviere/ppa - sudo apt-get update -q - sudo apt-get install -y -q cross-mint-essential hatari xvfb x11-utils xdotool ffmpeg + sudo apt-get -o Acquire::Retries=10 update -q + sudo apt-get -o Acquire::Retries=10 install -y -q cross-mint-essential hatari xvfb x11-utils xdotool ffmpeg tools/ci/displays.sh tools/ci/relay.sh - uses: actions/cache@v4 @@ -180,8 +180,8 @@ jobs: - name: bebbo's gcc, FS-UAE, the displays, the relay run: | docker pull -q "$AMIGA_IMAGE" && docker tag "$AMIGA_IMAGE" amigadev/crosstools:m68k-amigaos - sudo apt-get update -q - sudo apt-get install -y -q fs-uae xvfb x11-utils xdotool ffmpeg + sudo apt-get -o Acquire::Retries=10 update -q + sudo apt-get -o Acquire::Retries=10 install -y -q fs-uae xvfb x11-utils xdotool ffmpeg tools/ci/displays.sh tools/ci/relay.sh - name: replay @@ -223,8 +223,8 @@ jobs: key: vice-2-${{ env.VICE_VERSION }}-${{ env.VICE_PATCH_HASH }} - name: VICE, headless, with the BomberNet patch (monitor keys, WiC64 firmware timing, the Ultimate's network) run: | - sudo apt-get update -q # on every run: the cached VICE links against these - sudo apt-get install -y -q build-essential pkg-config xa65 dos2unix libcurl4-openssl-dev flex bison libpng-dev zlib1g-dev + sudo apt-get -o Acquire::Retries=10 update -q # on every run: the cached VICE links against these + sudo apt-get -o Acquire::Retries=10 install -y -q build-essential pkg-config xa65 dos2unix libcurl4-openssl-dev flex bison libpng-dev zlib1g-dev [ "${{ steps.vice.outputs.cache-hit }}" = true ] && exit 0 curl -sSL -o /tmp/vice.tar.gz "https://sourceforge.net/projects/vice-emu/files/releases/vice-$VICE_VERSION.tar.gz/download" tar -xzf /tmp/vice.tar.gz -C /tmp @@ -276,8 +276,8 @@ jobs: tar -xJf /tmp/llvm-mos.tar.xz -C ~ - name: atari800 (its built-in AltirraOS), the displays run: | - sudo apt-get update -q - sudo apt-get install -y -q atari800 xvfb x11-utils ffmpeg python3-pil + sudo apt-get -o Acquire::Retries=10 update -q + sudo apt-get -o Acquire::Retries=10 install -y -q atari800 xvfb x11-utils ffmpeg python3-pil tools/ci/displays.sh - name: replay run: | @@ -328,8 +328,8 @@ jobs: ~/emsdk/emsdk install "$EMSDK_VERSION" && ~/emsdk/emsdk activate "$EMSDK_VERSION" - name: DOSBox-X, the displays, the relay run: | - sudo apt-get update -q - sudo apt-get install -y -q dosbox-x xvfb x11-utils xdotool ffmpeg + sudo apt-get -o Acquire::Retries=10 update -q + sudo apt-get -o Acquire::Retries=10 install -y -q dosbox-x xvfb x11-utils xdotool ffmpeg tools/ci/displays.sh tools/ci/relay.sh build/venv/bin/pip install -q numpy websockets pillow "zx==$ZX_EMU_VERSION" "z80==$Z80_EMU_VERSION" # (crossplay.py imports every machine) @@ -363,8 +363,8 @@ jobs: key: mz800emu-2-${{ env.MZ800EMU_COMMIT }}-${{ env.SDL3_TAG }}-${{ env.SDL3_IMAGE_TAG }}-${{ env.MINIZIP_NG_COMMIT }} - name: mz800emu and its libraries (SDL3, SDL3_image, minizip-ng from source) run: | - sudo apt-get update -q # on every run: the cached mz800emu links against these - sudo apt-get install -y -q xvfb x11-utils libgl1-mesa-dri build-essential cmake ninja-build pkg-config libglib2.0-dev libjson-glib-dev libcurl4-openssl-dev \ + sudo apt-get -o Acquire::Retries=10 update -q # on every run: the cached mz800emu links against these + sudo apt-get -o Acquire::Retries=10 install -y -q xvfb x11-utils libgl1-mesa-dri build-essential cmake ninja-build pkg-config libglib2.0-dev libjson-glib-dev libcurl4-openssl-dev \ zlib1g-dev libpng-dev libjpeg-dev libasound2-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev \ libxfixes-dev libxi-dev libxss-dev libxtst-dev libxkbcommon-dev libgl1-mesa-dev libegl1-mesa-dev libdbus-1-dev libudev-dev [ "${{ steps.emu.outputs.cache-hit }}" = true ] && exit 0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 288ba30..bce3c74 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v4 - name: QEMU and Zig run: | - sudo apt-get update -q && sudo apt-get install -y -q qemu-user-static + sudo apt-get -o Acquire::Retries=10 update -q && sudo apt-get -o Acquire::Retries=10 install -y -q qemu-user-static python3 -m venv build/venv && build/venv/bin/pip install -q ziglang - run: tools/test_portable.sh