From 8f842a7f089ba92789983c1b4fd88db49c6e4ca3 Mon Sep 17 00:00:00 2001 From: cflmy Date: Thu, 26 Nov 2026 19:06:30 +0800 Subject: [PATCH] ci: retry verified package indexes before ecosystem tests --- .woodpecker/eco.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.woodpecker/eco.yml b/.woodpecker/eco.yml index da1dd3c..811c1e0 100644 --- a/.woodpecker/eco.yml +++ b/.woodpecker/eco.yml @@ -22,9 +22,18 @@ steps: image: mcr.microsoft.com/playwright:v1.49.0-noble depends_on: [layout] commands: - - apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git python3 python3-jsonschema build-essential - | set -eu + for attempt in 1 2 3; do + if apt-get -o Acquire::By-Hash=force -o Acquire::Retries=3 update --error-on=any; then + break + fi + if [ "$attempt" -eq 3 ]; then + exit 1 + fi + sleep 15 + done + apt-get -o Acquire::Retries=3 install -y --no-install-recommends ca-certificates curl git python3 python3-jsonschema build-essential curl -fsSL --retry 3 https://sh.rustup.rs -o /tmp/marqdo-rustup.sh sh /tmp/marqdo-rustup.sh -y --profile minimal --default-toolchain 1.100.0 --no-modify-path export PATH="$HOME/.cargo/bin:$PATH"