- Fix `simple_test_analysis` template in E2E test setup to align with Orchestrator's data fetch logic.
- Implement and verify additional E2E scenarios:
- Scenario C: Partial Provider Failure (verified error propagation fix in Orchestrator).
- Scenario D: Invalid Symbol input.
- Scenario E: Analysis Module failure.
- Update `WorkflowStateMachine::handle_report_failed` to correctly scope error broadcasting to the specific task instead of failing effectively silently or broadly.
- Update testing strategy documentation to reflect completed Phase 4 testing.
- Skip Scenario B (Orchestrator Restart) as persistence is not yet implemented (decision made to defer persistence).
41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
ROOT_DIR=$(pwd)
|
|
|
|
# Function to cleanup on exit
|
|
cleanup() {
|
|
echo "[E2E] Dumping logs for report-generator-service..."
|
|
docker logs report-generator-service || true
|
|
|
|
echo "[E2E] Tearing down environment..."
|
|
cd "$ROOT_DIR"
|
|
docker-compose -f docker-compose.yml -f docker-compose.e2e.yml down
|
|
}
|
|
# Trap exit to ensure cleanup
|
|
trap cleanup EXIT
|
|
|
|
echo "[E2E] Building and Starting Environment..."
|
|
# Build specifically the services we need to ensure latest code
|
|
docker-compose -f docker-compose.yml -f docker-compose.e2e.yml up -d --build --remove-orphans
|
|
|
|
echo "[E2E] Waiting for API Gateway (localhost:4000)..."
|
|
MAX_RETRIES=30
|
|
count=0
|
|
until curl -s http://localhost:4000/health > /dev/null; do
|
|
count=$((count+1))
|
|
if [ $count -ge $MAX_RETRIES ]; then
|
|
echo "Timeout waiting for Gateway"
|
|
exit 1
|
|
fi
|
|
echo "Waiting for Gateway... ($count/$MAX_RETRIES)"
|
|
sleep 2
|
|
done
|
|
echo "Gateway is ready!"
|
|
|
|
echo "[E2E] Running Rust Test Runner..."
|
|
cd tests/end-to-end
|
|
RUST_LOG=info cargo run
|
|
|
|
echo "[E2E] Tests Completed Successfully!"
|