From 5db8ed0c658c1909361905d3a3719e63d6eabd40 Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 16:29:27 +0000 Subject: [PATCH] Add a backup Ubuntu package mirror in CI (#66841) (cherry-pick to preview) (#66845) Cherry-pick of #66841 to preview ---- ## Summary Add the Clarkson Ubuntu mirror fallback used by Delta, restricted to GitHub Actions. Append it to existing Namespace archive and security mirror lists before installing Linux dependencies. This intentionally does not rewrite direct source URLs. CI will test whether the existing runner configuration is sufficient. Local developer runs remain unchanged. ## Validation - `bash -n script/linux` - `git diff --check` - Real-runner dependency installation is being checked by PR CI. Release Notes: - N/A Co-authored-by: Cole Miller --- script/linux | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script/linux b/script/linux index df95f90eaf4..e03923cc3d7 100755 --- a/script/linux +++ b/script/linux @@ -19,6 +19,16 @@ EOF # Ubuntu, Debian, Mint, Kali, Pop!_OS, Raspbian, etc. apt=$(command -v apt-get || true) if [[ -n $apt ]]; then + if [[ "${GITHUB_ACTIONS:-}" == "true" ]]; then + # Namespace's Ubuntu sources use these mirror lists; other runners may not. + for mirror_file in /etc/apt/apt-mirrors.txt /etc/apt/apt-security-mirrors.txt; do + if [[ -f "$mirror_file" ]] && ! grep -Fxq 'https://mirror.clarkson.edu/ubuntu/' "$mirror_file"; then + printf '\n%s\n' 'https://mirror.clarkson.edu/ubuntu/' | \ + $maysudo tee -a "$mirror_file" > /dev/null + fi + done + fi + deps=( gcc g++