Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion ci/scripts/build_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,18 @@ source_dir=${1}
build_dir=${1}/build
run_example=${ICEBERG_RUN_EXAMPLE:-OFF}

rm -rf "${build_dir}"
# Clean up before configuring. If Windows still holds a just-built exe/dll
# after the retries, let mkdir fail rather than reuse a half-deleted tree.
for attempt in 1 2 3; do
if rm -rf "${build_dir}"; then
break
fi
if [[ "${attempt}" != "3" ]]; then
sleep 2
else
echo "Failed to remove build directory after 3 attempts: ${build_dir}" >&2
fi
done
Comment thread
abnobdoss marked this conversation as resolved.
mkdir "${build_dir}"
pushd ${build_dir}

Expand Down
14 changes: 12 additions & 2 deletions ci/scripts/build_iceberg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,15 @@ fi

popd

# clean up between builds
rm -rf ${build_dir}
# Clean up after the build. Windows can briefly hold a just-built exe/dll,
# so retry but do not fail an otherwise successful CI job.
for attempt in 1 2 3; do
if rm -rf "${build_dir}"; then
break
fi
if [[ "${attempt}" != "3" ]]; then
sleep 2
else
echo "Failed to remove build directory after 3 attempts: ${build_dir}" >&2
fi
Comment thread
abnobdoss marked this conversation as resolved.
done
Loading