diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 33b2113..170b24f 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -132,5 +132,6 @@ jobs: files: | release_assets/* fail_on_unmatched_files: false + overwrite: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/ci/test-e2e.sh b/ci/test-e2e.sh index 49b0ec3..4e04639 100755 --- a/ci/test-e2e.sh +++ b/ci/test-e2e.sh @@ -76,15 +76,25 @@ if [ "${VOXVERA_E2E_OFFLINE:-}" != "1" ]; then TOR_PID=$! # Wait for Tor to bootstrap - echo "Waiting for Tor to bootstrap..." - for i in {1..60}; do + echo "Waiting for Tor to bootstrap (up to 120s)..." + BOOTSTRAPPED=0 + for i in {1..120}; do if grep -q "Bootstrapped 100%" "$LOG_DIR/tor.log"; then echo "Tor bootstrapped successfully." + BOOTSTRAPPED=1 break fi + [ $((i % 10)) -eq 0 ] && echo "... still bootstrapping Tor ($i s) ..." sleep 1 done + if [ $BOOTSTRAPPED -eq 0 ]; then + echo "CRITICAL: Tor failed to bootstrap after 120s" >&2 + tail -n 20 "$LOG_DIR/tor.log" + kill ${TOR_PID:-} || true + exit 1 + fi + # Start OnionShare echo "Starting OnionShare..." # Explicitly set environment variables that OnionShare-cli respects @@ -97,6 +107,15 @@ if [ "${VOXVERA_E2E_OFFLINE:-}" != "1" ]; then "$host_dir" >"$LOG_DIR/onionshare.log" 2>&1 & OS_PID=$! + # Check if OnionShare process is still alive after a few seconds + sleep 5 + if ! kill -0 $OS_PID 2>/dev/null; then + echo "CRITICAL: OnionShare-cli failed to start" >&2 + cat "$LOG_DIR/onionshare.log" + kill ${TOR_PID:-} || true + exit 1 + fi + # Wait for URL with timeout and feedback echo "Waiting for OnionShare to generate URL (up to 120s)..." URL="" diff --git a/pyproject.toml b/pyproject.toml index 662c47d..d25db83 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ voxvera = ["templates/**", "src/**", "resources/**", "locales/**", "resources/bi [project] name = "voxvera" -version = "0.2.2" +version = "0.2.3" description = "VoxVera CLI utilities" readme = "README.md" authors = [{name = "VoxVera"}] diff --git a/voxvera/__init__.py b/voxvera/__init__.py index 647a20c..56f4d5d 100644 --- a/voxvera/__init__.py +++ b/voxvera/__init__.py @@ -1,7 +1,7 @@ import sys from pathlib import Path -__version__ = "0.2.2" +__version__ = "0.2.3" # Add the vendor directory to sys.path as a fallback. if getattr(sys, 'frozen', False):