#!/bin/bash # Local verification for Co-Worker performance and non-blocking behavior cd ai-hub export DB_MODE=sqlite export LOCAL_DB_PATH="data/verify_ai_hub.db" export LOG_LEVEL="INFO" export SKIP_DOCKER_NODES=true export TEST_HUB_URL="http://127.0.0.1:8001" export TEST_GRPC_ENDPOINT="127.0.0.1:50051" export SYNC_TEST_BASE_URL="http://127.0.0.1:8001/api/v1" # Step 1: Start Hub Server echo "Starting local Hub server..." python3 -m uvicorn app.main:app --host 127.0.0.1 --port 8001 & HUB_PID=$! # Step 2: Start gRPC Node (Simulated) # In a real integration test, conftest.py handles this if SKIP_DOCKER_NODES=true # but we need to ensure dependencies are installed. # Step 3: Run pytest echo "Running Co-Worker integration tests..." python3 -m pytest -v integration_tests/test_coworker_flow.py # Cleanup kill $HUB_PID