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
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,14 @@ jobs:
run: |
for attempt in 1 2 3; do
docker compose build ${{ matrix.target }} && exit 0
echo "::warning::'${{ matrix.target }}' image build attempt $attempt failed (likely a registry timeout); retrying in 30s"
sleep 30
if [ "$attempt" -lt 3 ]; then
echo "::warning::'${{ matrix.target }}' image build attempt $attempt failed (likely a registry timeout); retrying in 30s"
sleep 30
fi
done
exit 1
# CARGO_NET_RETRY is passed into the container so cargo retries crate
# downloads; a real test failure still fails fast (no step-level retry).
# Forward the workflow-wide CARGO_NET_RETRY into the container (single
# source of truth) so cargo retries crate downloads; a real test failure
# still fails fast (no step-level retry).
- name: Test on ${{ matrix.target }}
run: docker compose run --rm -e CARGO_NET_RETRY=10 ${{ matrix.target }} cargo test --workspace
run: docker compose run --rm -e CARGO_NET_RETRY ${{ matrix.target }} cargo test --workspace