Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#13637] Retry and fall back when fetching libssl1.1 in CI (#13639)

Bharath Krishna8574ed9b9012
diff --git a/.github/workflows/backend-integration-test-action.yml b/.github/workflows/backend-integration-test-action.yml
index 6bde642272..cd26d94d6d 100644
--- a/.github/workflows/backend-integration-test-action.yml
+++ b/.github/workflows/backend-integration-test-action.yml
@@ -55,8 +55,14 @@ jobs:
- name: Install dependencies
run: |
- wget https://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
- sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
+ # libssl1.1 is not in the runner's apt sources, so the .deb is fetched directly.
+ deb=libssl1.1_1.1.1f-1ubuntu2_amd64.deb
+ for host in archive.ubuntu.com nz2.archive.ubuntu.com security.ubuntu.com; do
+ wget --tries=3 --timeout=30 -O "$deb" "https://$host/ubuntu/pool/main/o/openssl/$deb" && break
+ rm -f "$deb"
+ done
+ [ -s "$deb" ] || { echo "Could not download $deb from any mirror" >&2; exit 1; }
+ sudo dpkg -i "$deb"
- name: Backend Integration Test (JDK${{ inputs.java-version }}-${{ inputs.test-mode }}-${{ inputs.backend }})
id: integrationTest
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cc4fe47ad8..30d5754e27 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -173,8 +173,14 @@ jobs:
- name: Install dependencies
run: |
- wget https://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
- sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
+ # libssl1.1 is not in the runner's apt sources, so the .deb is fetched directly.
+ deb=libssl1.1_1.1.1f-1ubuntu2_amd64.deb
+ for host in archive.ubuntu.com nz2.archive.ubuntu.com security.ubuntu.com; do
+ wget --tries=3 --timeout=30 -O "$deb" "https://$host/ubuntu/pool/main/o/openssl/$deb" && break
+ rm -f "$deb"
+ done
+ [ -s "$deb" ] || { echo "Could not download $deb from any mirror" >&2; exit 1; }
+ sudo dpkg -i "$deb"
- name: Build with Gradle
run: |
diff --git a/.github/workflows/contrib-catalog-test.yml b/.github/workflows/contrib-catalog-test.yml
index cef67c2097..f2fe60a26c 100644
--- a/.github/workflows/contrib-catalog-test.yml
+++ b/.github/workflows/contrib-catalog-test.yml
@@ -95,8 +95,14 @@ jobs:
- name: Install dependencies
run: |
- wget https://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
- sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
+ # libssl1.1 is not in the runner's apt sources, so the .deb is fetched directly.
+ deb=libssl1.1_1.1.1f-1ubuntu2_amd64.deb
+ for host in archive.ubuntu.com nz2.archive.ubuntu.com security.ubuntu.com; do
+ wget --tries=3 --timeout=30 -O "$deb" "https://$host/ubuntu/pool/main/o/openssl/$deb" && break
+ rm -f "$deb"
+ done
+ [ -s "$deb" ] || { echo "Could not download $deb from any mirror" >&2; exit 1; }
+ sudo dpkg -i "$deb"
- name: Run contrib catalog tests
id: contribCatalogTest
diff --git a/.github/workflows/iceberg-rest-trino-integration-test-action.yml b/.github/workflows/iceberg-rest-trino-integration-test-action.yml
index 6d97a62fcb..d7f1640293 100644
--- a/.github/workflows/iceberg-rest-trino-integration-test-action.yml
+++ b/.github/workflows/iceberg-rest-trino-integration-test-action.yml
@@ -45,8 +45,14 @@ jobs:
- name: Install dependencies
run: |
- wget https://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
- sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
+ # libssl1.1 is not in the runner's apt sources, so the .deb is fetched directly.
+ deb=libssl1.1_1.1.1f-1ubuntu2_amd64.deb
+ for host in archive.ubuntu.com nz2.archive.ubuntu.com security.ubuntu.com; do
+ wget --tries=3 --timeout=30 -O "$deb" "https://$host/ubuntu/pool/main/o/openssl/$deb" && break
+ rm -f "$deb"
+ done
+ [ -s "$deb" ] || { echo "Could not download $deb from any mirror" >&2; exit 1; }
+ sudo dpkg -i "$deb"
- name: Iceberg REST Trino Integration Test
id: integrationTest