mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-22 18:30:09 +00:00
Modify e2e:docker:all to run all 360+ E2E tests including @supersync tests. - Start all required services (app, webdav, db, supersync) - Add wait-for-supersync.sh for SuperSync health check - Execute tests in two phases: - Phase 1: Non-supersync tests (default workers) - Phase 2: SuperSync tests (3 workers to avoid server overload) - Both phases run independently; exit code reflects first failure - Previously skipped 131 @supersync tests now included Resolves complete E2E test coverage for all sync providers.
20 lines
632 B
Bash
Executable file
20 lines
632 B
Bash
Executable file
#!/bin/bash
|
|
# Wait for SuperSync server to be ready at http://localhost:1901
|
|
# Retries for up to 90 seconds (accounts for PostgreSQL + SuperSync startup)
|
|
|
|
echo "Waiting for SuperSync server on http://localhost:1901..."
|
|
|
|
MAX_WAIT=90
|
|
elapsed=0
|
|
until curl -s http://localhost:1901/health > /dev/null 2>&1; do
|
|
if [ $elapsed -ge $MAX_WAIT ]; then
|
|
echo "Timeout: SuperSync server did not start within ${MAX_WAIT}s"
|
|
echo "--- SuperSync logs ---"
|
|
docker compose -f docker-compose.yaml -f docker-compose.supersync.yaml logs supersync
|
|
exit 1
|
|
fi
|
|
sleep 1
|
|
elapsed=$((elapsed + 1))
|
|
done
|
|
|
|
echo "SuperSync server is ready!"
|