diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-12 21:35:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 21:35:25 -0500 |
commit | 5707a958ac2b44d573d50260b1d0d40887662011 (patch) | |
tree | c510a8bb6e8547eacbd988f2964534a5397e7e79 | |
parent | 9e282155b77c2ea6168e2dbed5adad9137828190 (diff) |
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?
```
-rw-r--r-- | .github/workflows/ci.generate.ts | 6 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index 980661a2d..0c2f062e3 100644 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -10,6 +10,8 @@ const Runners = { "${{ github.repository == 'denoland/deno' && 'windows-2022-xl' || 'windows-2022' }}", }; +const installPkgsCommand = + "sudo apt-get install --no-install-recommends debootstrap clang-15 lld-15"; const sysRootStep = { name: "Set up incremental LTO and sysroot build", run: `# Avoid running man-db triggers, which sometimes takes several minutes @@ -23,8 +25,8 @@ curl https://apt.llvm.org/llvm-snapshot.gpg.key | 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 +${installPkgsCommand} || echo 'Failed. Trying again.' && sudo apt-get clean && sudo apt-get update && ${installPkgsCommand} # Create ubuntu-16.04 sysroot environment, which is used to avoid # depending on a very recent version of glibc. 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. |