Skip to content

Commit baba070

Browse files
jbachorikclaude
andcommitted
Add apt retries alongside IPv4 force in aarch64 Setup OS
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 442f509 commit baba070

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/test_workflow.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,9 @@ jobs:
388388
if: steps.set_enabled.outputs.enabled == 'true'
389389
run: |
390390
# ports.ubuntu.com's IPv6 route is intermittently unreachable from GH-hosted
391-
# aarch64 runners; force IPv4 so apt doesn't stall/fail on a dead IPv6 path.
392-
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4 >/dev/null
391+
# aarch64 runners; force IPv4 so apt doesn't stall/fail on a dead IPv6 path,
392+
# and retry on top in case of other transient connection blips.
393+
printf 'Acquire::ForceIPv4 "true";\nAcquire::Retries "5";\n' | sudo tee /etc/apt/apt.conf.d/99force-ipv4 >/dev/null
393394
sudo apt update -y
394395
sudo apt remove -y g++
395396
sudo apt autoremove -y

0 commit comments

Comments
 (0)