Skip to content

Commit ddb3903

Browse files
mguetta1claude
andauthored
Add retry logic for Chocolatey install on Windows (#229)
Chocolatey can intermittently fail with 504 Gateway Timeout errors. Add retry loop (3 attempts with 30s delay) to handle transient failures. Signed-off-by: Maayan Hadasi <mguetta@redhat.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4700c8b commit ddb3903

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/global-ci-bundle.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,11 @@ jobs:
599599
if: ${{ matrix.os == 'windows' }}
600600
shell: bash
601601
run: |
602-
choco install podman-cli
602+
for i in {1..3}; do
603+
choco install podman-cli && break
604+
echo "Chocolatey install failed (attempt $i/3), retrying in 30s..."
605+
sleep 30
606+
done
603607
podman machine init --rootful --memory 10240 --cpus 3
604608
podman machine start
605609

koncur-kantra/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ runs:
3636
if: ${{ inputs.os == 'windows' }}
3737
shell: bash
3838
run: |
39-
choco install podman-cli
39+
for i in {1..3}; do
40+
choco install podman-cli && break
41+
echo "Chocolatey install failed (attempt $i/3), retrying in 30s..."
42+
sleep 30
43+
done
4044
podman machine init --rootful --memory 10240 --cpus 3
41-
podman machine start
45+
podman machine start
4246
4347
- name: Also add local/bin to windows path and get host wsl ip
4448
if: ${{ inputs.os == 'windows' }}

0 commit comments

Comments
 (0)