mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 09:34:16 -05:00
fix(ci): retry wget downloads up to 20 times instead of never, don't kill all output (#706)
This commit is contained in:
parent
4043a0469a
commit
b6e9ff291e
3 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
4
justfile
4
justfile
|
|
@ -83,12 +83,12 @@ 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:
|
||||||
cargo run -p swap-controller --bin asb-controller -- --url http://127.0.0.1:9944
|
cargo run -p swap-controller --bin asb-controller -- --url http://127.0.0.1:9944
|
||||||
|
|
||||||
# Updates our submodules (currently only Monero C++ codebase)
|
# Updates our submodules (currently only Monero C++ codebase)
|
||||||
update_submodules:
|
update_submodules:
|
||||||
cd monero-sys && git submodule update --init --recursive --force
|
cd monero-sys && git submodule update --init --recursive --force
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# regenerate_sqlx_cache.sh
|
# regenerate_sqlx_cache.sh
|
||||||
#
|
#
|
||||||
# Script to regenerate SQLx query cache for monero-rpc-pool
|
# Script to regenerate SQLx query cache for monero-rpc-pool
|
||||||
#
|
#
|
||||||
# This script:
|
# This script:
|
||||||
# 1. Creates a temporary SQLite database in the workspace root
|
# 1. Creates a temporary SQLite database in the workspace root
|
||||||
# 2. Runs all database migrations to set up the schema
|
# 2. Runs all database migrations to set up the schema
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -51,4 +51,4 @@ cargo sqlx prepare --workspace
|
||||||
|
|
||||||
echo "✅ SQLx query cache regenerated successfully!"
|
echo "✅ SQLx query cache regenerated successfully!"
|
||||||
echo "📝 The .sqlx directory has been updated with the latest query metadata."
|
echo "📝 The .sqlx directory has been updated with the latest query metadata."
|
||||||
echo "💡 Make sure to commit the .sqlx directory to version control."
|
echo "💡 Make sure to commit the .sqlx directory to version control."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue