From a19e19440d4102668830a9da579c3ee71d2fbf1a Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Wed, 11 Nov 2026 16:08:47 +0000 Subject: [PATCH] Add a backup Ubuntu package mirror in CI (#66841) ## 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 --- 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++