From 5707a958ac2b44d573d50260b1d0d40887662011 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 12 Jan 2023 21:35:25 -0500 Subject: chore(ci): try to make sysroot step more reliable (#17383) Main is failing a lot because of: ``` Err:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 debootstrap all 1.0.118ubuntu1.8 Connection failed [IP: 40.81.13.82 80] Fetched 44.1 MB in 60s (734 kB/s) E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.118ubuntu1.8_all.deb Connection failed [IP: 40.81.13.82 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ``` --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72cc8c5e3..006d9c12a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -187,8 +187,8 @@ jobs: gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/llvm-snapshot.gpg sudo apt-get update - sudo apt-get install --no-install-recommends debootstrap \ - clang-15 lld-15 + # this was unreliable sometimes, so try again if it fails + sudo apt-get install --no-install-recommends debootstrap clang-15 lld-15 || echo 'Failed. Trying again.' && sudo apt-get clean && sudo apt-get update && sudo apt-get install --no-install-recommends debootstrap clang-15 lld-15 # Create ubuntu-16.04 sysroot environment, which is used to avoid # depending on a very recent version of glibc. -- cgit v1.2.3