This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-java.git
The following commit(s) were added to refs/heads/master by this push:
new 6e4a24949 Minor: `ci-before_install.sh` should show wget errors and
retry (#3381)
6e4a24949 is described below
commit 6e4a249493e159598fc39c3671b4f76070f9875f
Author: Aaron Niskode-Dossett <[email protected]>
AuthorDate: Tue Jan 13 12:27:09 2026 -0600
Minor: `ci-before_install.sh` should show wget errors and retry (#3381)
* [minor] ci-before_install.sh should show wget errors
* update wget
* Try non-gnu flag
* add sleep & retries
---
dev/ci-before_install.sh | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/dev/ci-before_install.sh b/dev/ci-before_install.sh
index 6b57624a2..2cfaee56a 100755
--- a/dev/ci-before_install.sh
+++ b/dev/ci-before_install.sh
@@ -23,14 +23,24 @@
export THRIFT_VERSION=0.22.0
set -e
+set -o pipefail
date
sudo apt-get update -qq
sudo apt-get install -qq --no-install-recommends build-essential pv autoconf
automake libtool curl make \
- g++ unzip libboost-dev libboost-test-dev libboost-program-options-dev \
+ g++ unzip libboost-dev libboost-test-dev libboost-program-options-dev wget \
libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
xmlstarlet
date
pwd
-wget -qO-
https://archive.apache.org/dist/thrift/$THRIFT_VERSION/thrift-$THRIFT_VERSION.tar.gz
| tar zxf -
+for attempt in 1 2 3; do
+ if wget -nv -O-
https://archive.apache.org/dist/thrift/$THRIFT_VERSION/thrift-$THRIFT_VERSION.tar.gz
| tar zxf -; then
+ break
+ fi
+ if [[ "$attempt" -eq 3 ]]; then
+ echo "Failed to download thrift after ${attempt} attempts." >&2
+ exit 1
+ fi
+ sleep $((attempt * 5))
+done
cd thrift-${THRIFT_VERSION}
chmod +x ./configure
./configure --disable-libs