fix(ci): retry wget downloads up to 20 times instead of never, don't kill all output (#706)

This commit is contained in:
наб 2025-11-10 19:14:14 +01:00 committed by GitHub
parent 4043a0469a
commit b6e9ff291e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View file

@ -40,12 +40,12 @@ esac
set -euo pipefail set -euo pipefail
# Get the current project root (this file is in <root>/dev-scripts/ and gets called via just (just file is at <root>/justfile)) # Get the current project root (this file is in <root>/dev-scripts/ and gets called via just (just file is at <root>/justfile))
SRC_TAURI_DIR="$(pwd)/../src-tauri" SRC_TAURI_DIR="$PWD/../src-tauri"
# Check if src-tauri directory exists # Check if src-tauri directory exists
if [ ! -d "$SRC_TAURI_DIR" ]; then if [ ! -d "$SRC_TAURI_DIR" ]; then
echo "Error: must be called from project root -> src-tauri must be subdir" echo "Error: must be called from project root -> src-tauri must be subdir"
echo "Current directory: $(pwd)" echo "Current directory: $PWD"
exit 1 exit 1
fi fi
@ -93,7 +93,7 @@ download_if_missing() {
echo "Already present: $dest" echo "Already present: $dest"
else else
echo "Downloading: $url" echo "Downloading: $url"
wget -q "$url" -O "$dest" wget --retry-connrefused -t 20 -nv "$url" -O "$dest"
fi fi
} }

View file

@ -83,7 +83,7 @@ swap:
# Run the asb on testnet # Run the asb on testnet
asb-testnet: asb-testnet:
ASB_DEV_ADDR_OUTPUT_PATH="$(pwd)/src-gui/.env.development" cargo run -p swap-asb --bin asb -- --testnet --trace start --rpc-bind-port 9944 --rpc-bind-host 0.0.0.0 ASB_DEV_ADDR_OUTPUT_PATH="$PWD/src-gui/.env.development" cargo run -p swap-asb --bin asb -- --testnet --trace start --rpc-bind-port 9944 --rpc-bind-host 0.0.0.0
# Launch the ASB controller REPL against a local testnet ASB instance # Launch the ASB controller REPL against a local testnet ASB instance
asb-testnet-controller: asb-testnet-controller:

View file

@ -25,7 +25,7 @@ set -e # Exit on any error
echo "🔄 Regenerating SQLx query cache..." echo "🔄 Regenerating SQLx query cache..."
WORKSPACE_ROOT="$(pwd)" WORKSPACE_ROOT="$PWD"
# Use shared temporary database in workspace root # Use shared temporary database in workspace root
TEMP_DB="$WORKSPACE_ROOT/tempdb.sqlite" TEMP_DB="$WORKSPACE_ROOT/tempdb.sqlite"