Skip to content

Commit 5c74b70

Browse files
committed
delete later doing retry for ci
1 parent 9c08d44 commit 5c74b70

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/integration-tests-amd.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,20 @@ jobs:
6464
~/.triton/json
6565
key: ${{ runner.os }}-${{ runner.arch }}-llvm-${{ steps.cache-key.outputs.llvm }}-nvidia-${{ steps.cache-key.outputs.nvidia }}-json-${{ steps.cache-key.outputs.json }}
6666
- name: Install dependencies
67-
run: apt-get update && apt-get install -y clang lld ccache
67+
run: |
68+
# `apt-get update` can transiently fail on Ubuntu security mirrors
69+
# (e.g. dep11 components mid-sync). Those files are cosmetic
70+
# AppStream metadata and unrelated to the packages we need, so retry
71+
# a few times and then continue even if update still reports errors;
72+
# `apt-get install` will use whatever indexes are cached.
73+
for i in 1 2 3; do
74+
apt-get -o Acquire::Retries=5 update && break
75+
echo "apt-get update attempt $i failed, retrying in 10s..."
76+
sleep 10
77+
done
78+
apt-get install -y clang lld ccache
79+
# Fail loudly if any required tool is still missing.
80+
command -v clang && command -v lld && command -v ccache
6881
- name: Inspect cache directories
6982
run: |
7083
mkdir -p ~/.triton

0 commit comments

Comments
 (0)