Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,19 @@ jobs:
# Replaces the container: directive so we can free disk space first.
# Uses "docker run -d ... sleep infinity" + "docker exec" to preserve
# installed packages and env vars across steps.
# Retry the pull: nvcr.io intermittently times out ("context deadline
# exceeded") under load, and ~30 matrix jobs hit it at once. Pulls
# resume completed layers, so retries are cheap.
- name: Pull NVHPC container
if: matrix.nvhpc
run: docker pull "$NVHPC_IMAGE"
run: |
for attempt in 1 2 3 4 5; do
docker pull "$NVHPC_IMAGE" && exit 0
echo "docker pull failed (attempt $attempt/5); retrying in $((attempt * 30))s..."
sleep $((attempt * 30))
done
echo "::error::Failed to pull $NVHPC_IMAGE after 5 attempts"
exit 1

- name: Start NVHPC container
if: matrix.nvhpc
Expand Down
Loading