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
15 changes: 14 additions & 1 deletion .github/workflows/replace-wedding-standby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,20 @@ jobs:
env:
WEDDING_REPAIR_OPERAND_TEST: "true"
run: |
docker pull ghcr.io/cloudnative-pg/postgresql@sha256:42708a75345b7a48fdd9257b071830783a97fd228529196b6313187a7198e185
image=ghcr.io/cloudnative-pg/postgresql@sha256:42708a75345b7a48fdd9257b071830783a97fd228529196b6313187a7198e185
# GHCR can answer `toomanyrequests` for a moment (#5514). Retry the pull of
# the same pinned digest with backoff and fail only after the last attempt.
attempts=4
for attempt in $(seq 1 "$attempts"); do
if docker pull "$image"; then
break
fi
if [ "$attempt" -eq "$attempts" ]; then
echo "::error::docker pull failed after ${attempts} attempts"
exit 1
fi
sleep $((attempt * 10))
done
go test -count=1 -timeout=1m -run '^TestLoopbackRequestReadsTheExporter$' ./scripts/replace-wedding-standby

repair:
Expand Down
Loading