Skip to content

Commit 27f9b43

Browse files
YannByronclaudeCodex
committed
ci: retry Python system dependency installation
Refresh APT indexes before each retry to recover from transient mirror 404s. Stop after three failed attempts and preserve the failure status. Co-Authored-By: Codex <noreply@anthropic.com> AI-Model: gpt-6 Co-Authored-By: Codex <noreply@ai-tool.com> AI-Contributed/Feature: 25/25 AI-Contributed/UT: 0/0
1 parent d9d4e82 commit 27f9b43

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

‎.github/workflows/paimon-python-checks.yml‎

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,22 @@ jobs:
6969
- name: Install system dependencies
7070
shell: bash
7171
run: |
72-
apt-get update && apt-get install -y \
73-
build-essential \
74-
git \
75-
curl \
76-
pkg-config \
77-
libssl-dev \
78-
libclang-dev \
79-
&& apt-get clean \
80-
&& rm -rf /var/lib/apt/lists/*
72+
# Refresh indexes on retry as well: mirrors can briefly return 404 for packages.
73+
for attempt in 1 2 3; do
74+
if apt-get update && apt-get install -y \
75+
build-essential \
76+
git \
77+
curl \
78+
pkg-config \
79+
libssl-dev \
80+
libclang-dev; then
81+
break
82+
fi
83+
[ "$attempt" -lt 3 ] || exit 1
84+
sleep 10
85+
done
86+
apt-get clean
87+
rm -rf /var/lib/apt/lists/*
8188
8289
- name: Verify Java and Maven installation
8390
run: |

0 commit comments

Comments
 (0)