From ab10e68218070e4798397cb595cc91d81a71543d Mon Sep 17 00:00:00 2001 From: Yogthos Date: Thu, 2 Jul 2026 14:16:47 -0400 Subject: [PATCH] Retry the Clojure installer download in CI A transient CDN timeout handed bash a 2-minute HTML error page instead of linux-install.sh and failed the run. curl now fails on HTTP errors and retries, and the script is sanity-checked before running. --- .github/workflows/tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d0036df..a3eff9c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,7 +56,11 @@ jobs: - name: Install JDK + Clojure (certify oracle) run: | sudo apt-get install -y default-jdk rlwrap - curl -L -O https://github.com/clojure/brew-install/releases/latest/download/linux-install.sh + # --retry + --fail so a transient CDN error retries instead of handing + # bash an HTML error page (a 2min timeout page flaked a run) + curl --fail --retry 5 --retry-delay 10 --retry-all-errors -L -O \ + https://github.com/clojure/brew-install/releases/latest/download/linux-install.sh + head -1 linux-install.sh | grep -q '^#!' || { echo "installer download corrupt"; cat linux-install.sh | head -5; exit 1; } sudo bash linux-install.sh clojure --version